CSRF (Cross-Site Request Forgery) એક લૉગ-ઇન કરેલ વપરાશકર્તાના બ્રાઉઝરને એવી અનિચ્છિત વિનંતીઓ કરવા માટે છેતરે છે જે સાઇટ પર હોય છે જ્યાં તેઓ પ્રમાણિત છે — તેમની સંમતિ વિના ક્રિયાઓ (સ્થાનાંતર, પરિવર્તનો) કરે છે, બ્રાઉઝરના શংસાપત્ર/કુકીઝ સ્વચાલિત રીતે મોકલવાનું શોષણ કરે છે..
CSRF કેવી રીતે કાર્ય કરે છે
The attack exploits that browsers AUTO-SEND cookies (incl. session cookies) with requests:
1. a user is LOGGED IN to a site (has a session cookie)
2. the user visits a MALICIOUS page (or clicks a crafted link)
3. that page makes a request to the target site (e.g. a hidden form auto-submitting)
4. the browser AUTOMATICALLY includes the user's session cookie → the site thinks it's
a legitimate request from the user → performs the action (transfer money, change email)
→ the user unknowingly performs an action they didn't intend.
