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 301 to 350 of 476
  1. Sandbox or filter style tags as well as script tags in payload previews.

    Seen in 1 report
  2. Sandbox or sanitise remote SVG content instead of proxying it from the forum origin.

    Seen in 1 report
  3. Sanitise AI-generated and user-supplied output before rendering it.

    Seen in 1 report
  4. Sanitise and encode alert rule names.

    Seen in 1 report
  5. Sanitise and encode comment input.

    Seen in 1 report
  6. Sanitise and encode directory names before display.

    Seen in 1 report
  7. Sanitise and encode label text before storing and rendering.

    Seen in 1 report
  8. Sanitise and encode special characters in name fields before rendering them.

    Seen in 1 report
  9. Sanitise and encode special instructions before rendering in the admin dashboard.

    Seen in 1 report
  10. Sanitise and encode syslog data before rendering.

    Seen in 1 report
  11. Sanitise and encode the search input before appending it to the page.

    Seen in 1 report
  12. Sanitise and encode the SNMP location value before rendering it.

    Seen in 1 report
  13. Sanitise and encode the video name parameter before echoing it into an HTML comment.

    Seen in 1 report
  14. Sanitise and escape portfolio module descriptions before storing and rendering.

    Seen in 1 report
  15. Sanitise and escape registration input before rendering it in other pages or panels.

    Seen in 1 report
  16. Sanitise and escape shortcode attributes before rendering.

    Seen in 1 report
  17. Sanitise attachment content rendered in the Action Text edit UI.

    Seen in 1 report
  18. Sanitise attributes in the syntax highlighting filter and escape the emoji element's name attribute.

    Seen in 1 report
  19. Sanitise BB code tag input before inserting it into a style attribute.

    Seen in 1 report
  20. Sanitise campaign and advertiser names and HTML-encode them before rendering into the admin picker.

    Seen in 1 report
  21. Sanitise cell content before inserting it as HTML in the export plugin.

    Seen in 1 report
  22. Sanitise chat bot input before rendering as HTML and add clickjacking protection.

    Seen in 1 report
  23. Sanitise chatbot output and avoid storing authentication tokens in localStorage.

    Seen in 1 report
  24. Sanitise click handler URLs in the diagram renderer.

    Seen in 1 report
  25. Sanitise clipboard content before writing it to innerHTML when handling pastes.

    Seen in 1 report
  26. Sanitise comment text before truncating it so malformed HTML cannot result.

    Seen in 1 report
  27. Sanitise Compass component input, validate uploaded file types and tighten path validation in the Laravel Voyager admin.

    Seen in 1 report
  28. Sanitise CRLF characters before placing input into response headers such as Location.

    Seen in 1 report
  29. Sanitise CSS injected into public profile themes.

    Seen in 1 report
  30. Sanitise echoed XML values and validate the template parameter against traversal.

    Seen in 1 report
  31. Sanitise embedded HTML and keep sensitive tokens out of localStorage.

    Seen in 1 report
  32. Sanitise file and directory names taken from stats files in bundle analyzer reports.

    Seen in 1 report
  33. Sanitise file names extracted from uploaded archives before displaying them.

    Seen in 1 report
  34. Sanitise filenames before rendering them with a raw-HTML directive in global search popups.

    Seen in 1 report
  35. Sanitise first and last name fields before storage and rendering.

    Seen in 1 report
  36. Sanitise HTML attributes in image links on RDoc wiki pages.

    Seen in 1 report
  37. Sanitise HTML decoded from the URL fragment before inserting it into the page.

    Seen in 1 report
  38. Sanitise HTML inside uploaded template files and add CSRF protection to the upload action.

    Seen in 1 report
  39. Sanitise HTML pasted into the text editor.

    Seen in 1 report
  40. Sanitise HTML-encoded characters in the nickname field rather than blocking only complete tags.

    Seen in 1 report
  41. Sanitise location hash values before passing them to third-party scripts.

    Seen in 1 report
  42. Sanitise Markdown links and reject javascript: URLs in profile statements.

    Seen in 1 report
  43. Sanitise member list parameters and add CSRF token verification to admin forms.

    Seen in 1 report
  44. Sanitise message content in postMessage handlers even when the origin is validated.

    Seen in 1 report
  45. Sanitise message HTML before rendering chat messages.

    Seen in 1 report
  46. Sanitise message payloads before inserting them into the DOM even when the origin is trusted, as in payments iframe messaging.

    Seen in 1 report
  47. Sanitise model-generated SVG, including event attributes, scriptable elements and external references, before inserting it into the DOM.

    Seen in 1 report
  48. Sanitise name fields before including them in notification emails.

    Seen in 1 report
  49. Sanitise or encode the requested URL path before reflecting it on error pages.

    Seen in 1 report
  50. Sanitise or restrict script content in uploaded SVG files.

    Seen in 1 report