SQL Injection Affecting thorsten/phpmyfaq package, versions >=3.2.5


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PHP-THORSTENPHPMYFAQ-6495327
  • published 26 Mar 2024
  • disclosed 25 Mar 2024
  • credit kevinnivekkevin

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

thorsten/phpmyfaq is a FAQ system for PHP and MySQL, PostgreSQL and other databases

Affected versions of this package are vulnerable to SQL Injection due to improper escaping of the authorEmail field which uses PHP's FILTER_VALIDATE_EMAIL filter. This filter is insufficient in protecting against SQL injection attacks and should still be properly escaped. However, in this version, the authorEmail field is not escaped properly and can be used together with other fields to fully exploit the vulnerability.

An attacker can exfiltrate data, take over accounts, and in some cases, even achieve remote code execution by exploiting this vulnerability.

References