phpmyfaq/phpmyfaq
Affected
- introduced
3.2.5, fixed3.2.6(ecosystem)
Fixed versions
3.2.6
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2024-28107
phpMyFAQ SQL injections at insertentry & saveentry
Summary
A SQL injection vulnerability has been discovered in the insertentry & saveentry when modifying records due to improper escaping of the email address. This allows any authenticated user with the rights to add/edit FAQ news to exploit this vulnerability to exfiltrate data, take over accounts and in some cases, even achieve RCE.
PoC 1 - SQL Injection at insertentry:
email=test'/*@email.com b. notes=*/,1,1,1,1,null,1);select+pg_sleep(5)--pg_sleep(5) command is executed with a time delay of 5 seconds in the response. This verifies that the SQL injection vulnerability exists. imagePoC 2 - SQL Injection at saveentry
email=test'/*@email.com b. */,notes=(select+pg_sleep(5))--pg_sleep(5) command is executed with a time delay of 5 seconds in the response. This verifies that the SQL injection vulnerability exists. imageImpact
The SQL injection vulnerability discovered allows authenticated users with appropriate privileges to execute malicious SQL queries, potentially leading to data exfiltration, account takeover, and even remote code execution. Attackers can exploit the vulnerability to read sensitive data from the database, such as user credentials and system files, compromising the confidentiality and integrity of the system. Moreover, successful exploitation may enable attackers to gain unauthorized access to user accounts or execute arbitrary commands on the server, impacting both system administrators and end users.
High Basis: The source's own band: HIGH
3.2.5, fixed 3.2.6 (ecosystem)3.2.6
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0