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 151 to 200 of 476
  1. Encode or validate the User-Agent before inserting it into email HTML.

    Seen in 1 report
  2. Encode or validate the User-Agent header before reflecting it into an HTML response.

    Seen in 1 report
  3. Encode or validate URL parameters before passing them to document.write.

    Seen in 1 report
  4. Encode query parameters reflected into HTML input attributes.

    Seen in 1 report
  5. Encode query results before rendering them as HTML.

    Seen in 1 report
  6. Encode review fields before rendering them in the admin portal.

    Seen in 1 report
  7. Encode search input before reflecting it.

    Seen in 1 report
  8. Encode sender name and company values before printing them into HTML.

    Seen in 1 report
  9. Encode stored channel names and descriptions when building select boxes.

    Seen in 1 report
  10. Encode stored messages when rendering them.

    Seen in 1 report
  11. Encode the account name before embedding it in the email body.

    Seen in 1 report
  12. Encode the entity_type parameter before embedding it in the page.

    Seen in 1 report
  13. Encode the error message parameter before echoing it.

    Seen in 1 report
  14. Encode the jump parameter before echoing it into a script block.

    Seen in 1 report
  15. Encode the language parameter before output on login pages.

    Seen in 1 report
  16. Encode the m parameter and mark the session cookie SameSite.

    Seen in 1 report
  17. Encode the mapname parameter before placing it in a form action attribute.

    Seen in 1 report
  18. Encode the name field before inserting it into an attribute.

    Seen in 1 report
  19. Encode the name value before inserting it into confirmation email HTML.

    Seen in 1 report
  20. Encode the parameter before inserting it into an HTML attribute and block dangerous attributes rather than only tags.

    Seen in 1 report
  21. Encode the placeholder value instead of concatenating it into an HTML string.

    Seen in 1 report
  22. Encode the query_string parameter before rendering it.

    Seen in 1 report
  23. Encode the search parameter before reflecting it.

    Seen in 1 report
  24. Encode the userPage parameter before displaying it.

    Seen in 1 report
  25. Encode unknown attribute names reflected into HTML error responses.

    Seen in 1 report
  26. Encode uploaded file names before rendering them.

    Seen in 1 report
  27. Encode URL content reflected on 404 pages and escape it when inserted into attributes.

    Seen in 1 report
  28. Encode URL values before inserting them into hidden input fields.

    Seen in 1 report
  29. Encode user input inserted into inline event handlers and broaden WAF rules.

    Seen in 1 report
  30. Encode user text consistently across all languages.

    Seen in 1 report
  31. Encode user-controlled parameters reflected into HTML or JavaScript.

    Seen in 1 report
  32. Encode user-controlled URL input before inserting it into a JavaScript context.

    Seen in 1 report
  33. Encode user-supplied names before embedding them in verification email HTML.

    Seen in 1 report
  34. Enforce a safe content type and encode angle brackets in uploaded files.

    Seen in 1 report
  35. Enforce authentication checks on admin panel URLs instead of relying on hidden paths.

    Seen in 1 report
  36. Enforce origin isolation on webviews and validate the origin of postMessage senders.

    Seen in 1 report
  37. Entity-encode the custom element is value when serialising.

    Seen in 1 report
  38. Escape after normalising characters so normalised less-than signs are not rendered as markup.

    Seen in 1 report
  39. Escape all metadata and output fields when generating HTML.

    Seen in 1 report
  40. Escape and validate image attribute values in the renderer.

    Seen in 1 report
  41. Escape angle brackets when serialising CSS strings in the clipboard sanitiser.

    Seen in 1 report
  42. Escape CSV file names for a JavaScript context.

    Seen in 1 report
  43. Escape directory names before output.

    Seen in 1 report
  44. Escape dots in origin allowlist regular expressions.

    Seen in 1 report
  45. Escape double quotes when interpolating into an HTML attribute and run the sanitiser after building the HTML.

    Seen in 1 report
  46. Escape double quotes when reflecting input into an href.

    Seen in 1 report
  47. Escape double quotes when reflecting the URL path into HTML attributes.

    Seen in 1 report
  48. Escape EXIF metadata values before rendering.

    Seen in 1 report
  49. Escape GET parameters before reflecting them into the page.

    Seen in 1 report
  50. Escape group names and full names before rendering.

    Seen in 1 report