Fixed My First XSS Attack

Yesterday, one of my clients got his website hacked and showed Adware on it which was pretty harming to his business and his website. After thorough investigation, I found it was an XSS attack which injected a JavaScript into his website that redirects visitors to the ads. But the dangerous part was it created an …