From: Khashayar Fereidani <info () fereidani com>
Date: Fri, 20 Nov 2026 13:22:59 +0000
# miniBB 3.7.2 `queryStr2` Open Redirect Vulnerability
**Author:** Khashayar Fereidani
**Disclosure Date:** 2026-11-20
**Advisory:** https://fereidani.com/minibb-372-querystr2-open-redirect-vulnerability
**Contact:** https://fereidani.com/contact
## Description
An open redirect vulnerability exists in the login flow of miniBB
(bb_func_login.php). The `queryStr2` POST parameter is read without
any filtering at line 10 and, after a successful administrator or
member login, is used verbatim as the redirect target at lines 59 and
131:
```php
header("{$rheader}{$queryStr2}");
```
Unlike the related `queryStr` parameter, which passes a character
whitelist in index.php before use, `queryStr2` reaches the `Location`
header unvalidated, allowing a fully qualified external URL.
**Proof of Concept:**
```bash
curl -i -H "Referer: http://HOSTNAME/"; \
--data 'mode=login&user_usr=USER&user_pwd=PASS&queryStr2=https://attacker.example/'
\
http://HOSTNAME/index.php
```
The response contains `Location: https://attacker.example/`.
## Impact
An attacker able to make a member submit credentials through a crafted
form can redirect them to an external site after login, enabling
phishing against the forum's users under the forum's own hostname.
Valid credentials are required, which limits severity.
CVSS 3.1 base score: 4.7 Medium
(`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`).
## Solution
Fixed in miniBB 3.8. Upgrade to 3.8 or later. To patch an older
install by hand, validate that `queryStr2` is either a relative path
or begins with the forum's own URL before using it in the `Location`
header, or apply the same whitelist filter used for `queryStr`.
## 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 (the
unused `queryStr2` parameter was removed). Fix verified.
- 2026-11-20: Fixed in miniBB 3.8. Report published.
## References
- [CWE-601: URL Redirection to Untrusted Site ('Open
Redirect')](https://cwe.mitre.org/data/definitions/601.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 `queryStr2` Open Redirect Vulnerability Khashayar Fereidani (Dec 01)