Question
Which of the following correctly describes the primary
difference between Cross-Site Request Forgery (CSRF) and Cross-Site Scripting (XSS)?Solution
Cross-Site Request Forgery (CSRF) and Cross-Site Scripting (XSS) are both web security vulnerabilities, but they operate in distinct ways:
- CSRF tricks authenticated users into performing unintended actions on behalf of an attacker by exploiting trust in the user's session. For example, if a logged-in user clicks on a malicious link, the attacker could execute unwanted actions (e.g., fund transfers). CSRF exploits flaws in how web applications handle session tokens or cookies.
- XSS , on the other hand, involves injecting malicious scripts into a web application to execute in the victim’s browser. It primarily targets input validation and output encoding flaws to display or execute harmful code in the user's context.
- Option A: Both CSRF and XSS target the user’s browser, but XSS also indirectly impacts the application.
- Option C: CSRF does not rely on executing JavaScript; it typically involves sending crafted HTTP requests.
- Option D: CSRF does not inherently depend on phishing; it can occur through any malicious link, such as in a forum or ad.
- Option E: CSRF and XSS are protocol-agnostic and can occur over both HTTP and HTTPS.
Find the value of Lerner index if P=10 and MR= 5
A card is drawn randomly from a deck of ordinary playing cards. You win Rs.900 if the card is a spade or a king. What is the probability that you will w...
If interest payments are subtracted from gross fiscal deficit, the remainder will be
Identify the order of chronological development of the theory of demand.
a. Marshall’s theory of demand
Suppose the following bilateral spot exchange rates are being quoted for the Danish krone (DKK), the US dollar (US$) and the euro (€):
US$/€ ...
A sample poll of 100 voters reveals the following information about candidates A, B and C who are nominated for 3 different offices:
- ...
For fixed proportion production function, the elasticity of substitution is
According to the Travel and Tourism Development Index (TTDI) 2024 report published by the World Economic Forum (WEF), India is ranked
Classical economists argue that money is neutral because