People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!
/view only succeeds if the header contains From-Fetch but contains an XSS sink within it via the HTML parameter. / performs a call to /view via a Fetch and places the contents within iframe without script execution. This is the setup for the challenge.From-Fetch header to an unintended request.cn_ prefix to prevent cache poisoning during mainframe navigation. In. Particularly, this is added when the top level of the page has its location.href modified.cn_ on the page. Notably, history.back() doesn't count as a cross-site main-frame navigation for whatever reason! window.open() to /?html=<XSS> to populate the cache. history.back()./view?html=<XSS>. history.back() to load the cached version of the page to get XSS.