According to OWASP, which three statements are rules to prevent XSS attacks? (Choose three.)
- Use the HTML <a> tag with JavaScript encoding.
- Use HTTPS only mode for accessing web applications.
- Use HTML escape before inserting untrusted data into HTML element content.
- Use the HTML img tag with a combination of hexadecimal HTML character references.
- Use attribute escape before inserting untrusted data into HTML common attributes.
- Use JavaScript escape before inserting untrusted data into JavaScript data values.
Explanation & Hint: According to OWASP, the general rules for preventing XSS attacks include:
|