QuestionQ20

VerifiedWeb Application Injection Attacks

A victim visits a website that lets authenticated users upload articles for other users to read. The victim signs in and selects a link on the website’s home page for a newly published article. When the article page loads, malicious code embedded in the uploaded article executes in the victim’s browser and sends sensitive information to the author of the malicious code. Which web application vulnerability made this attack possible?

Explanation

Stored cross-site scripting occurs when an application saves attacker-controlled script content and later renders it to other users without safe output encoding or sanitization. The malicious script executes in each viewer’s browser under the website’s origin and can transmit accessible sensitive data to the attacker.

Community Discussion

No comments yet. Be the first to start the discussion!