Re:Hacker News CSRF Vulnerability
by Osiris on Thursday February 25, 2016 @06:03PM
(#11178559)
I have implemented CSRF for the public API I work on and all PUT/POST requests require the CSRF token, not GET requests. In this case, the login form uses a POST request and thus must require a CSRF token to avoid an attack on users that aren't logged in.
[ Parent
| on HN ]
What stops an attacker from requesting the CSRF token?
Same-origin policy.
That only applies to browsers. I can request it from my server just fine. See https://news.ycombinator.com/item?id=11178922