Bypass of Apache httpd.conf Restrictions via ini_restore in PHP
In PHP versions 4.x up to 4.4.4 and 5 up to 5.1.6, the ini_restore function can be used by local users to reset configuration directives such as safe_mode and open_basedir to their php.ini master values, thereby bypassing restrictions set in Apache's httpd.conf. This allows local users to circumvent security controls intended to restrict PHP script behavior.
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.
Local users can bypass critical security restrictions such as safe_mode and open_basedir, potentially allowing them to access files and resources outside of intended boundaries, leading to information disclosure or further privilege escalation.
If you can’t patch tonight, do this now.
Restrict local user access to the affected PHP environment, and consider disabling the ini_restore function via the disable_functions directive in php.ini as a temporary mitigation until a patched version can be deployed.
Patch, then assume compromise.
Upgrade to a version of PHP later than 4.4.4 or 5.1.6 where the ini_restore function no longer allows bypassing of httpd.conf restrictions. Alternatively, disable the ini_restore function if possible.
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.