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.
-
The embed feature trusted Open Graph video metadata from any domain without validating the source against a whitelist.
Seen in 1 report
-
The embed HTML feature did not sanitise user HTML, and a JWT was kept in localStorage.
-
The Embedded App SDK did not sanitise the href parameter of button objects.
Seen in 1 report
-
The emoji field of a custom emoji was inserted directly into an img tag without escaping.
-
The emoji picker read a local storage object and inserted its values into the page without sanitisation.
Seen in 1 report
-
The emoticon report URL was not validated, jQuery AJAX evaluated JavaScript responses, and the topic link filter could be bypassed by doubling characters.
Seen in 1 report
-
The employee name was validated only on the frontend.
Seen in 1 report
-
The endpoint accepted cross-origin requests with credentials and reflected user-controlled data in a response served as text/html without sanitisation.
Seen in 1 report
-
The endpoint combined JSON encoding, a filter, a WAF and CSP in ways that could each be bypassed.
-
The endpoint inserted the client_id value directly into the HTML response without output encoding.
Seen in 1 report
-
The endpoint inserted URL parameters into the DOM without sanitisation, and its protocol validation could be bypassed.
Seen in 1 report
-
The endpoint lacked authentication and input sanitisation, and its response differed for valid versus invalid users.
Seen in 1 report
-
The endpoint parameter was passed to a redirect or navigation sink without validating its scheme or destination.
Seen in 1 report
-
The endpoint reflected the error parameter into the HTML response without output encoding or input validation.
Seen in 1 report
-
The endpoint trusted a client-supplied encoded email parameter for both the action and the page output, with no ownership check and no output encoding.
Seen in 1 report
-
The endpoint trusts any user-supplied container ID without validating ownership.
Seen in 1 report
-
The entity_type parameter was embedded into the page without encoding.
Seen in 1 report
-
The error description parameter was inserted into the HTML error message without encoding.
Seen in 1 report
-
The error description parameter was reflected without encoding or validation.
Seen in 1 report
-
The error description parameter was reflected without sanitisation, and one callback URL served both OAuth responses and error messages.
-
The error handler reflected the raw HTTP method value into the response without HTML-encoding it.
Seen in 1 report
-
The error message parameter is echoed directly into the HTML response.
Seen in 1 report
-
The error page echoed user-controlled path content without encoding.
Seen in 1 report
-
The error page handler reflected a message variable without HTML encoding.
Seen in 1 report
-
The error page inserted the request path into an inline script without escaping it for a JavaScript context.
Seen in 1 report
-
The error page reflected query string input into innerHTML.
Seen in 1 report
-
The error page reflected user-supplied input without proper output encoding, and the admin's filter only blocked complete tags, allowing partial tags to be closed by the page itself.
Seen in 1 report
-
The error parameter was reflected into the page without output encoding or sanitisation.
Seen in 1 report
-
The error parameter was reflected into the page without validation or encoding.
Seen in 1 report
-
The error parameter was reflected without handling.
Seen in 1 report
-
The error parameter was reflected without output encoding.
Seen in 1 report
-
The error query parameter was reflected without validation or encoding.
Seen in 1 report
-
The error query parameter was reflected without validation or encoding.
Seen in 1 report
-
The error response from the pattern check endpoint was inserted into the DOM with innerHTML without sanitising.
Seen in 1 report
-
The error response rendered the request body as HTML without encoding.
Seen in 1 report
-
The error-rendering path echoed the submitted first and last name values into the page without HTML-encoding them, and the form lacked CSRF protection.
Seen in 1 report
-
The escape function used a string pattern with replace, which replaces only the first match.
Seen in 1 report
-
The escapeHtml function did not encode double quotes, allowing breakout from the href attribute in the linkify function.
Seen in 1 report
-
The escaping function did not escape backticks or dollar signs, allowing breakout from template literals.
Seen in 1 report
-
The escaping function did not escape properties that are not own properties, such as the read-only name property of a File object.
-
The escaping helper handled quotes but not backticks or the dollar-brace sequence used by template literals.
Seen in 1 report
-
The escaping routine for the JavaScript context only handled JavaScript string characters and did not encode angle brackets.
Seen in 1 report
-
The event type from an SNMP trap was inserted into the eventlog page without encoding.
Seen in 1 report
-
The exception parameter was reflected into an HTML attribute without output encoding.
Seen in 1 report
-
The export function inserted user-controlled message content and usernames into HTML without escaping, and the generated file had no Content-Security-Policy.
Seen in 1 report
-
The export template inserts Mermaid output into the HTML without escaping.
-
The export wrapped user input in a CDATA section without stripping the closing sequence.
Seen in 1 report
-
The expression sandbox relied on a character-by-character parser that could be subverted by overriding String.prototype.charAt.
Seen in 1 report
-
The extension concatenated an attacker-controlled video URL into an HTML string appended to the popup DOM, and the popup was web-accessible so any site could frame it.
-
The extension CSP validator's whitespace list excluded the form-feed character while the network service parser included it.
Seen in 1 report