PHP Code Injection in PhpQuiz install.php
A direct static code injection vulnerability exists in cfgphpquiz/install.php in Walter Beschmout PhpQuiz 1.2 and earlier. Remote attackers can inject arbitrary PHP code into config.inc.php by submitting crafted configuration settings during installation, leading to persistent code execution.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary PHP code on the server with the privileges of the web server process. This can lead to full compromise of the application and potentially the underlying system.
If you can’t patch tonight, do this now.
Restrict access to the install.php script after initial installation, and ensure that the web server user has minimal write permissions. Employ web application firewalls to detect and block malicious input targeting configuration scripts.
Patch, then assume compromise.
Upgrade to a fixed version of PhpQuiz, if available, or apply a patch that properly sanitizes and validates configuration input before writing to config.inc.php. Ensure that user-supplied data is never directly written to PHP files without strict validation and escaping.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.