Attacks and Exploits
A tester must try each word in words.txt as the value of the role field in the Cookie header of http://app.example/admin, hiding 403 responses. Which command does this?
Show the answer
Correct answerD. wfuzz -w words.txt -H "Cookie: role=FUZZ" --hc 403 http://app.example/admin
AWhy not this: Putting FUZZ in the URL path tests paths under /admin, not cookie values.
BWhy not this: Putting FUZZ in the -d body sends the words as POST data, not in the Cookie header.
CWhy not this: The --sc option shows only 403 responses, the reverse of hiding them.
DWhy this is right: FUZZ in the Cookie header sends each word as the role value, and --hc 403 hides the 403 responses.
Wfuzz replaces FUZZ wherever it appears, so placing it in the Cookie header sends each word as the role value, and --hc hides responses with code 403. The --sc option does the opposite and shows only 403 responses.