ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 159 - CS0-003 discussion

Report
Export

An employee is no longer able to log in to an account after updating a browser. The employee usually has several tabs open in the browser. Which of the following attacks was most likely performed?

A.
RFI
Answers
A.
RFI
B.
LFI
Answers
B.
LFI
C.
CSRF
Answers
C.
CSRF
D.
XSS
Answers
D.
XSS
Suggested answer: C

Explanation:

The most likely attack that was performed is CSRF (Cross-Site Request Forgery). This is an attack that forces a user to execute unwanted actions on a web application in which they are currently authenticated1. If the user has several tabs open in the browser, one of them might contain a malicious link or form that sends a request to the web application to change the user’s password, email address, or other account settings. The web application will not be able to distinguish between the legitimate requests made by the user and the forged requests made by the attacker. As a result, the user will lose access to their account.

To prevent CSRF attacks, web applications should implement some form of anti-CSRF tokens or other mechanisms that validate the origin and integrity of the requests2. These tokens are unique and unpredictable values that are generated by the server and embedded in the forms or URLs that perform state-changing actions. The server will then verify that the token received from the client matches the token stored on the server before processing the request. This way, an attacker cannot forge a valid request without knowing the token value.

Some other possible attacks that are not relevant to this scenario are:

RFI (Remote File Inclusion) is an attack that allows an attacker to execute malicious code on a web server by including a remote file in a script. This attack does not affect the user’s browser or account settings.

LFI (Local File Inclusion) is an attack that allows an attacker to read or execute local files on a web server by manipulating the input parameters of a script. This attack does not affect the user’s browser or account settings.

XSS (Cross-Site Scripting) is an attack that injects malicious code into a web page that is then executed by the user’s browser. This attack can affect the user’s browser or account settings, but it requires the user to visit a compromised web page or click on a malicious link. It does not depend on having several tabs open in the browser.

asked 02/10/2024
Sankalp Wadiwa
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first