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 manufacturer parameter was reflected into the HTML response without sanitisation or encoding.
Seen in 1 report
-
The map attribution control rendered user-provided attribution as HTML without sanitisation.
Seen in 1 report
-
The map title was inserted into the share control's HTML without encoding.
Seen in 1 report
-
The mapname parameter was reflected into a form action attribute without encoding.
Seen in 1 report
-
The Markdown and HTML rendering pipeline for site configuration fields did not sanitise or escape user markup before rendering.
Seen in 1 report
-
The Markdown parser allowed raw HTML and its output was inserted with Vue's v-html directive without sanitisation.
-
The markdown parser inserted the image URL into an attribute without escaping quote characters.
Seen in 1 report
-
The markdown parser left a dangling single quote in generated HTML and the result was injected with dangerouslySetInnerHTML.
Seen in 1 report
-
The markdown parser mishandled underscores and an at-sign, generating malformed HTML with an unclosed tag.
Seen in 1 report
-
The Markdown preview rendered unsanitised HTML in an Electron context with Node.js integration enabled.
Seen in 1 report
-
The markdown renderer allowed javascript: and data: URI schemes in links.
Seen in 1 report
-
The Markdown renderer allowed javascript: URLs in links.
Seen in 1 report
-
The Markdown renderer allowed raw HTML and the web application firewall only matched literal keywords, so Unicode-encoded characters bypassed the filter.
Seen in 1 report
-
The markdown renderer allowed vbscript: URLs in links without filtering the scheme.
Seen in 1 report
-
The markdown renderer did not escape HTML tags placed between two dollar signs and a percent sign.
Seen in 1 report
-
The markdown renderer did not filter the class attribute on HTML elements, letting user-supplied class names reach the page.
Seen in 1 report
-
The Markdown renderer did not restrict which URL schemes were allowed in links, so script-scheme links were rendered as clickable.
Seen in 1 report
-
The Markdown renderer had raw HTML enabled and its output was written directly to the page with no sanitiser.
-
The Markdown renderer used the language identifier as a CSS class without filtering.
Seen in 1 report
-
The Markdown renderer was configured without its built-in sanitiser, and other filters did not treat Markdown as an XSS vector.
Seen in 1 report
-
The Markdown sanitiser did not strip control characters inside link URLs, so a script scheme could be smuggled past the filter and stored.
Seen in 1 report
-
The Markdown-to-HTML converter did not sanitise user-supplied attributes, allowing event handlers to be injected.
Seen in 1 report
-
The marked library was used with default settings that do not sanitise HTML embedded in Markdown.
Seen in 1 report
-
The mention displayName field was not sanitised, allowing AngularJS expression injection.
-
The menu item name was inserted into the page as raw HTML.
-
The merge request title was inserted into the Slack message without escaping Slack formatting control characters.
-
The mermaid renderer did not sanitise click handler URLs.
Seen in 1 report
-
The message event listener did not check the origin and passed message data straight into an iframe src.
Seen in 1 report
-
The message event listener did not verify the sender's origin and passed an attacker-controlled followUpUrl straight into location.href without validating the scheme.
Seen in 1 report
-
The message event listener failed to properly validate the sender's origin before inserting message data into the DOM.
Seen in 1 report
-
The message handler trusted any incoming postMessage and rendered supplied code as React without validating the sender's origin.
Seen in 1 report
-
The message handler trusted any message from the window that opened the page.
Seen in 1 report
-
The message handler trusted any origin and did not validate a URL before assigning it to document.location.
Seen in 1 report
-
The message handler validated the sender's origin with a substring search instead of an exact match against the full expected origin.
-
The message listener did not verify the sender origin and inserted received data into iframe attributes without sanitisation.
Seen in 1 report
-
The message listener trusted a null origin and passed attacker-controlled names to a dispatcher that invoked any method, including a script loader.
Seen in 1 report
-
The message origin was validated but the payload was inserted into the DOM without sanitisation.
Seen in 1 report
-
The message parameter was written into the page without output encoding, and the WAF only matched known script patterns rather than dangerous SVG event handlers.
Seen in 1 report
-
The messaging backend does not validate or sanitise the content of messages, trusting client-supplied fields such as link URLs, file names and contact details.
Seen in 1 report
-
The mobile site rendered photo metadata without HTML-encoding, and its client-side routing accepted a same-domain API path returning unescaped data.
Seen in 1 report
-
The module description was not sanitised or encoded before storing and rendering.
Seen in 1 report
-
The msg parameter was decoded and passed to a helper that wrapped it in HTML, then written with jQuery's html().
Seen in 1 report
-
Medium
-
-
The msg parameter was reflected into the HTML response without output encoding.
Seen in 1 report
-
The multiline text class did not properly validate or encode user-supplied data before rendering it.
Seen in 1 report
-
The multipart form field name was echoed into cart HTML without encoding and add-to-cart lacked CSRF protection.
Seen in 1 report
-
The Name argument submitted through the dashboard page was rendered back into the page without neutralising HTML or JavaScript.
Seen in 1 report
-
The name field is inserted into an HTML attribute without encoding.
Seen in 1 report
-
Medium
-
-
The name field was not sanitised before being included in a confirmation email.
Seen in 1 report
-
$300 Medium
-
-
The name field was stored and rendered without output encoding and the name-change endpoint accepted cross-site form submissions without a CSRF token.
Seen in 1 report
-
The name sanitiser removed only complete tags so an unclosed tag survived and was rendered as an anchor.
Seen in 1 report