Skip to content

In-depth lesson · XSS

Typical fixes

Every point the XSS reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 351 to 400 of 476
  1. Sanitise pasted HTML in comment fields.

    Seen in 1 report
  2. Sanitise PDF content before inserting it into the DOM during re-render.

    Seen in 1 report
  3. Sanitise product descriptions and escape them on the partner site.

    Seen in 1 report
  4. Sanitise profile fields before rendering.

    Seen in 1 report
  5. Sanitise reflected input and stop API endpoints returning session data to any authenticated request.

    Seen in 1 report
  6. Sanitise rendered Markdown and add a Content Security Policy.

    Seen in 1 report
  7. Sanitise script markup in post titles.

    Seen in 1 report
  8. Sanitise stored feedback and encode it in every staff-facing view.

    Seen in 1 report
  9. Sanitise stored HTML before rendering it in portal content settings.

    Seen in 1 report
  10. Sanitise SVG content and force a safe content type in the PlantUML proxy.

    Seen in 1 report
  11. Sanitise the alt attribute in the image link filter.

    Seen in 1 report
  12. Sanitise the Answer field before rendering and set SameSite protection on session cookies.

    Seen in 1 report
  13. Sanitise the body_html field in the API the same way as the web form.

    Seen in 1 report
  14. Sanitise the content type header before reflecting it in error responses.

    Seen in 1 report
  15. Sanitise the coupon search field and disable external entities in the XML parser.

    Seen in 1 report
  16. Sanitise the dst parameter and mark the authentication cookie Secure.

    Seen in 1 report
  17. Sanitise the email body before sending.

    Seen in 1 report
  18. Sanitise the file parameter and do not let another parameter set the content type to text/html.

    Seen in 1 report
  19. Sanitise the file title and serve JSON with a JSON content type.

    Seen in 1 report
  20. Sanitise the ID before displaying it in an error dialog.

    Seen in 1 report
  21. Sanitise the invalid webcall ID before reflecting it in error pages.

    Seen in 1 report
  22. Sanitise the IP address field and serve stored data with a safe content type.

    Seen in 1 report
  23. Sanitise the name field before including it in confirmation emails.

    Seen in 1 report
  24. Sanitise the page title setting like other fields.

    Seen in 1 report
  25. Sanitise the URL before assigning it to the root scope in AngularJS apps.

    Seen in 1 report
  26. Sanitise the user name before placing it in an image alt attribute.

    Seen in 1 report
  27. Sanitise the user name before rendering it in the navigation bar.

    Seen in 1 report
  28. Sanitise the vlan_id parameter before inserting it into HTML.

    Seen in 1 report
  29. Sanitise torrent filenames before writing them into the local download page.

    Seen in 1 report
  30. Sanitise uploaded files, serve them with a safe type and check ownership on file identifiers.

    Seen in 1 report
  31. Sanitise URL parameters and location.href values before writing them into the page.

    Seen in 1 report
  32. Sanitise user input before evaluating it as a client-side template expression.

    Seen in 1 report
  33. Sanitise user-supplied text before rendering it as HTML in the autolinker library.

    Seen in 1 report
  34. Sanitise usernames, protect state-changing requests against CSRF and update XML parsers.

    Seen in 1 report
  35. Sanitise video titles on storage and escape them when rendering the video list.

    Seen in 1 report
  36. Sanitise wiki page titles before using them as link text.

    Seen in 1 report
  37. Send a Content-Type header so responses are not rendered as HTML.

    Seen in 1 report
  38. Send an X-Content-Type-Options: nosniff header on generated script responses.

    Seen in 1 report
  39. Send an X-Frame-Options header to prevent clickjacking of pages that reflect input.

    Seen in 1 report
  40. Send the X-Content-Type-Options: nosniff header.

    Seen in 1 report
  41. Send the X-XSS-Protection header on all responses.

    Seen in 1 report
  42. Send X-XSS-Protection and set HttpOnly and Secure on cookies.

    Seen in 1 report
  43. Serve SVG with a safe content type or block script inside it.

    Seen in 1 report
  44. Serve uploaded avatars with a content security policy and a content disposition header, or disallow SVG uploads.

    Seen in 1 report
  45. Serve uploaded images with a non-script content type and enforce a strict content security policy.

    Seen in 1 report
  46. Serve uploaded SVG files with a policy that prevents embedded scripts from running.

    Seen in 1 report
  47. Serve uploaded SVG with a CSP and an attachment disposition.

    Seen in 1 report
  48. Serve user-uploaded files from a separate origin.

    Seen in 1 report
  49. Set a content type response header on uploaded files so browsers do not render them as active content.

    Seen in 1 report
  50. Set the HttpOnly attribute on cookies that client-side script does not need.

    Seen in 1 report