VULNARCHIVE

GCVE-1988-2026-0585

miniBB 3.7.2 `queryStr2` Open Redirect Vulnerability

Description (en)

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

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 `queryStr2` Open Redirect Vulnerability\n\n**Author:** Khashayar Fereidani\n**Disclosure Date:** 2026-11-20\n**Advisory:** https://fereidani.com/minibb-372-querystr2-open-redirect-vulnerability\n**Contact:** https://fereidani.com/contact\n\n## Description\n\nAn open redirect vulnerability exists in the login flow of miniBB\n(bb_func_login.php). The `queryStr2` POST parameter is read without\nany filtering at line 10 and, after a successful administrator or\nmember login, is used verbatim as the redirect target at lines 59 and\n131:\n\n```php\nheader(\"{$rheader}{$queryStr2}\");\n```\n\nUnlike the related `queryStr` parameter, which passes a character\nwhitelist in index.php before use, `queryStr2` reaches the `Location`\nheader unvalidated, allowing a fully qualified external URL.\n\n**Proof of Concept:**\n\n```bash\ncurl -i -H \"Referer: http://HOSTNAME/\"; \\\n  --data 'mode=login&user_usr=USER&user_pwd=PASS&queryStr2=https://attacker.example/'\n\\\n  http://HOSTNAME/index.php\n```\n\nThe response contains `Location: https://attacker.example/`.\n\n## Impact\n\nAn attacker able to make a member submit credentials through a crafted\nform can redirect them to an external site after login, enabling\nphishing against the forum's users under the forum's own hostname.\nValid credentials are required, which limits severity.\n\nCVSS 3.1 base score: 4.7 Medium\n(`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/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, validate that `queryStr2` is either a relative path\nor begins with the forum's own URL before using it in the `Location`\nheader, or apply the same whitelist filter used for `queryStr`.\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: The maintainer sent a pre-release with the fix (the\nunused `queryStr2` parameter was removed). Fix verified.\n- 2026-11-20: Fixed in miniBB 3.8. Report published.\n\n## References\n\n- [CWE-601: URL Redirection to Untrusted Site ('Open\nRedirect')](https://cwe.mitre.org/data/definitions/601.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-601",
              "description": "CWE-601",
              "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/9"
        },
        {
          "tags": [
            "technical-description"
          ],
          "url": "https://seclists.org/fulldisclosure/2026/Dec/9"
        },
        {
          "url": "http://HOSTNAME/\""
        },
        {
          "url": "http://HOSTNAME/index.php"
        },
        {
          "url": "https://attacker.example/&apos"
        },
        {
          "url": "https://attacker.example/`"
        },
        {
          "url": "https://cwe.mitre.org/data/definitions/601.html"
        },
        {
          "url": "https://fereidani.com/contact"
        },
        {
          "url": "https://fereidani.com/minibb-372-querystr2-open-redirect-vulnerability"
        },
        {
          "url": "https://nmap.org/mailman/listinfo/fulldisclosure"
        },
        {
          "url": "https://seclists.org/fulldisclosure/"
        },
        {
          "url": "https://www.minibb.com/"
        }
      ],
      "source": {
        "defect": [
          "https://seclists.org/fulldisclosure/2026/Dec/9"
        ],
        "discovery": "EXTERNAL"
      },
      "title": "miniBB 3.7.2 `queryStr2` Open Redirect Vulnerability",
      "x_gcve": [
        {
          "recordType": "advisory",
          "relationships": [],
          "vulnId": "GCVE-1988-2026-0585",
          "x_vulnarchive": {
            "archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/9",
            "automated": true,
            "contentSha256": "0d29d2dbad67bce1990b56c8bee753d8477cb2f0ac88647a1365028cfe1a14f2",
            "evidenceScore": 11,
            "messageId": "",
            "originalUrl": "https://seclists.org/fulldisclosure/2026/Dec/9",
            "policy": "vulnarchive-1",
            "sourceFormat": "text/html",
            "sourcePublishedAt": "2026-11-20T13:22:59Z"
          }
        }
      ]
    }
  },
  "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-0585"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}