A critical vulnerability discovered in GoAhead Servers with versions running below 3.6.5 allows an attacker can exploit a remote code in GoAhead web Servers which affect thousands of IoT Devices.
GoAhead world’s most popular embedded Web Servers that are deployed in millions of devices including printers, IP phones, networking devices and many more.
Among a list of its clients, some of the famous ones are Avaya, Siemens, Canon, IBM, D-Links, Kodak, HP.
The vulnerability can be tracked using CVE-2017-17562 and exits in the “CGI handler” function in all versions prior to 3.6.5.
Based on the Elttam report, The vulnerability is a result of Initialising the environment of forked CGI scripts using untrusted HTTP request parameters, and will affect all user’s who have CGI support enabled with dynamically linked executables (CGI scripts). This behavior, when combined with the glibc dynamic linker, can be abused for remote code execution using special variables such as LD_PRELOAD”.
This vulnerability provides the ability to the remote attacker to send malicious HTTP CGI request that can POST payload in the request and the exploitation could lead to an arbitrary code execution on the server.
CVE-2017-17562: Remote LD_PRELOAD exploitation of GoAhead web server.
So this runs a hell of a lot of things: printers, network gear, CC cameras. Users of telecoms hosting stuff. Convenience without proper configuration.
What I found on Shodan now: pic.twitter.com/TZW4QyixMk
— ❄️🎄3ncr1ptmas🎄❄️ (@3ncr1pt3d) December 19, 2017
Shodan search reveals a large number of devices (approx. more than 500,000) employing GoAhead server. So, as per now, a number of these could be vulnerable.
A patch has been released regarding the vulnerability and all the users have been advised to upgrade to GoAhead 3.6.5 if dynamically linked CGI programs are being used on Linux Machines.
Elttam has also released POC that could be used to check if your GoAhead Servers version is prone to attack and to ensure security against the attack. The test scripts by Elttam can be found here.
With a large number of devices affected by this vulnerability, this seems to be a big trouble as a large pool of affected devices is now prone to malicious attackers.
Source : GBHackers