Skip to content

In-depth lesson · XSS

Root causes

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

Back to the lesson 1,851 to 1,900 of 2,345
  1. The search parameter was inserted into an HTML attribute without encoding, so injected event-handler attributes executed.

    Seen in 1 report
  2. The search parameter was placed into an HTML attribute with insufficient encoding, and a JavaScript plugin later inserted attacker-controlled content into the page.

    Seen in 1 report
  3. The search parameter was reflected into an AngularJS template without sanitisation, and the password was encrypted client-side with a static key and IV stored in JavaScript.

    Seen in 1 report
  4. The search parameter was reflected into the page without HTML encoding, allowing arbitrary HTML to render.

    Seen in 1 report
  5. The search parameter was reflected without output encoding and the WAF relied on blocklists that missed alternative tag and encoding forms.

    Seen in 1 report
  6. The search parameter was reflected without output encoding or filtering.

    Seen in 1 report
  7. The search parameter was saved into the session and written into a JavaScript string without escaping.

    Seen in 1 report
  8. The search parameter was validated only in the page's textbox, with no server-side validation or output encoding.

    Seen in 1 report
  9. The search parameter was written into the page without sanitising or encoding.

    Seen in 1 report
  10. The search query was inserted into HTML without quotes or escaping, allowing attribute breakout.

    Seen in 1 report
  11. The search query was inserted into the page without sanitisation or output encoding.

    Seen in 1 report
  12. The search results page inserted the email subject into the DOM without escaping HTML special characters.

    Seen in 1 report
  13. The search results page inserted the third-party result URL into HTML without proper encoding or sanitisation.

    Seen in 1 report
  14. The search suggestion component inserted user input into the page without HTML-encoding it, unlike the main search results.

    Seen in 1 report
  15. The search suggestion component wrote the joined search words derived from the query parameter directly to innerHTML.

    Seen in 1 report
  16. The search term was inserted into an HTML attribute without output encoding, letting quotes close the attribute and start new markup.

    Seen in 1 report
  17. The search term was inserted into an inline script block without escaping.

    Seen in 1 report
  18. The search value was inserted into an HTML attribute and surrounding markup without correct encoding, so a quote broke out of the attribute.

    Seen in 1 report
  19. The search[user_id] parameter was reflected back into the page without sanitisation or encoding.

    Seen in 1 report
  20. The security profile name was reflected into the page source without encoding.

    Seen in 1 report
  21. The serialisation methods for the route matching feature appended decoded strings directly instead of using the standard CSS escaping helpers.

    Seen in 1 report
  22. The serialiser appended the decoded custom-property variable name directly to the output instead of using the standard CSS identifier serialisation routine.

    Seen in 1 report
  23. The serialiser did not check the scripting flag when serialising text inside noscript, so special characters were not escaped.

    Seen in 1 report
  24. The serialiser for @position-try rules appended the decoded rule name directly instead of passing it through the identifier escaping helper.

    Seen in 1 report
  25. The serialiser for the image-set type component concatenates the raw string without the standard escaping helper.

    Seen in 1 report
  26. The serialiser for the random() function's name argument appended the stored identifier directly instead of escaping it with the standard identifier serialiser.

    Seen in 1 report
  27. The serialiser only checked for HTML script elements and not SVG script elements, while an experimental feature removed the sandbox restriction.

    Seen in 1 report
  28. The serialiser emitted the custom element is value without entity encoding, and the sanitiser stripped the DOM attribute but not the internal data.

    Seen in 1 report
  29. The server accepted any origin that started with the trusted domain instead of an exact match.

    Seen in 1 report
  30. The server accepted uploads based on the client-supplied Content-Type header without validating actual content or restricting dangerous types like SVG.

    Seen in 1 report
  31. The server allowed SWF uploads and served them without proper content-type or security restrictions.

    Seen in 1 report
  32. The server built the data-url attribute by concatenating the raw q value without HTML-encoding it, letting a quote close the attribute and inject new markup.

    Seen in 1 report
  33. The server concatenated unsanitised input into a JavaScript identifier inside an inline event handler and only removed quotes.

    Seen in 1 report
  34. The server copied the lang parameter into a Set-Cookie header without validating CRLF characters or HTML.

    Seen in 1 report
  35. The server did not escape quotes and angle brackets when rendering the stored username.

    Seen in 1 report
  36. The server did not normalise or reject path traversal sequences, so uploaded files could be reached and executed as script.

    Seen in 1 report
  37. The server did not properly validate the Content-Type header and accepted values including text/html.

    Seen in 1 report
  38. The server did not set a specific Content-Type for archive files and did not disable content sniffing.

    Seen in 1 report
  39. The server did not validate or restrict the user-supplied profile picture URL, allowing an arbitrary external link to be stored and later embedded in pages.

    Seen in 1 report
  40. The server did not validate the Origin header and the client wrote received messages into the DOM unsanitised.

    Seen in 1 report
  41. The server did not validate the URL scheme before reflecting the parameter into an anchor.

    Seen in 1 report
  42. The server failed to sanitise HTML inside uploaded template files and lacked CSRF protection on the upload action.

    Seen in 1 report
  43. The server failed to strip CR and LF characters from the request path before using it in the Location header.

    Seen in 1 report
  44. The server generated a static nonce instead of a fresh random value per response.

    Seen in 1 report
  45. The server inserted the request path into the HTML response without validating or encoding it.

    Seen in 1 report
  46. The server returned a 200 response containing the javascript scheme redirect URI instead of a 302.

    Seen in 1 report
  47. The server returned attacker-influenced binary map data with a text/html content type.

    Seen in 1 report
  48. The server returned user-controlled content with a non-HTML content type and without the nosniff header.

    Seen in 1 report
  49. The server set the base tag href from the incoming Host header without validation.

    Seen in 1 report
  50. The server set the response content type from the uploaded file's extension and reflected the decoded request path without encoding.

    Seen in 1 report