CompTIA
SY0-501 · Question #414
An attacker exploited a vulnerability on a mail server using the code below. <HTML><body onload=document.location.replace "URL:" +"document.location) ; /> </body> </HTML> Which of the following BEST e
Sign in or unlock SY0-501 to reveal the answer and full explanation for question #414. The question stem and answer options stay visible for context.
Submitted by daniela_cl· Mar 4, 2026Threats, vulnerabilities, and mitigations
Question
An attacker exploited a vulnerability on a mail server using the code below. <HTML><body onload=document.location.replace "URL:" +"document.location) ; /> </body> </HTML> Which of the following BEST explains what the attacker is doing?
Options
- AThe attacker is replacing a cookie.
- BThe attacker is stealing a document.
- CThe attacker is replacing a document.
- DThe attacker is deleting a cookie.
Unlock SY0-501 to see the answer
You've previewed enough free SY0-501 questions. Unlock SY0-501 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#XSS#JavaScript injection#web attack#HTML manipulation