4 ms·
One surprising thing to keep an eye out for is that many web servers do not use the content-type headers when receiving json data; they simply parse the text as
by airza 6y ago
One surprising thing to keep an eye out for is that many web servers do not use the content-type headers when receiving json data; they simply parse the text as json regardless of its stated type and go from there. This means that requests encoded and mime-typed as form data that also parse as json can be sent to servers without triggering a pre-flight request. This can result in CSRF where it's not expected.
- staticassertion 6y agoWhere can I read more about this?
- syntheticcorp 6y agoHere’s my go to article on this behaviour: http://blog.opensecurityresearch.com/2012/02/json-csrf-with-parameter-padding.html http://blog.opensecurityresearch.com/2012/02/json-csrf-with-...