phpMyFAQ - SQL Injection via User-Agent Header in BuiltinCaptcha
thorsten phpmyfaq
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| thorsten/phpmyfaq Packagist |
|
|
| phpmyfaq/phpmyfaq Packagist |
|
|
thorsten phpmyfaq
| Product | Affected | Fixed in |
|---|---|---|
| thorsten/phpmyfaq Packagist |
|
|
| phpmyfaq/phpmyfaq Packagist |
|
|
phpMyFAQ before 4.1.2 contains an unauthenticated SQL injection vulnerability in BuiltinCaptcha::garbageCollector() and BuiltinCaptcha::saveCaptcha() methods that interpolate unsanitized User-Agent headers into DELETE and INSERT queries. Unauthenticated attackers can exploit the public GET /api/captcha endpoint by crafting malicious User-Agent headers to perform time-based blind SQL injection, extracting sensitive data including user credentials, admin tokens, and SMTP credentials from the database.
From the CVE record · VulnCheck
phpMyFAQ before 4.1.2 has a SQL injection vulnerability in its built-in CAPTCHA methods. An unauthenticated remote attacker can send a crafted User-Agent header to the public GET /api/captcha endpoint to extract sensitive database data, including user credentials, admin tokens, and SMTP credentials. No user interaction is needed.
Anyone running the Packagist packages thorsten/phpmyfaq or phpmyfaq/phpmyfaq before 4.1.2 should check their installation.