Welcome to the Cache Poisoning Lab. In this lab you will have the opportunity to experiment with some of the vulnerabilities presented in the brilliant paper Practical Web Cache Poisoning by James Kettle.
I'll give a few pointers in the various labs, but not too much as James has given a good walk through of exploiting each issue in his post.
To prevent people interfering with each other as they run their tests, everyone gets their own host to work on. For this session, your host will be https://5c4d374b.poison.digi.ninja:2443, but this will change whenever you refresh this page.
A basic poison, affecting all visitors to the page.
Poison a specific user agent. To test this, use two different browsers or a user agent switcher, to see how the poisoning affects one and not the other.
Use a bug in internal redirection to redirect all Chrome users who access the page to one you control.
From my testing, I was not able to get PHP and Varnish to work together to cache a 301 or 302 redirect, so this exercise uses a meta redirect.
All the other exercises give the Age
header so you know how long you have to wait for the current cache entry to expire so you can launch your attack. This exercise hides the value so you have to derive it for yourself. The value is between 10 and 30 seconds and you do not need to DoS the server to work it out.
This server hosts both this site and my main "digi.ninja" site, it also hosts a "secret" site. Use the broken proxy to redirect users to my main site or to access the secret site.
Lab created by Robin Wood - DigiNinja