medium
Single Answer
0Melania is reviewing posts to a user forum on her company's website, and when she browses a certain post, a message pops up in a dialog box on her screen reading “Alert.” She reviews the source code for the post and finds the following code snippet: <script>alert(‘Alert’);</script> What was the likely motivation of the user who posted the message on the forum containing this code?
Answer Options
A
Reconnaissance
B
Theft of sensitive information
C
Credential stealing
D
Social engineering
Correct Answer: A
Explanation
The script that Melania discovered merely pops up a message on a user's screen and does not perform any more malicious action. This type of script, using an alert() call, is commonly used to probe websites for cross-site scripting vulnerabilities.