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 name was placed inside a script tag within single quotes without encoding.
Seen in 1 report
-
The name was placed unescaped into a message sent with Telegram's legacy Markdown parse mode.
-
The newsletter scripts did not sanitise the username derived from the email address.
Seen in 1 report
-
The nickname endpoint lacked input validation and output encoding, and the frontend rendered the nickname as raw HTML.
Seen in 1 report
-
The nickname was inserted into outgoing email HTML without escaping.
Seen in 1 report
-
The nickname was stored without sanitisation and output into search results without HTML encoding.
Seen in 1 report
-
The nickname or display name was inserted into an HTML attribute without proper encoding, allowing an attacker to break out of the attribute and inject event handlers.
Seen in 1 report
-
The node name was reflected without output encoding and rendered as HTML after an event type toggle.
-
The non-RTE textarea branch skipped output escaping and decoded entities before echoing into a textarea element.
-
The nonce was derived from a timestamp with little entropy, making it predictable and brute-forceable.
Seen in 1 report
-
The not-found page echoed user-controlled input from the request into the error message without sanitising or encoding it.
-
The note map rendered note titles as HTML without encoding.
Seen in 1 report
-
The notebook viewer rendered attacker-supplied Markdown as HTML and JavaScript in an Electron webview without a meaningful CSP.
-
The notification pipeline treated the label as trusted presentation copy, storing and interpolating it verbatim into templates including a Markdown-parsed Telegram message.
-
The notification template interpolated an unescaped, attacker-controllable name into a Telegram message sent with Markdown parsing enabled.
-
The notification template rendered user-supplied message content without sanitising form and input tags.
Seen in 1 report
-
The notification templates interpolated the user-controlled name into Telegram Markdown text and URLs without escaping, unlike the HTTP route which rejected such characters.
-
The OAuth authorisation endpoint failed to encode or sanitise user-controlled parameters before reflecting them in the error page.
Seen in 1 report
-
The OAuth callback only compared the state parameter when it was supplied, so omitting it bypassed CSRF protection, and file names were rendered through AngularJS template evaluation.
Seen in 1 report
-
The OAuth error fallback page rendered the error, error_description and error_hint query parameters into HTML without encoding them.
-
The OAuth login endpoint reflected a user-supplied parameter into the HTML response without proper output encoding.
Seen in 1 report
-
The OAuth-provided display name was inserted into the profile page without HTML encoding.
Seen in 1 report
-
The OAuth2 error page inserted the redirect_uri parameter directly into an anchor tag's href without validating or sanitising it.
Seen in 1 report
-
The oEmbed whitelist trusted third-party embed content and rendered it in a privileged context exposing Steam protocol handlers and the SteamClient API without isolation.
Seen in 1 report
-
$750 Medium
-
-
The onmessage listener did not validate the origin of incoming postMessage events before using the message data.
Seen in 1 report
-
The openInNewTab function did not check for unsafe URL schemes, allowing javascript: URLs to execute in the devtools:// origin.
Seen in 1 report
-
The origin allowlist regex had an unescaped dot, so it matched unintended domains.
-
The origin check compared a substring of the iframe URL instead of the exact origin.
Seen in 1 report
-
The origin check relied on user-supplied data and the received blob was passed to createObjectURL without validating its content type.
Seen in 1 report
-
The origin check used a filter that always returns an array, so the null comparison never failed and any origin was accepted.
Seen in 1 report
-
The origin check used a regular expression with an unescaped dot, so it matched unintended domains, and message data was inserted into the DOM unsanitised.
Seen in 1 report
-
The origin check used a string prefix match instead of an exact comparison.
Seen in 1 report
-
The origin check used a substring match and the message data was passed directly to eval.
Seen in 1 report
-
The origin check used a substring match instead of an exact or suffix match, and message data was inserted via innerHTML.
Seen in 1 report
-
The origin check used a substring match without ensuring the origin ended with a slash, so a lookalike domain could satisfy it.
Seen in 1 report
-
The origin gate used the writable Array.prototype.includes method, which page JavaScript can override, and the script was re-injected into the same realm after document.open().
Seen in 1 report
-
The origin of messages was not validated and message data was passed to eval.
Seen in 1 report
-
The origin of postMessage events was not validated before being used to load scripts.
-
The origin of the first postMessage was checked but all subsequent messages were trusted.
Seen in 1 report
-
The origin server address was exposed behind a WAF.
Seen in 1 report
-
The pack parameter was passed to a file function without validation and the smiley image value was output without HTML escaping.
Seen in 1 report
-
The package inserted the title, inline spec and string options into its HTML page without escaping, so a closing script tag could break out.
Seen in 1 report
-
The package upload endpoint did not validate the optional digest parameter, allowing path traversal sequences and invalid characters.
Seen in 1 report
-
The packing slip template inserts the email address into HTML without escaping.
Seen in 1 report
-
The page copied a URL parameter into a link attribute and built HTML from it with jQuery without escaping.
Seen in 1 report
-
The page did not verify the origin of incoming messages, sent sensitive data to any parent window, and allowed any origin to trigger cookie-setting.
Seen in 1 report
-
The page parameter was not encoded or sanitised before reflection.
Seen in 1 report
-
The page passed the URL fragment to an iframe's location.replace without validating or sanitising it.
Seen in 1 report
-
The page passed untrusted URL query data directly into a location redirect without validating the destination scheme.
Seen in 1 report
-
The page read the query string and passed it directly to a navigation function without validation.
Seen in 1 report