SY0-301 · Question #846
Pete, the security administrator, has been notified by the IDS that the company website is under attack. Analysis of the web logs show the following string, indicating a user is trying to post a…
The correct answer is A. XSS attack. Injecting script tags into a web form or bulletin board is a classic cross-site scripting (XSS) attack, which causes malicious scripts to execute in other users' browsers.
Question
Pete, the security administrator, has been notified by the IDS that the company website is under attack. Analysis of the web logs show the following string, indicating a user is trying to post a comment on the public bulletin board. This is an example of which of the following?
Options
- AXSS attack
- BXML injection attack
- CBuffer overflow attack
- DSQL injection attack
How the community answered
(44 responses)- A75% (33)
- B5% (2)
- C7% (3)
- D14% (6)
Why each option
Injecting script tags into a web form or bulletin board is a classic cross-site scripting (XSS) attack, which causes malicious scripts to execute in other users' browsers.
XSS attacks insert malicious client-side scripts, typically JavaScript wrapped in script tags, into content that is later rendered and executed by other users' browsers. Posting such a string to a public bulletin board means every visitor who loads the page will have the script run in their browser session, potentially stealing cookies or credentials.
XML injection exploits vulnerabilities in XML parsers and requires XML-structured input, not HTML script tags targeting browser rendering.
Buffer overflow attacks exploit memory allocation boundaries in application code and are not triggered by submitting script tags through a web form.
SQL injection uses database query syntax such as single quotes and SQL keywords to manipulate backend queries, not script tags intended for browser execution.
Concept tested: Cross-site scripting (XSS) attack identification
Source: https://owasp.org/www-community/attacks/xss/
Topics
Community Discussion
No community discussion yet for this question.