- What is a CSRF attack? How does it use HTTP requests? And why do we call it the one-click attack?
- What is an XSS attack? And what is the connection between it and cookies/sessions? And what are the two main categories of XSS?
- What is SQL injection? and what is the attacker’s intention from it?
- Consider the below SQL command, where is the vulnerability? think about some ways an attacker can misuse it:
const { username, password } = req.body
let strQry = `SELECT Count(*) FROM Users WHERE username=${username} AND password=${password}`;
- What does End-to-End encryption means? Share an example of an well-known app using E2EE, how is that app using it?
1- A CSRF (Cross-Site Request Forgery) attack tricks users into making unwanted actions on a website where they're logged in, by exploiting their session cookies. To prevent these, websites use CSRF tokens and other security measures.
2-An XSS (Cross-Site Scripting) attack injects malicious scripts into websites to steal cookies and hijack sessions. The two main types are:
Stored XSS: Malicious scripts are saved on the server.
Reflected XSS: Malicious scripts are echoed by the server from user inputs.
3-SQL injection involves inserting malicious SQL code into databases via user input, aiming to manipulate or steal data.
4- The vulnerability lies in directly inserting user input into the SQL query, allowing SQL injection. Attackers can bypass authentication or extract data by altering the query with malicious input, such as username=admin'-- to ignore the password check.
5-End-to-End Encryption (E2EE) means only communicating users can read messages, preventing access from third parties, including service providers. WhatsApp uses E2EE for messages and calls, ensuring that only the communicating users can decrypt and view the content.
with :
1-Ninos Dinkha
2-aween ezzat
3-lava ahmed
4-teba kaaed