CVE-2017-17562
Embedthis GoAhead Remote Code Execution Vulnerability
Exploited in the wild
This vulnerability is on a Known Exploited Vulnerabilities catalogue, added 2021-12-10. Federal due date: 2022-06-10.
Apply updates per vendor instructions.
Public exploit code
Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.
- GoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Arbitrary Module Load (Metasploit)2018-01-24 · remote · multiple · Verified
- GoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Remote Code Execution2017-12-18 · remote · linux · Verified
Impact
Embedthis GoAhead before 3.6.5 allows remote code execution if CGI is enabled and a CGI program is dynamically linked. This is a result of initializing the environment of forked CGI scripts using untrusted HTTP request parameters in the cgiHandler function in cgi.c. When combined with the glibc dynamic linker, this behaviour can be abused for remote code execution using special parameter names such as LD_PRELOAD. An attacker can POST their shared object payload in the body of the request, and reference it using /proc/self/fd/0.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Embedthis | Goahead | before 3.6.5 |
| Oracle | Integrated Lights Out Manager | Versions 3.0, 4.0 |
References
- NVD record
- CVE.org record
- CISA KEV catalog
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- http://www.securitytracker.com/id/1040702
- https://github.com/elttam/advisories/tree/master/CVE-2017-17562
- https://github.com/embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74
- https://github.com/embedthis/goahead/issues/249
- https://www.elttam.com.au/blog/goahead/
- https://www.exploit-db.com/exploits/43360/
- https://www.exploit-db.com/exploits/43877/
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- http://www.securitytracker.com/id/1040702
- https://github.com/elttam/advisories/tree/master/CVE-2017-17562
- https://github.com/embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74
- https://github.com/embedthis/goahead/issues/249
- https://www.elttam.com.au/blog/goahead/
- https://www.exploit-db.com/exploits/43360/
- https://www.exploit-db.com/exploits/43877/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-17562