This attack can be deployed by infusing a malicious code in a website’s comment section. What is “this” attack referred to here?

DWQA QuestionsCategory: Cyber SecurityThis attack can be deployed by infusing a malicious code in a website’s comment section. What is “this” attack referred to here?
Editor Staff asked 2 months ago

This attack can be deployed by infusing a malicious code in a website’s comment section. What is “this” attack referred to here?
a) SQL injection
b) HTML Injection
c) Cross Site Scripting (XSS)
d) Cross Site Request Forgery (XSRF)

1 Answers
Editor Staff answered 2 months ago

Answer: c
Explanation: XSS attack can be infused by putting the malicious code (which gets automatically run) in any comment section or feedback section of any webpage (usually a blogging page). This can hamper the reputation of a site and the attacker may place any private data or personal credentials.