Host Header Injection im Testlabor

Host Header Injection im Testlabor

Ich versuche herauszufinden, ob ein Server (im Testlabor) anfällig für Host-Header-Injection ist oder nicht. Im zweiten Szenario, in dem ich den Host-Header als „www.cow.com“ einfüge, erhalte ich immer noch die Meldung „302 Gefunden“. Bedeutet das, dass dieser Server anfällig für Host-Injection ist? Wenn nicht, würde ich dann die Meldung „404 nicht gefunden“ sehen?

Szenario 1:

kali01:~$ curl -v http://10.10.10.10/login.html

* Trying 10.10.10.10:80...

* TCP_NODELAY set

* Connected to 10.10.10.10 (10.10.10.10) port 80 (#0)

> GET /login.html HTTP/1.1

> Host: 10.10.10.10

> User-Agent: curl/7.67.0

> Accept: */*

>

* Mark bundle as not supporting multiuse

< HTTP/1.1 302 Found

< Location: https://10.10.10.10:443/login.html

< Connection: close

< Strict-Transport-Security: max-age=15552000, preload

< X-Frame-Options: DENY

< Content-Length: 0
  1. Szenario 2:

Wenn der Hostheaderwww.kuh.comeingefügt ist, erhalte ich immer noch die Meldung „302 Gefunden“.

kali01:~$ curl -H "Host:www.cow.com" -v http://10.10.10.10/login.html

* Trying 10.10.10.10:80...

* TCP_NODELAY set

* Connected to 10.10.10.10 (10.10.10.10) port 80 (#0)

> GET /login.html HTTP/1.1

> Host:www.cow.com

> User-Agent: curl/7.67.0

> Accept: */*

>

* Mark bundle as not supporting multiuse

< HTTP/1.1 302 Found

< Location: https://www.cow.com:443/login.html

< Connection: close

< Strict-Transport-Security: max-age=15552000, preload

< X-Frame-Options: DENY

< Content-Length: 0

<

* Closing connection 0

verwandte Informationen