VULNARCHIVE

GCVE-1988-2026-0583

miniBB 3.7.2 `whatus` Cross-Site Scripting Filter Bypass

Description (en)

# 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/

References

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 `whatus` Cross-Site Scripting Filter Bypass\n\n**Author:** Khashayar Fereidani\n**Disclosure Date:** 2026-11-20\n**Advisory:** https://fereidani.com/minibb-372-whatus-cross-site-scripting-filter-bypass\n**Contact:** https://fereidani.com/contact\n\n## Description\n\nA reflected cross-site scripting vulnerability exists in the\nadministrator user search of miniBB (bb_admin.php), reachable through\nthe `whatus` parameter. The input filter at line 513 removes `<`, `>`,\n`%3C`, `%3E` and line breaks, but does not remove the double quote\ncharacter, so the value can still break out of the `value=\"...\"`\nattribute of the search form, and out of the page navigation and sort\nlinks built from `$urlSet` in the `notmember` branch and the hidden\n`whatus` field of the delete form. This bypasses the input filter\nintroduced after the `whatus` XSS issue reported in 2008\n(CVE-2008-2066), which relied on stripping angle brackets.\n\n**Proof of Concept:**\n\n```text\nhttp://HOSTNAME/bb_admin.php?action=searchusers2&searchus=registr&whatus=%22%20autofocus%20onfocus=%22alert(1)%20x=%22\n```\n\nWhen an authenticated administrator opens the link, the injected\n`onfocus` handler executes automatically.\n\n## Impact\n\nAn attacker can execute arbitrary JavaScript in the administrator's\nbrowser by delivering a single crafted link, leading to session\nhijacking and full administrative takeover. The `maxlength` attribute\nof the search input is client-side only and does not restrict\nURL-supplied values.\n\nCVSS 3.1 base score: 6.1 Medium\n(`CVSS:3.1/AV:N/AC:L/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, HTML-encode `$whatus` at every output point: the\nsearch form, the hidden field of the delete form, and the `$urlSet`\nlinks. Encoding at output keeps search by names that contain quotes or\napostrophes working.\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 to 2026-10-02: The maintainer sent pre-releases with the fix.\n- 2026-10-09: Fix verified.\n- 2026-11-20: Fixed in miniBB 3.8. Report published.\n\n## References\n\n- [CVE-2008-2066 - NVD](https://nvd.nist.gov/vuln/detail/CVE-2008-2066)\n- [Original advisory (SecLists,\n2008)](https://seclists.org/bugtraq/2008/Apr/296)\n- [miniBB `whatus` Cross-Site Scripting\n(2008)](https://fereidani.com/minibb-whatus-xss)\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/7"
        },
        {
          "tags": [
            "technical-description"
          ],
          "url": "https://seclists.org/fulldisclosure/2026/Dec/7"
        },
        {
          "url": "http://HOSTNAME/bb_admin.php?action=searchusers2&searchus=registr&whatus=%22%20autofocus%20onfocus=%22alert"
        },
        {
          "url": "https://cwe.mitre.org/data/definitions/79.html"
        },
        {
          "url": "https://fereidani.com/contact"
        },
        {
          "url": "https://fereidani.com/minibb-372-whatus-cross-site-scripting-filter-bypass"
        },
        {
          "url": "https://fereidani.com/minibb-whatus-xss"
        },
        {
          "url": "https://nmap.org/mailman/listinfo/fulldisclosure"
        },
        {
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2008-2066"
        },
        {
          "url": "https://seclists.org/bugtraq/2008/Apr/296"
        },
        {
          "url": "https://seclists.org/fulldisclosure/"
        },
        {
          "url": "https://www.minibb.com/"
        }
      ],
      "source": {
        "defect": [
          "https://seclists.org/fulldisclosure/2026/Dec/7"
        ],
        "discovery": "EXTERNAL"
      },
      "title": "miniBB 3.7.2 `whatus` Cross-Site Scripting Filter Bypass",
      "x_gcve": [
        {
          "recordType": "analysis",
          "relationships": [
            {
              "destId": "CVE-2008-2066",
              "type": "related"
            }
          ],
          "vulnId": "GCVE-1988-2026-0583",
          "x_vulnarchive": {
            "archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/7",
            "automated": true,
            "contentSha256": "9f9e8a43a6f19a2053def0044dbfcdc2652414c43963000bb1bb54b28ed8fb7f",
            "evidenceScore": 11,
            "messageId": "",
            "originalUrl": "https://seclists.org/fulldisclosure/2026/Dec/7",
            "policy": "vulnarchive-1",
            "sourceFormat": "text/html",
            "sourcePublishedAt": "2026-11-20T13:21:29Z"
          }
        }
      ]
    }
  },
  "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-0583"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}