To mitigate DOM-based XSS attacks, one should avoid using _________ directly with user input.
- document.write()
- getElementById()
- innerHTML
- setAttribute()
Mitigating DOM-based XSS involves avoiding direct use of the innerHTML property with user input, as it can be exploited to execute malicious scripts within the DOM.
Loading...
Related Quiz
- What method is used to complete the asynchronous process and send a response?
- In Java, which keyword is used to manually suggest the garbage collector?
- In JDBC, the __________ exception is thrown when there is a problem with the SQL syntax.
- Describe the lifecycle of a WebSocket in a Java web application.
- How does the Servlet container typically handle concurrent requests to the same servlet?