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 `banip[]` SQL Injection Vulnerability\n\n**Author:** Khashayar Fereidani\n**Disclosure Date:** 2026-11-20\n**Advisory:** https://fereidani.com/minibb-372-banip-sql-injection-vulnerability\n**Contact:** https://fereidani.com/contact\n\n## Description\n\nAn SQL injection vulnerability exists in the ban removal interface of\nminiBB (bb_func_banip.php), available to administrators and\nmoderators. In the `deleteban2` processing step, the ban records to\nremove are taken from the array keys of the `banip` POST parameter\n(lines 47 to 56): each key becomes an element of `$delban` and is\nconcatenated into the `WHERE` clause built by `getClForums()` and\npassed to `db_delete()` without integer casting or quoting.\n\nThe keys of a crafted POST array are fully attacker-controlled.\nBecause PHP converts spaces and dots in request field names to\nunderscores, SQL keywords are separated with MySQL block comments\ninstead.\n\n**Proof of Concept:**\n\n```bash\ncurl -b \"ADMIN_COOKIES\" -H \"Referer: http://HOSTNAME/\"; \\\n --data 'action=banip&step=deleteban2&banip[1/**/or/**/sleep(5)#]=x' \\\n http://HOSTNAME/index.php\n```\n\nThe response is delayed by 5 seconds, confirming injection into\n`DELETE ... WHERE ( id=<key> ... )`.\n\n## Impact\n\nAn authenticated moderator or administrator request with crafted field\nnames can execute arbitrary SQL against the forum database.\n\nCVSS 3.1 base score: 5.5 Medium\n(`CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/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, cast each key to an integer before passing it to\n`getClForums()`, for example `$delban[$i]=(int)$key;`.\n\n## Timeline\n\n- 2026-09-25: Reported to the miniBB maintainer, together with the\nother miniBB 3.7.2 issues.\n- 2026-10-01: The maintainer sent a pre-release with the fix (the\n`banip[]` keys are now cast to integers, and zero values are\nrejected). Fix verified.\n- 2026-11-20: Fixed in miniBB 3.8. Report published.\n\n## References\n\n- [miniBB 3.7.2 `banip` Variable Variables Scope\nPollution](https://fereidani.com/minibb-372-banip-variable-variables-scope-pollution-vulnerability)\n- [miniBB 3.7.2 `banreason` Cross-Site\nScripting](https://fereidani.com/minibb-372-banreason-cross-site-scripting-vulnerability)\n- [CWE-89: Improper Neutralization of Special Elements used in an SQL\nCommand ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.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-89",
"description": "CWE-89",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T21:29:08Z",
"orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"shortName": "VULNARCHIVE"
},
"references": [
{
"tags": [
"technical-description",
"exploit"
],
"url": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/5"
},
{
"tags": [
"technical-description"
],
"url": "https://seclists.org/fulldisclosure/2026/Dec/5"
},
{
"url": "http://HOSTNAME/\""
},
{
"url": "http://HOSTNAME/index.php"
},
{
"url": "https://cwe.mitre.org/data/definitions/89.html"
},
{
"url": "https://fereidani.com/contact"
},
{
"url": "https://fereidani.com/minibb-372-banip-sql-injection-vulnerability"
},
{
"url": "https://fereidani.com/minibb-372-banip-variable-variables-scope-pollution-vulnerability"
},
{
"url": "https://fereidani.com/minibb-372-banreason-cross-site-scripting-vulnerability"
},
{
"url": "https://nmap.org/mailman/listinfo/fulldisclosure"
},
{
"url": "https://seclists.org/fulldisclosure/"
},
{
"url": "https://www.minibb.com/"
}
],
"source": {
"defect": [
"https://seclists.org/fulldisclosure/2026/Dec/5"
],
"discovery": "EXTERNAL"
},
"title": "miniBB 3.7.2 `banip[]` SQL Injection Vulnerability",
"x_gcve": [
{
"recordType": "advisory",
"relationships": [],
"vulnId": "GCVE-1988-2026-0581",
"x_vulnarchive": {
"archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/5",
"automated": true,
"contentSha256": "1163c7146bafcbf63679d50301603476315a13ce18c4ca7065a0ded8771254cd",
"evidenceScore": 11,
"messageId": "",
"originalUrl": "https://seclists.org/fulldisclosure/2026/Dec/5",
"policy": "vulnarchive-1",
"sourceFormat": "text/html",
"sourcePublishedAt": "2026-11-20T13:19:58Z"
}
}
]
}
},
"cveMetadata": {
"assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"assignerShortName": "VULNARCHIVE",
"datePublished": "2026-12-01T21:29:08Z",
"dateUpdated": "2026-12-01T21:29:08Z",
"state": "PUBLISHED",
"vulnId": "GCVE-1988-2026-0581"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}