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.
