John works as a Penetration Tester in a security service providing firm named you-are-secure Inc.
Recently, John’s company has got a project to test the security of a promotional Website www.missatlanta.com and assigned the pen-testing work to John. When John is performing penetration testing, he inserts the following script in the search box at the company home page:
<script>alert(‘Hi, John’)</script>
After pressing the search button, a pop-up box appears on his screen with the text – "Hi, John."
Which of the following attacks can be performed on the Web site tested by john while considering the above scenario?
A. Replay attack
B. Buffer overflow attack
C. CSRF attack
D. XSS attack