Last Updated on November 21, 2023 by InfraExam
Which type of web-based attack uses malicious scripts that are injected into otherwise benign and trusted websites? The malicious scripts are then served to other victims who are visiting the infected websites.
- web redirection
- directory traversal
- HTTP 302 cushioning
|Explanation & Hint:
The type of web-based attack that involves using malicious scripts injected into otherwise benign and trusted websites is known as “XSS,” which stands for Cross-Site Scripting. In XSS attacks, the attacker injects malicious scripts into content that is then served to users visiting the website. When the users interact with the compromised website, the malicious script executes in their browser, potentially leading to data theft, session hijacking, or other malicious activities.