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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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!