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 51 to 100 of 2,345
  1. URL path data was inserted into the DOM without sanitising or encoding.

    Seen in 3 reports
  2. User input was reflected into an HTML attribute without attribute-context encoding.

    Seen in 3 reports
  3. User messages were rendered as HTML without escaping.

    Seen in 3 reports
  4. User-controlled URL content was reflected into the page without encoding or filtering HTML characters.

    Seen in 3 reports
  5. User-supplied request data was reflected into a page without output encoding.

    Seen in 3 reports
  6. Web requests were not validated or sanitised before being handled.

    Seen in 3 reports
  7. A first name field validated only for presence and was inserted into an email template unencoded.

    Seen in 2 reports
  8. A parameter is inserted into an HTML attribute without encoding quotes.

    Seen in 2 reports
  9. A parameter was reflected into a script block without encoding.

    Seen in 2 reports
  10. A returnUrl parameter and username value were inserted into the DOM without sanitisation.

    Seen in 2 reports
  11. A URL parameter was reflected into the HTML response without output encoding or validation.

    Seen in 2 reports
  12. A user-controlled parameter was assigned directly to the location object without validating it was an https URL.

    Seen in 2 reports
  13. A user-supplied feed URL was trusted and its response passed to eval instead of treated as inert data.

    Seen in 2 reports
  14. Authentication cookies lacked HttpOnly and Secure flags, and error pages disclosed cookies.

    Seen in 2 reports
  15. Backslashes were not escaped in a JavaScript string context.

    Seen in 2 reports
  16. The browser ignored Content-Disposition and Content-Type download directives and rendered attacker content inline on the hosting origin.

    Seen in 2 reports
  17. Client-side generation of message previews lacked server-side validation, and CSP directives were missing and the Electron version was outdated.

    Seen in 2 reports
  18. Components reflected or stored parameter values without validation or output encoding.

    Seen in 2 reports
  19. Content-Security-Policy allowed data: URLs for scripts or was missing entirely.

    Seen in 2 reports
  20. Echoing a search parameter into the page without output encoding or input sanitisation.

    Seen in 2 reports
  21. Editors failed to sanitise pasted HTML content, letting event handler attributes through.

    Seen in 2 reports
  22. Endpoints did not verify that the authenticated user owned the record referenced by an identifier.

    Seen in 2 reports
  23. Endpoints reflected user input into HTML without escaping or output encoding.

    Seen in 2 reports
  24. File names were inserted into error messages and listings without HTML encoding.

    Seen in 2 reports
  25. Filenames were inserted into HTML without encoding.

    Seen in 2 reports
  26. Filter checks characters after one decoding pass while the backend decodes again.

    Seen in 2 reports
  27. Filters stripped tags but not attribute values or event handlers.

    Seen in 2 reports
  28. Inserting user-supplied input into generated web pages without proper encoding or sanitisation.

    Seen in 2 reports
  29. JavaScript components inserted usernames into the DOM without escaping, unlike other parts of the app.

    Seen in 2 reports
  30. User-controlled settings and parameters were not output-encoded or input-filtered in several places, including site settings and an API inspector.

    Seen in 2 reports
  31. OWA did not correctly validate web requests, allowing script or content injection.

    Seen in 2 reports
  32. postMessage used a wildcard target origin instead of a specific domain, and the handler did not verify the sender's origin.

    Seen in 2 reports
  33. The proxy built request URLs from a client-supplied forwarded-proto header and skipped the whitelist when the path did not start with http.

    Seen in 2 reports
  34. Query parameters were inserted into a CSS context without sanitising, and old IE evaluated CSS expressions as JavaScript.

    Seen in 2 reports
  35. Raw filenames were concatenated into listing HTML without HTML-encoding special characters.

    Seen in 2 reports
  36. Report parameters were stored and rendered without HTML encoding.

    Seen in 2 reports
  37. Search input was reflected without output encoding or sanitisation.

    Seen in 2 reports
  38. Search input was reflected into a page where AngularJS was present, allowing client-side template injection.

    Seen in 2 reports
  39. Signature validation was tied to a path segment, so removing it let the stored file be served with an attacker-chosen content type.

    Seen in 2 reports
  40. Chat messages were stored without server-side sanitisation and rendered as raw HTML.

    Seen in 2 reports
  41. Submitted question content was saved and later rendered without output encoding or sanitisation.

    Seen in 2 reports
  42. SVG uploads were accepted and served without sanitising script content.

    Seen in 2 reports
  43. The 404 handler echoed the requested path into the error page without escaping.

    Seen in 2 reports
  44. The application allowed SVG uploads and served them with a content type that caused browsers to execute embedded scripts.

    Seen in 2 reports
  45. The application fails to properly sanitise or encode user input in the comment editing feature, allowing script execution when the comment is edited.

    Seen in 2 reports
  46. The base parameter was echoed into the HTML body without output encoding, and the pages lacked frame-busting headers.

    Seen in 2 reports
  47. The chatbot echoed user input into the page without HTML-encoding or sanitising it.

    Seen in 2 reports
  48. The code parameter was reflected into inline JavaScript without escaping.

    Seen in 2 reports
  49. The Dynamics server did not properly sanitise a specially crafted web request before reflecting or storing it in a response.

    Seen in 2 reports
  50. The Editor Link preference was rendered as a clickable link without validating the URL scheme.

    Seen in 2 reports