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.
