ive been stuck on this darn challenge for hours, going over the part 3/4 of the guided walkthrough multiple times and i just feel like nothing is working. i have figured out that event handlers are blocked by the waf and it seems like the keyword “javascript” is also blocked by the waf. It seems to accept img src=x fine.. but anything after that its rejecting. i tried which seems to work but i have no idea how to get it to show the document.cookie. i just feel upset and frustrated that the lead up to this felt smooth and made sense but this just seems too damn hard . ive never been that great with xss .. but everywhere i look like portswigger for example all shows testing of onalert or script or javascript. but again.. i cant get any of these to work .. i havent saved a list of what ive tried but its basically:
asdf>"'<img src=x onerror=console.log(document.cookie);>
asdf>"'<img src=x onerror=document.write(document.cookie);>
asdf>"'<img src=x onerror=prompt(document.cookie);>
asdf>"'<a href="">CLICK</a> # works but i cant weaponize it
asdf>"'<a href="javascript:aaa">CLICK</a> # all javascript keywords inside a href is being blocked it seems .. but i tried anyways
asdf>"'<a href="javascript:prompt(document.cookie)">CLICK</a>
asdf>"'<a href="javascript:console.log(document.cookie)">CLICK</a>
asdf>"'<a href="javascript:()">CLICK</a>
i really really need help. im not strong in this area, and when i have so many possibilities, i just feel confused and overwhelmed.. need help being pointed in the right direction. i tried checking this forum post (Bypassing Web Application Firewalls 1.3 Challenge Exercise) .. i read it over and over but i still cant piece it together.. i know i need document.cookie , i know script tags work like img src and a href, but i have NO IDEA how to piece it all together into something that actually reads the document.cookie file without alert or javascript keywords. I only understand what was shown from the guided walkthrough so far and even that was hard to understand because im not great in javascript.. i need more guidance . this is not easy for me at all. i dont want to be stuck on this for days over something that should be like a 30 min challenge . its depressing
