CVE-2006-0887

PHPLib < 7.4a - Remote Code Execution via Base64-Encoded Cookie

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2006-0887. PoCs published by GulfTech Security.

AI-analyzed exploit summary The writeup details a SQL injection vulnerability in PHPLib's session handling code, which can lead to remote code execution via crafted session IDs. It includes technical analysis of the vulnerable function and a proof-of-concept HTTP request demonstrating the exploit.

Description

Eval injection vulnerability in sessions.inc in PHP Base Library (PHPLib) before 7.4a, when index.php3 from the PHPLib distribution is available on the server, allows remote attackers to execute arbitrary PHP code by including a base64-encoded representation of the code in a cookie. NOTE: this description was significantly updated on 20060605 to reflect new details after an initial vague advisory.

Exploits (1)

exploitdb WRITEUP
by GulfTech Security · textwebappsphp
https://www.exploit-db.com/exploits/43838

The writeup details a SQL injection vulnerability in PHPLib's session handling code, which can lead to remote code execution via crafted session IDs. It includes technical analysis of the vulnerable function and a proof-of-concept HTTP request demonstrating the exploit.

Classification
Writeup 90%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: PHPLib <= 7.4
No auth needed
Prerequisites: Access to a vulnerable PHPLib installation · Ability to manipulate session IDs via GET/COOKIE parameters
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/24873
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2006/0720
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/23466
Patch, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/16902
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1016123
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/16801

Scores

EPSS 0.0346
EPSS Percentile 87.5%

Details

CWE
CWE-94
Status published
Products (1)
phplib_team/phplib 7.4
Published Feb 25, 2006
Tracked Since Feb 18, 2026