XUT_ / COURSES / PENETRATION TESTER

Manual Discovery - HTTP Headers

Headers HTTP

Cuando hacemos una petición al servidor web, el servidor devuelve varios headers HTTP. Estos headers pueden contener a veces información útil como el software del servidor web y el lenguaje de programación en uso. En el ejemplo de abajo podemos ver que es un webserver NGINX versión 1.18.0 y corre PHP en versión 7.4.3. Usando esta información, podríamos encontrar vulnerabilidades del software usado.

shell
user@machine$ curl http://10.10.235.145 -v 
*   Trying 10.10.235.145:80... 
* TCP_NODELAY set 
* Connected to 10.10.235.145 (10.10.235.145) port 80 (#0) 
> GET / HTTP/1.1 
> Host: 10.10.235.145 
> User-Agent: curl/7.68.0 
> Accept: */* 
>  
* Mark bundle as not supporting multiuse 
< HTTP/1.1 200 OK 
< Server: nginx/1.18.0 (Ubuntu) 
< X-Powered-By: PHP/7.4.3 
< Date: Mon, 19 Jul 2021 14:39:09 GMT 
< Content-Type: text/html; charset=UTF-8 
< Transfer-Encoding: chunked 
< Connection: keep-alive