[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FD] miniBB 3.7.2 `deleteAll` Cross-Site Scripting Vulnerability
- To: fulldisclosure@xxxxxxxxxxxx
- Subject: [FD] miniBB 3.7.2 `deleteAll` Cross-Site Scripting Vulnerability
- From: Khashayar Fereidani <info@xxxxxxxxxxxxx>
- Date: Fri, 20 Nov 2026 13:20:34 +0000
# 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/