Lucene search
+L

miniBB 3.7.2 queryStr2 Open Redirect

🗓️ 02 Dec 2026 00:00:00Reported by Khashayar FereidaniType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 3 Views

Open Redirect in miniBB login flow via unvalidated queryStr2 POST parameter.

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

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
6Medium risk
Vulners AI Score6
3