Start learning 50% faster. Sign in now
A Cross-Site Scripting (XSS) attack involves injecting malicious scripts, typically JavaScript, into web pages that are later viewed by other users. This attack exploits vulnerabilities in web applications that fail to properly validate or sanitize user inputs. When a victim visits the compromised web page, the malicious script executes in their browser, potentially stealing sensitive data, hijacking sessions, or defacing websites. XSS is categorized into three types: reflected, stored, and DOM-based. Stored XSS is particularly dangerous because the malicious script is permanently stored on the server and served to multiple users. For instance, attackers might inject a script into a comment section of a blog, and every user viewing the comments becomes a victim. Proper input validation, output encoding, and Content Security Policy (CSP) implementation are essential defenses against XSS. Why Other Options Are Incorrect :
Under the provisions of the Motor Vehicles Act, when can a driving licence be renewed, and from when will it be effective?
How should a payment be applied when neither party specifies the appropriation?
As per the Motor Vehicles Act, what does the term "golden hour" refer to?
Where there is an unconditional contract for the sale of specific goods in a deliverable state, the property in the goods passes to the buyer ………....
Under the Motor Vehicles Act, where must the owner of a motor vehicle get the vehicle registered?