imagine we have this website

image.png

now let’s intercept the request.

image.png

notice that we have cache headers.

now let’s try to find out the hidden headers.

image.png

now let’s see the hidden headers.

image.png

and we got X-Host header.

now let’s add it to the request.

image.png

notice that the header is reflected in script tag.

now analysis the request.

image.png

the Vary header is set to user-agnet which mean that the application cache the request accourding to the user-agent of the users.

in order to exploit the victim we need to know his user agent.

now let’s try to get it’s user-agent.

image.png