CCSP · Question #323
Bob is staging an attack against Alice's website. He is able to embed a link on her site that will execute malicious code on a visitor's machine, if the visitor clicks on the link. This is an…
The correct answer is A. Cross-site scripting. This scenario describes a Cross-Site Scripting (XSS) attack, where an attacker injects malicious client-side scripts into web pages viewed by other users.
Question
Bob is staging an attack against Alice's website. He is able to embed a link on her site that will execute malicious code on a visitor's machine, if the visitor clicks on the link. This is an example of which type of attack? Response:
Options
- ACross-site scripting
- BBroken authentication/session management
- CSecurity misconfiguration
- DInsecure cryptographic storage
How the community answered
(30 responses)- A87% (26)
- B3% (1)
- C3% (1)
- D7% (2)
Why each option
This scenario describes a Cross-Site Scripting (XSS) attack, where an attacker injects malicious client-side scripts into web pages viewed by other users.
Cross-site scripting (XSS) attacks occur when an attacker injects malicious scripts into content on a trusted website. When a victim's browser executes the malicious script embedded in the legitimate site, it can steal session cookies, deface websites, or redirect the user to malicious sites, matching the scenario of executing malicious code on a visitor's machine via a link.
Broken authentication/session management refers to vulnerabilities in how user identities are confirmed or sessions are managed, leading to unauthorized access.
Security misconfiguration refers to incorrectly configured security settings, default configurations, or insecure permissions on servers, applications, or devices.
Insecure cryptographic storage involves sensitive data being stored without proper encryption or with weak encryption algorithms.
Concept tested: Cross-site scripting (XSS) attacks
Source: https://learn.microsoft.com/en-us/azure/security/fundamentals/cross-site-scripting
Topics
Community Discussion
No community discussion yet for this question.