miniBB 3.7.2 deleteAll Cross Site Scripting
Reflected XSS in miniBB message moving interface allows arbitrary JavaScript execution.
# 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/)Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
02 Dec 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3