|
|
|
|
|
by ynniv
5187 days ago
|
|
Firefox already blocks off-domain POST requests, unless the 3rd party domain responds to an OPTIONS preflight request. So, I'm talking only about forms sending and GET is ok sure. Google's logout CSRF works because the logout link is a GET request. So, no, there is no quick fix. |
|
---
https://developer.mozilla.org/en/http_access_control#Simple_...
A simple cross-site request is one that:
- Only uses GET or POST. If POST is used to send data to the server, the Content-Type of the data sent to the server with the HTTP POST request is one of application/x-www-form-urlencoded, multipart/form-data, or text/plain.
- Does not set custom headers with the HTTP Request (such as X-Modified, etc.)
---
This is actually a big deal, since it means you can send a cross-domain mutlipart-POST with no preflight. That allows for an effective CSRF attack against file upload systems.
And of course, cross-domain POST requests via <form> tags have always worked and will continue to work.