{"id":"CVE-2004-1315","published":"2004-12-31T05:00:00Z","modified":"2024-08-08T00:46:12Z","title":"viewtopic.php in phpBB 2.x before 2.0.11 improperly URL decodes the highlight parameter when extracting words and…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"viewtopic.php in phpBB 2.x before 2.0.11 improperly URL decodes the highlight parameter when extracting words and phrases to highlight, which allows remote attackers to execute arbitrary PHP code by double-encoding the highlight value so that special characters are inserted into the result, which is then processed by PHP exec, as exploited by the Santy.A worm.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is in viewtopic.php in phpBB 2.x releases before 2.0.11, where the highlight parameter is improperly URL decoded when extracting words and phrases to highlight. An attacker with remote access can exploit this by double-encoding the highlight value so that special characters survive into the result, which is then passed to PHP's exec function, allowing arbitrary PHP code execution without authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:20:42Z"},"cvss":null,"epss":{"score":0.72539,"percentile":0.99439,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2017-06-20","exploitedFirstSeen":"2017-06-20","ransomware":false,"evidence":[{"url":"https://community.broadcom.com/symantecenterprise/communities/community-home/librarydocuments/viewdocument?DocumentKey=a9c54f79-d780-437b-a7f5-a74960e299d5&CommunityKey=8af7f28f-02f1-4107-8639-93a60b6546d4&tab=librarydocuments","date":"2017-06-20"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/10701","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://security.gentoo.org/glsa/200411-32","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://marc.info/?l=bugtraq&m=110365752909029&w=2","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18052","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.phpbb.com/phpBB/viewtopic.php?t=240513","tags":["x_refsource_CONFIRM"]},{"url":"http://www.kb.cert.org/vuls/id/497400","tags":["third-party-advisory","x_refsource_CERT-VN"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA04-356A.html","tags":["third-party-advisory","x_refsource_CERT"]},{"url":"http://secunia.com/advisories/13239/","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://marc.info/?t=110079440800004&r=1&w=2","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.securityfocus.com/archive/1/385208","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://marc.info/?l=bugtraq&m=110029415208724&w=2","tags":["mailing-list","x_refsource_BUGTRAQ"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2004-1312","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2004-1312","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":647,"url":"https://www.exploit-db.com/exploits/647","title":"phpBB 2.0.10 - Remote Command Execution","type":"webapps","platform":"php","date":"2004-11-22","verified":true,"provenance":"source"},{"id":12510,"url":"https://www.exploit-db.com/exploits/12510","title":"PHP-Nuke 7.0/8.1/8.1.35 - Wormable Remote Code Execution","type":"webapps","platform":"php","date":"2010-05-05","verified":false,"provenance":"source"},{"id":16890,"url":"https://www.exploit-db.com/exploits/16890","title":"phpBB - 'viewtopic.php' Arbitrary Code Execution (Metasploit)","type":"webapps","platform":"php","date":"2010-07-03","verified":true,"provenance":"source"},{"id":24274,"url":"https://www.exploit-db.com/exploits/24274","title":"phpBB 2.0.x - 'viewtopic.php' PHP Script Injection","type":"webapps","platform":"php","date":"2004-07-12","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":4,"earliest":"2004-07-12"},"metasploit":[{"name":"phpBB viewtopic.php Arbitrary Code Execution","module":"exploit/unix/webapp/phpbb_highlight","type":"exploit","disclosureDate":"2004-11-12","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/phpbb_highlight.rb"}],"first":{"date":"2004-07-12","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/24274"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2004-07-12","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-24274); later: Metasploit 2004-11-12","url":"https://www.exploit-db.com/exploits/24274","provenance":"source"},{"date":"2004-12-31","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2004-1315","provenance":"source"},{"date":"2017-06-20","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://community.broadcom.com/symantecenterprise/communities/community-home/librarydocuments/viewdocument?DocumentKey=a9c54f79-d780-437b-a7f5-a74960e299d5&CommunityKey=8af7f28f-02f1-4107-8639-93a60b6546d4&tab=librarydocuments","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":59.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 3418 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.89,"detail":"percentile 0.9944"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"4 Exploit-DB entries; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}