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:

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