Description
The mod_php module for the Apache HTTP Server allows local users with write access to PHP scripts to send signals to the server's process group and use the server's file descriptors, as demonstrated by sending a STOP signal, then intercepting incoming connections on the server's TCP port. NOTE: the PHP developer has disputed this vulnerability, saying "The opened file descriptors are opened by Apache. It is the job of Apache to protect them ... Not a bug in PHP.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | apache2 | No fix yet | — |
| Debian 13 | apache2 | No fix yet | — |
| Debian 12 | apache2 | No fix yet | — |
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.
Exploit-DB 2
- Apache 2.0.4x mod_php - File Descriptor Leakage (1) EDB-23481 · local · Dec 26, 2003 · verified
- Apache 2.0.4x mod_php - File Descriptor Leakage (2) EDB-23482 · local · Dec 26, 2003 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20061019 PHP "exec", "system", "popen" problem mailing-list
- 20061020 Re: PHP "exec", "system", "popen" (+small POC) mailing-list
- http://bugs.php.net/38915
- 20031226 Hijacking Apache https by mod_php mailing-list
- http://hackerdom.ru/~dimmo/phpexpl.c
- 9302 vdb-entry