Hexret

PHP vulnerabilities

3 real-world CVEs in PHP. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.

  • CVE-2019-11043high 8.72019

    PHP-FPM PATH_INFO pointer underflow

    PHP FastCGI Process Manager · CWE-787

    A malformed FastCGI path can make PATH_INFO shorter than the script-path adjustment, moving a derived pointer before its buffer and enabling an out-of-bounds write.

  • CVE-2016-5385high 8.12016

    httpoxy: the Proxy header becomes HTTP_PROXY

    PHP CGI/FastCGI environment handling and applications trusting HTTP_PROXY · CWE-601

    CGI maps an inbound `Proxy` header to `HTTP_PROXY`, colliding with the conventional environment variable for an outbound HTTP proxy. PHP applications and libraries that trusted `getenv('HTTP_PROXY')` could route server-side requests through an attacker-selected proxy.

  • CVE-2012-1823critical 9.82012

    PHP-CGI query-string argument injection

    PHP (php-cgi, sapi/cgi) · CWE-77

    Under the CGI SAPI, a query string with no = character is delivered to php-cgi as command-line arguments, so URL-supplied options like -d reach PHP's option parser and turn into remote code execution.

Browse by