11.05.2014 Views

Advanced CSRF and Stateless Anti-CSRF - owasp

Advanced CSRF and Stateless Anti-CSRF - owasp

Advanced CSRF and Stateless Anti-CSRF - owasp

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Important in your REST<br />

API<br />

•<br />

•<br />

Restrict HTTP method, e.g. POST<br />

Easier to do <strong>CSRF</strong> with GET<br />

Restrict to AJAX if applicable<br />

X-Requested-With:XMLHttpRequest<br />

Cross-domain AJAX prohibited by default<br />

•<br />

Restrict media type(s), e.g.<br />

application/json<br />

HTML forms only allow URL encoded, multipart<br />

<strong>and</strong> text/plain

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!