Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. thorsten/phpmyfaq
  4. ›
  5. GHSA-99qv-g4x9-mgc3

GHSA-99qv-g4x9-mgc3: phpMyFAQ has unauthenticated FAQ permission bypass via getFaqBySolutionId fallback query

May 6, 2026

The public /solution_id_{id}.html route calls Faq::getIdFromSolutionId() in phpmyfaq/src/phpMyFAQ/Faq.php:1312. That query joins faqdata with faqcategoryrelations solely by solution_id and returns the matching FAQ’s id, lang, thema (title), and category_id with no permission filter. An unauthenticated visitor hits the route with a sequential integer and the server 301-redirects to /content/<category>/<id>/<lang>/<title-slug>.html, leaking the FAQ’s existence, internal id, language, category binding, and title via the redirect’s Location header and the redirected page’s canonical link, share-to-social URLs, and hidden form fields. The related getFaqBySolutionId() at line 1221 contains an explicit fallback query (added “for tests”) that also bypasses the permission filter, widening the blast radius to any callsite that trusts its result.

References

  • github.com/advisories/GHSA-99qv-g4x9-mgc3
  • github.com/thorsten/phpMyFAQ
  • github.com/thorsten/phpMyFAQ/security/advisories/GHSA-99qv-g4x9-mgc3

Code Behaviors & Features

Detect and mitigate GHSA-99qv-g4x9-mgc3 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.1.2

Fixed versions

  • 4.1.2

Solution

Upgrade to version 4.1.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

packagist/thorsten/phpmyfaq/GHSA-99qv-g4x9-mgc3.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:47 +0000.