[Full-disclosure] PHP filesystem attack vectors

Stefan Esser stefan.esser at sektioneins.de
Sun Feb 8 13:12:43 GMT 2009


Hello,

ascii schrieb:
> PHP filesystem attack vectors
> 
>  Name              PHP filesystem attack vectors
>  Systems Affected  PHP and PHP+Suhosin

This research misses some information.

It compares "vanilla PHP" to "patched PHP" but that is not exactly true.

PHP + Suhosin replaces the system's realpath() with an own 
implementation based on FreeBSD (+ some hardening).

This means everything presented that works against PHP + Suhosin should 
work against vanilla PHP when used on FreeBSD, OS X, OpenBSD, ...

Additionally the research should be repeated with PHP 5.3-beta, because 
it now does something very similar to Suhosin.


Stefan Esser




Full-Disclosure is hosted and sponsored by Secunia.