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.
References
Link | Resource |
---|---|
https://github.com/embedthis/goahead/issues/249 | Issue Tracking Third Party Advisory |
https://github.com/embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74 | Patch Third Party Advisory |
https://www.elttam.com.au/blog/goahead/ | Exploit Patch Third Party Advisory |
https://github.com/elttam/advisories/tree/master/CVE-2017-17562 | Third Party Advisory |
https://www.exploit-db.com/exploits/43360/ | Exploit Third Party Advisory VDB Entry |
https://www.exploit-db.com/exploits/43877/ | |
http://www.securitytracker.com/id/1040702 | |
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html |
Configurations
Information
Published : 2017-12-12 11:29
Updated : 2018-04-19 18:29
NVD link : CVE-2017-17562
Mitre link : CVE-2017-17562
JSON object : View
CWE
CWE-20
Improper Input Validation
Products Affected
embedthis
- goahead