SSD Advisory – Over 100K IoT Cameras Vulnerable to Source Disclosure

Credit to Author: noam| Date: Thu, 09 Mar 2017 08:34:23 +0000

Vulnerability Summary
The following advisory describes an arbitrary file content disclosure vulnerability found in GoAhead web server.

The GoAhead web server is present on multiple embedded devices, from IP Cameras to Printers and other embedded devices.

The vulnerability allows a remote unauthenticated attacker to disclose the content of the file being accessed. As most embedded devices do not run a SQL (or SQL-like) daemon, the credentials for authentication are stored inside the file being accessed. Through this disclosure attack, an attacker can view the credentials required to access the device.

Credit
An independent security researcher Istvan Toth has reported this vulnerability to Beyond Security’s SecuriTeam Secure Disclosure program.

Vendor response
Update: the vendor (GoAhead) claims the vulnerability is not in his product, but rather in the camera vendor’s code.

We at Beyond Security, are unsure about this, but as none of the camera vendors responded, we are left in the dark at the root cause for the vulnerability.

Since this vulnerability affects practically multiple devices that have the GoAhead web server (these devices appear to implement old versions of GoAhead), there is no one company you can report these vulnerabilities to or get them addressed – further the majority of the products that are vulnerable are OEM products with no real “vendor” behind them.

We urge users who have an embedded device and have GoAhead running on them, you can know this by seeing the following banner returned when you connect to the device:

To remove the device from the network, or at the very least not allow access to the web interface to anyone beside a very strict IP address range.

Vulnerabilities Details
The vulnerability is triggered sending a malformed request to the web server, you can see the difference between the regular request and the vulnerability triggering request here:

Normal request-response

Vulnerability triggering request-response
Request without leading ‘/’ bypasses HTTP basic auth. Moreover, requesting login.cgi responds the cleartext credentials

https://blogs.securiteam.com/index.php/feed