सामान्य हमले के प्रकारों को समझना — हमलावर सिस्टम से समझौता करने की कैसे कोशिश करते हैं — उनके विरुद्ध बचाव के लिए बुनियादी है। प्रमुख श्रेणियों में injection, XSS, CSRF, brute force, social engineering, DDoS, और अधिक शामिल हैं।
वेब एप्लिकेशन हमले
INJECTION (SQL, command, etc.) → inject malicious code via input (manipulate queries/commands)
XSS (Cross-Site Scripting) → inject scripts that run in victims' browsers
CSRF (Cross-Site Request Forgery) → trick a logged-in user's browser into making unwanted
requests (perform actions as them without consent)
BROKEN ACCESS CONTROL → access/modify what you're not authorized to (e.g. IDOR)
SSRF → trick the server into making requests it shouldn't
