ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 125 - CS0-003 discussion

Report
Export

While reviewing web server logs, a security analyst found the following line:

<IMG SRC='vbscript:msgbox('test')'>

Which of the following malicious activities was attempted?

A.
Command injection
Answers
A.
Command injection
B.
XML injection
Answers
B.
XML injection
C.
Server-side request forgery
Answers
C.
Server-side request forgery
D.
Cross-site scripting
Answers
D.
Cross-site scripting
Suggested answer: D

Explanation:

XSS is a type of web application attack that exploits the vulnerability of a web server or browser to execute malicious scripts or commands on the client-side. XSS attackers inject malicious code, such as JavaScript, VBScript, HTML, or CSS, into a web page or application that is viewed by other users.The malicious code can then access or manipulate the user's session, cookies, browser history, or personal information, or perform actions on behalf of the user, such as stealing credentials, redirecting to phishing sites, or installing malware12

The line in the web server log shows an example of an XSS attack using VBScript. The attacker tried to insert an <IMG> tag with a malicious SRC attribute that contains a VBScript code. The VBScript code is intended to display a message box with the text ''test'' when the user views the web page or application.This is a simple and harmless example of XSS, but it could be used to test the vulnerability of the web server or browser, or to launch more sophisticated and harmful attacks3

asked 02/10/2024
Joseph Lewis
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first