From: Khashayar Fereidani <info () fereidani com>
Date: Fri, 20 Nov 2026 13:21:29 +0000
# miniBB 3.7.2 `whatus` Cross-Site Scripting Filter Bypass
**Author:** Khashayar Fereidani
**Disclosure Date:** 2026-11-20
**Advisory:** https://fereidani.com/minibb-372-whatus-cross-site-scripting-filter-bypass
**Contact:** https://fereidani.com/contact
## Description
A reflected cross-site scripting vulnerability exists in the
administrator user search of miniBB (bb_admin.php), reachable through
the `whatus` parameter. The input filter at line 513 removes `<`, `>`,
`%3C`, `%3E` and line breaks, but does not remove the double quote
character, so the value can still break out of the `value="..."`
attribute of the search form, and out of the page navigation and sort
links built from `$urlSet` in the `notmember` branch and the hidden
`whatus` field of the delete form. This bypasses the input filter
introduced after the `whatus` XSS issue reported in 2008
(CVE-2008-2066), which relied on stripping angle brackets.
**Proof of Concept:**
```text
http://HOSTNAME/bb_admin.php?action=searchusers2&searchus=registr&whatus=%22%20autofocus%20onfocus=%22alert(1)%20x=%22
```
When an authenticated administrator opens the link, the injected
`onfocus` handler executes automatically.
## Impact
An attacker can execute arbitrary JavaScript in the administrator's
browser by delivering a single crafted link, leading to session
hijacking and full administrative takeover. The `maxlength` attribute
of the search input is client-side only and does not restrict
URL-supplied values.
CVSS 3.1 base score: 6.1 Medium
(`CVSS:3.1/AV:N/AC:L/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, HTML-encode `$whatus` at every output point: the
search form, the hidden field of the delete form, and the `$urlSet`
links. Encoding at output keeps search by names that contain quotes or
apostrophes working.
## Timeline
- 2026-09-25: Reported to the miniBB maintainer, together with the
other miniBB 3.7.2 issues.
- 2026-10-01 to 2026-10-02: The maintainer sent pre-releases with the fix.
- 2026-10-09: Fix verified.
- 2026-11-20: Fixed in miniBB 3.8. Report published.
## References
- [CVE-2008-2066 - NVD](https://nvd.nist.gov/vuln/detail/CVE-2008-2066)
- [Original advisory (SecLists,
2008)](https://seclists.org/bugtraq/2008/Apr/296)
- [miniBB `whatus` Cross-Site Scripting
(2008)](https://fereidani.com/minibb-whatus-xss)
- [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/
Current thread:
- miniBB 3.7.2 `whatus` Cross-Site Scripting Filter Bypass Khashayar Fereidani (Dec 01)