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.
The Government of India has recently suspended the visa service for the citizens of which country?
Which of the he following statements is/are correct about Intelligent Grievance Monitoring System (IGMS) 2.0:
1. It is a public grievance porta...
The term Virovore is sometimes mentioned in News. Which of the following correctly define the given term:
In July 2024, which economic indicator was recorded as the lowest in the last 59 months?
Where is the headquarters of the National Biodiversity Authority (NBA)?
Who is the author of the book “Why can’t Elephant be red” ?
From which date did key provisions of the Banking Laws (Amendment) Act, 2025, come into force?
Which country is facing a severe population decline, potentially becoming the first country to experience a "population collapse"?
Which country became the first globally to sign a licensing agreement to adopt UPI technology in 2025?
The origin of Directive Principles of State Policy can be traced back to ______________.