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.
Which of the following Statements about IREDA is/are True?
I- It is registered as Non-Banking Financial Company (NFBC) with Reserve Bank of India...
Which of the following statements about Prompt Corrective Action is/are True?
I-Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Prompt Corrective Action F...
Which of the following Statements about Multiplier Effect is/are True?
I- When the government spends a rupee, overall income rises by a multiple ...
When Government expenditure is more than income, through which of the following ways, it does the deficit financing?
(1) From Banks
(2) Fr...
Who among the following is not one of the eligible beneficiaries of PMUY?
Consider the following statements regarding Phase II of the Swachh Bharat Mission (Grameen) [SBM (G)]
1) The program will be implemented...
What is the basic difference between Gross NPA and Net NPA?
I- Gross NPA is the total of Bank loans and Net NPA is the total of all kinds of loan...