Raw JSON
{
"containers": {
"cna": {
"affected": [
{
"product": "Minibb",
"vendor": "Minibb",
"versions": [
{
"status": "affected",
"version": "unknown"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Khashayar Fereidani"
}
],
"descriptions": [
{
"lang": "en",
"value": "# miniBB 3.7.2 `banreason` Cross-Site Scripting Vulnerability\n\n**Author:** Khashayar Fereidani\n**Disclosure Date:** 2026-11-20\n**CVE:** CVE-2026-52222\n**Advisory:** https://fereidani.com/minibb-372-banreason-cross-site-scripting-vulnerability\n**Contact:** https://fereidani.com/contact\n\n## Description\n\nA reflected Cross-Site Scripting (XSS) vulnerability exists in miniBB\ndue to insufficient sanitization of user-supplied input in the\n`banreason` parameter of the IP banning interface (bb_func_banip.php).\nThe value is read from `$_GET['banreason']` without encoding and\nprinted inside the `value=\"...\"` attribute of the ban form:\n\n```php\n$banreason=(isset($_GET['banreason'])?$_GET['banreason']:'');\n```\n\nAn attacker can craft a malicious URL that, when visited by an\nauthenticated admin/moderator user, executes arbitrary JavaScript in\nthe context of the victim's browser session.\n\n**Proof of Concept:**\n\n```text\nhttp://HOSTNAME/index.php?action=banip&banreason=\"%20autofocus%20onfocus=\"alert(1)\n```\n\n## Impact\n\nA successful exploitation of this vulnerability allows an attacker to\nexecute arbitrary JavaScript in the victim's browser. This could lead\nto session hijacking, credential theft, defacement of the web\ninterface, or further attacks against authenticated users.\n\nCVSS 3.1 base score: 6.1 Medium\n(`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`).\n\n## Solution\n\nFixed in miniBB 3.8. Upgrade to 3.8 or later. To patch an older\ninstall by hand, pass the value through `operate_string()`:\n\n```php\n$banreason=(isset($_GET['banreason'])?operate_string($_GET['banreason']):'');\n```\n\n## Timeline\n\n- 2026-05-12: Reported to the miniBB maintainer. CVE ID requested.\n- 2026-05-14: The maintainer confirmed the issue and proposed a fix:\npass `$_GET['banreason']` through `operate_string()`.\n- 2026-09-25: CVE-2026-52222 shared with the maintainer. Proposed fix\ntested and confirmed.\n- 2026-11-20: Fixed in miniBB 3.8. Report published.\n\n## References\n\n- [CVE-2026-52222 - NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-52222)\n- [CWE-79: Improper Neutralization of Input During Web Page Generation\n('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n- [miniBB - official website](https://www.minibb.com/)\n_______________________________________________\nSent through the Full Disclosure mailing list\nhttps://nmap.org/mailman/listinfo/fulldisclosure\nWeb Archives & RSS: https://seclists.org/fulldisclosure/"
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T21:45:48Z",
"orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"shortName": "VULNARCHIVE"
},
"references": [
{
"tags": [
"technical-description",
"exploit"
],
"url": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/11"
},
{
"tags": [
"technical-description"
],
"url": "https://seclists.org/fulldisclosure/2026/Dec/11"
},
{
"url": "http://HOSTNAME/index.php?action=banip&banreason=\"%20autofocus%20onfocus=\"alert"
},
{
"url": "https://cwe.mitre.org/data/definitions/79.html"
},
{
"url": "https://fereidani.com/contact"
},
{
"url": "https://fereidani.com/minibb-372-banreason-cross-site-scripting-vulnerability"
},
{
"url": "https://nmap.org/mailman/listinfo/fulldisclosure"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-52222"
},
{
"url": "https://seclists.org/fulldisclosure/"
},
{
"url": "https://www.minibb.com/"
}
],
"source": {
"defect": [
"https://seclists.org/fulldisclosure/2026/Dec/11"
],
"discovery": "EXTERNAL"
},
"title": "miniBB 3.7.2 `banreason` Cross-Site Scripting Vulnerability",
"x_gcve": [
{
"recordType": "advisory",
"relationships": [],
"vulnId": "GCVE-1988-2026-0587",
"x_vulnarchive": {
"archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/11",
"automated": true,
"contentSha256": "240a4feb802dbabfb6c81d921af8c7fe4bb10bfad8bc517727c96ceb0f154633",
"evidenceScore": 11,
"messageId": "",
"originalUrl": "https://seclists.org/fulldisclosure/2026/Dec/11",
"policy": "vulnarchive-1",
"sourceFormat": "text/html",
"sourcePublishedAt": "2026-11-20T13:24:21Z"
}
}
]
}
},
"cveMetadata": {
"assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"assignerShortName": "VULNARCHIVE",
"datePublished": "2026-12-01T21:45:48Z",
"dateUpdated": "2026-12-01T21:45:48Z",
"state": "PUBLISHED",
"vulnId": "GCVE-1988-2026-0587"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}