QA Fundamentals · Middle · Question 47 of 75
Which input can reveal an XSS problem?
- 1
<script>alert(1)</script>in a field that is shown later - 2A very long email address in the login form
- 3A date written in a different format than expected
Show the answer
Correct answer: <script>alert(1)</script> in a field that is shown later
Explanation
If the text is rendered as HTML instead of plain text, the script runs. Testers check that such input is displayed literally or safely escaped.