What is CSRF and how can an application mitigate it?
Reveal the answer and explore the explanation.
06HardHigh priorityWhat is CSRF and how can an application mitigate it?
Answer
HardHigh priority
What is CSRF and how can an application mitigate it?
Answer
CSRF induces a browser to send an authenticated unwanted request; defenses depend on session design and include origin checks, CSRF tokens and suitable cookie settings.
Practical example
Reject untrusted-origin state-changing requests where cookie authentication is used.
Reference: Further reading ↗