Web Attacks Overview
π What are Web Attacks?¶
Web attacks are malicious actions targeting web applications. Attackers exploit vulnerabilities to steal data, bypass security, or control servers. These attacks often abuse user inputs, cookies, or server responses.
π 1. SQL Injection (SQLi) 1.10.1-Sql-Injection¶
Definition:
Injecting malicious SQL code into input fields to interact with the database in unintended ways.
Goal:
- Bypass login
- Read, modify, or delete database data
Example:
π‘οΈ 2. Cross-Site Scripting (XSS) 1.10.2-Cross-Sites-Scripting¶
Definition:
Injecting malicious JavaScript into a web page that runs in another user's browser.
Goal:
- Steal cookies or session data
- Deface websites
- Redirect users to malicious sites
Example:
π 3. Cross-Site Request Forgery (CSRF) 1.10.3-Cross-Site-Request-Forgery¶
Definition:
Tricking a userβs browser into sending unauthorized requests using their logged-in session.
Goal:
- Perform unwanted actions (e.g., money transfer, password change)
Example:
π 4. Server-Side Request Forgery (SSRF) 1.10.4-Server-Side-Request-Forgery¶
Definition:
Forcing a server to make requests to internal or restricted systems.
Goal:
- Access internal services (e.g., admin panels, cloud metadata)
Example:
Inputting: