Imagine we have this website.

image.png

now let’s intercept the request.

image.png

notice the cache header is set to hit (which mean that the page is cached)

now let’s try to FUZZ for hidden headers using param miner.

image.png

now let’s see the output.

image.png

notice that param miner identified the secret header X-Forwarded-Host

now let’s put the parameter in the request.

image.png

notice that the value of the X-Forwarded-Host reflected in script tags.

now let’s try to inject a malisous code in it.

image.png

as notice when we send the request the script will be included from our exploit server.

image.png

now let’s check the lab.

image.png

and we solved the lab.