Your Guide to Dodging CSRF Attack Detection

Day 2,358, 05:30 Published in USA USA by Haselrig



→ Phew, you just put the finishing touches on the best article you've ever written in eRep. All that’s left is to pick a category, hit “Publish” and sit back and watch the votes roll in. Aaaannnd...CSRF Attack Detected. @#*&!





Even if you managed to remember to save the article somewhere else, CSRF is still an extremely annoying bug/security feature, and you can find yourself on a seemingly endless treadmill of repeating this process over and over. Before you give up in frustration and the rest of eRep never gets to read your brilliant article, here are a couple strategies to try to dodge the CSRF Attack Detected page.

The first thing to try is discarding the draft in the article writer and logging out of eRep:




Next, hit Ctrl + F5 to refresh the page. Why Ctrl + F5 instead of just refreshing the browser page normally? Refreshing the page may give you the same page even if the content has changed because it may load the page from cache. But Ctrl-F5 forces a cache refresh, upping the odds that if the content is changed, you will get the new content instead of the cached version. It's not a guarantee that this will fix the problem as Ctrl+F5 will cause the browser to throw out the cache and request a new page from the server, the server may ignore the no-cache header and serve a server side cached page. So, even Ctrl+F5 may return an old version of the page if the server ignores the no-cache header and you'll still get a CSRF Attack Detected warning.





If that should happen, another strategy to try is to use a private browsing tab to dodge a CSRF warning. These features are available in some browsers, examples being Incognito mode in Chrome and InPrivate browsing in FireFox, and allow you to sidestep the cache problem of the previous strategy. Just open a private browsing window in whatever flavor of browser you’re using, log in to eRep, paste in your article and hit publish. You should be good to go.









Hopefully, one of these strategies works for you and we all get a chance to read your game-changing article. If not, you can always go Office Space on it. Damn It Feels Good To Be A Gangsta 😛