Description
Safe Mode feature (safe_mode) in PHP 3.0 through 4.1.0 allows attackers with access to the MySQL database to bypass Safe Mode access restrictions and read arbitrary files using "LOAD DATA INFILE LOCAL" SQL statements.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 3
- PHP 4.x/5.x MySQL Library - 'Safe_mode' Filesystem Circumvention (1) EDB-21264 · remote · Feb 3, 2002 · verified
- PHP 4.x/5.x MySQL Library - 'Safe_mode' Filesystem Circumvention (2) EDB-21265 · remote · Feb 3, 2002 · verified
- PHP 4.x/5.x MySQL Library - 'Safe_mode' Filesystem Circumvention (3) EDB-21266 · remote · Feb 3, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20020206 DW020203-PHP clarification mailing-list
- 20020205 Re: PHP Safe Mode Filesystem Circumvention Problem mailing-list
- 20020206 DW020203-PHP clarification mailing-list
- 20020203 PHP Safe Mode Filesystem Circumvention Problem mailing-list
- 20020203 PHP Safe Mode Filesystem Circumvention Problem mailing-list
- php-mysql-safemode-bypass(8105) vdb-entry
- 4026 vdb-entry