Remote credential and configuration disclosure of Huawei HG5XX devices using Nmap.

Remote credential and configuration disclosure of Huawei HG5XX devices using Nmap.

Posted on June 05, 2012 by Paulino Calderon

I have added a NSE script called "http-huawei-hg5xx-vuln" which exploits a couple of vulnerabilities found in Huawei HG5XX modems.

The first vulnerability which allows an attacker to extract the router's configuration file, was found by Pedro Joaquín of Websec. The second vulnerability lets the attacker extract the PPPoE password and was reported by ADiaz.

The information extracted by "http-huawei-hg5xx-vuln" is:

  • PPPoE credentials
  • Model
  • Firmware version
  • Gateway IP
  • DNS 1 and 2
  • Network segment
  • Active Ethernet and WiFi connections
  • BSSID

To obtain the Huawei HG5XX's PPPoE credentials and configuration file with Nmap we can use the following command:

$nmap -p80 --script http-huawei-hg5xx-vuln <IP>

If the device is vulnerable:

huawei hg5xx nmap

Here you can see a video demonstrating "http-huawei-hg5xx-vuln" in action:

References

 


Latest Blog Entries

Downloading an Application's Entire Source Code Through an Exposed GIT Directory
Website administrators sometimes inadvertently leave an exposed .git directory, from which it is possible to download the entire source code of the web application using just wget and a common server misconfiguration.

credmap: The Credential Mapper
An overview of credmap, an open source penetration testing tool that automates the process of testing for credential reuse. It does so by testing supplied user credentials on known websites and verifies if the password has been reused on any of these.

New publication: Mastering the Nmap Scripting Engine
We invite you to learn more about the latest publication from our team, "Mastering the Nmap Scripting Engine".

Latest News

Blackhat EU 2015
Websec participated with two tools at the Blackhat, EU Arsenal held in Amsterdam, NL from the 10-13 of November, 2015. During this event, we introduced our brand new tool "credmap: The Credential Mapper" and also presented an amped-up version of Panoptic.

BSides Vancouver 2015
Websec is proud to announce that we will be attending the 3rd annual edition of BSides Vancouver, a local non-profit information security conference held in the heart of Vancouver, BC on March 16 and 17.