Skip to main content
Blog May 27, 2012

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

A new NSE script called "http-huawei-hg5xx-vuln" has been added to Nmap which exploits a couple of vulnerabilities found in Huawei HG5XX modems.

Share this article:

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

 

Subscribe to our Newsletter

Get the latest cybersecurity insights and updates delivered to your inbox.

Related Articles

Discover more cybersecurity insights and solutions to help strengthen your organization's security posture

Image unavailable
Blog October 3, 2023

A Comparison Between the Real User ID and the Effective User ID is not Enough to Prevent Privilege Escalation

In Unix-like systems, processes have a real and effective user ID determining their access permissions. While usually identical, they can differ in situations like when the setuid bit is activated in executables.

Image unavailable
Blog May 19, 2022

CVE-2022-21404: Another story of developers fixing vulnerabilities unknowingly because of CodeQL

How CodeQL may help reduce false negatives within Open-Source projects. Taking a look into a deserialization vulnerability within Oracle Helidon (CVE-2022-21404).

Image unavailable
Blog September 2, 2021

Cybersecurity in Web Applications - Where to start? Where to improve? Where to learn more?

A list of resources for web application security and a short description of what each resource covers.