CVE-2007-1581
PHP 5.0.0-5.2.13 and 5.3.0-5.3.2 - Remote Code Execution via Hash Update File Resource Manipulation
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2007-1581. PoCs published by Stefan Esser.
AI-analyzed exploit summary This exploit leverages a use-after-free vulnerability in PHP's `hash_update_file()` function to execute arbitrary shellcode. It includes a memory leak technique via `substr_compare()` to determine the offset for reliable exploitation.
Description
The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by interrupting the hash_update_file function via a userspace (1) error or (2) stream handler, which can then be used to destroy and modify internal resources. NOTE: it was later reported that PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 are also affected.
Exploits (1)
This exploit leverages a use-after-free vulnerability in PHP's `hash_update_file()` function to execute arbitrary shellcode. It includes a memory leak technique via `substr_compare()` to determine the offset for reliable exploitation.