Description (en)
# miniBB 3.7.2 `deleteAll` Cross-Site Scripting Vulnerability
**Author:** Khashayar Fereidani
**Disclosure Date:** 2026-11-20
**Advisory:** https://fereidani.com/minibb-372-deleteall-cross-site-scripting-vulnerability
**Contact:** https://fereidani.com/contact
## Description
A reflected cross-site scripting vulnerability exists in the message
moving interface of miniBB (bb_func_movepost.php), available to
administrators and moderators. When more than one message is selected
for mass moving, the raw values of the `deleteAll` POST array are
embedded into a hidden form field at line 271 (`implode(',',
$_POST['deleteAll'])` inside `value="..."`) without HTML encoding, and
echoed back at line 356.
**Proof of Concept:**
```bash
curl -b "MODERATOR_COOKIES" -H "Referer: http://HOSTNAME/"; \
--data 'action=movepost&deleteAll[]="><img src=x
onerror=alert(1)>&deleteAll[]=2' \
http://HOSTNAME/index.php
```
The injected `onerror` handler executes when the confirmation form is rendered.
## Impact
An attacker able to make a moderator submit a crafted selection can
execute arbitrary JavaScript in the moderator's session. The request
must also pass the forum's built-in referer check, which makes
exploitation harder.
CVSS 3.1 base score: 4.7 Medium
(`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`).
## Solution
Fixed in miniBB 3.8. Upgrade to 3.8 or later. To patch an older
install by hand, apply `operate_string()` (or integer validation) to
the array values before embedding them in the hidden field.
## Timeline
- 2026-09-25: Reported to the miniBB maintainer, together with the
other miniBB 3.7.2 issues.
- 2026-10-01: The maintainer sent a pre-release with the fix
(`deleteAll` values are now cast to integers). Fix verified.
- 2026-11-20: Fixed in miniBB 3.8. Report published.
## References
- [miniBB 3.7.2 `movedMsgs` SQL
Injection](https://fereidani.com/minibb-372-movedmsgs-sql-injection-vulnerability)
- [CWE-79: Improper Neutralization of Input During Web Page Generation
('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)
- [miniBB - official website](https://www.minibb.com/)
_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: https://seclists.org/fulldisclosure/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 `deleteAll` Cross-Site Scripting Vulnerability\n\n**Author:** Khashayar Fereidani\n**Disclosure Date:** 2026-11-20\n**Advisory:** https://fereidani.com/minibb-372-deleteall-cross-site-scripting-vulnerability\n**Contact:** https://fereidani.com/contact\n\n## Description\n\nA reflected cross-site scripting vulnerability exists in the message\nmoving interface of miniBB (bb_func_movepost.php), available to\nadministrators and moderators. When more than one message is selected\nfor mass moving, the raw values of the `deleteAll` POST array are\nembedded into a hidden form field at line 271 (`implode(',',\n$_POST['deleteAll'])` inside `value=\"...\"`) without HTML encoding, and\nechoed back at line 356.\n\n**Proof of Concept:**\n\n```bash\ncurl -b \"MODERATOR_COOKIES\" -H \"Referer: http://HOSTNAME/\"; \\\n --data 'action=movepost&deleteAll[]=\"><img src=x\nonerror=alert(1)>&deleteAll[]=2' \\\n http://HOSTNAME/index.php\n```\n\nThe injected `onerror` handler executes when the confirmation form is rendered.\n\n## Impact\n\nAn attacker able to make a moderator submit a crafted selection can\nexecute arbitrary JavaScript in the moderator's session. The request\nmust also pass the forum's built-in referer check, which makes\nexploitation harder.\n\nCVSS 3.1 base score: 4.7 Medium\n(`CVSS:3.1/AV:N/AC:H/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, apply `operate_string()` (or integer validation) to\nthe array values before embedding them in the hidden field.\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\n(`deleteAll` values are now cast to integers). Fix verified.\n- 2026-11-20: Fixed in miniBB 3.8. Report published.\n\n## References\n\n- [miniBB 3.7.2 `movedMsgs` SQL\nInjection](https://fereidani.com/minibb-372-movedmsgs-sql-injection-vulnerability)\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:29:09Z",
"orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"shortName": "VULNARCHIVE"
},
"references": [
{
"tags": [
"technical-description",
"exploit"
],
"url": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/6"
},
{
"tags": [
"technical-description"
],
"url": "https://seclists.org/fulldisclosure/2026/Dec/6"
},
{
"url": "http://HOSTNAME/\""
},
{
"url": "http://HOSTNAME/index.php"
},
{
"url": "https://cwe.mitre.org/data/definitions/79.html"
},
{
"url": "https://fereidani.com/contact"
},
{
"url": "https://fereidani.com/minibb-372-deleteall-cross-site-scripting-vulnerability"
},
{
"url": "https://fereidani.com/minibb-372-movedmsgs-sql-injection-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/6"
],
"discovery": "EXTERNAL"
},
"title": "miniBB 3.7.2 `deleteAll` Cross-Site Scripting Vulnerability",
"x_gcve": [
{
"recordType": "advisory",
"relationships": [],
"vulnId": "GCVE-1988-2026-0582",
"x_vulnarchive": {
"archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/6",
"automated": true,
"contentSha256": "ee03e3fdc51a47fe7d6b7c9f136ab7bf705d7c869f5cf9c5a5608a618b010d76",
"evidenceScore": 11,
"messageId": "",
"originalUrl": "https://seclists.org/fulldisclosure/2026/Dec/6",
"policy": "vulnarchive-1",
"sourceFormat": "text/html",
"sourcePublishedAt": "2026-11-20T13:20:34Z"
}
}
]
}
},
"cveMetadata": {
"assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"assignerShortName": "VULNARCHIVE",
"datePublished": "2026-12-01T21:29:09Z",
"dateUpdated": "2026-12-01T21:29:09Z",
"state": "PUBLISHED",
"vulnId": "GCVE-1988-2026-0582"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}