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:

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:

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