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 continue parameter and search terms were not validated or sanitised before being reflected or stored.
Seen in 1 report
-
The continue parameter was not validated to be a safe URL, allowing javascript scheme injection.
Seen in 1 report
-
The continue_to value went into a redirect sink without checking the URL scheme.
Seen in 1 report
-
The conversation name was not encoded before being displayed to invited users.
-
The converter emitted code-span and code-fence delimiters without checking that they actually delimited the content.
-
The converter relied on the code span delimiter to neutralise unescaped content and did not account for a downstream parser rewriting spans in table cells.
-
The cookie parser supported legacy quoted syntax, so an attacker cookie could swallow an HttpOnly cookie.
Seen in 1 report
-
The cookie value was written into an inline script context without output encoding, allowing a script-tag breakout.
Seen in 1 report
-
The counter that blocks dynamic markup insertion is incremented only in the element creation path, not in the custom element reaction path.
-
The coupon code parameter was written into the checkout page without encoding or validation.
Seen in 1 report
-
The coupon search field was not sanitised and the XML parser did not disable external entities.
Seen in 1 report
-
The cpID parameter was reflected into the HTML response without output encoding.
Seen in 1 report
-
The crawler uses an old browser engine without an XSS filter and executes unsanitised JavaScript from URLs.
Seen in 1 report
-
The create_post function stored raw content without sanitisation and the Home Feed rendered it without escaping.
Seen in 1 report
-
The cron string parameter was reflected without sanitisation, and secrets were stored insecurely on the host.
Seen in 1 report
-
The CSP allowed script sources from Google domains and certain JSONP endpoints could return attacker-controlled JavaScript.
Seen in 1 report
-
The CSP allowlist included a public host that serves attacker-chosen scripts.
-
The CSP evaluation code skips the strict-dynamic check for XSLT loads, letting them fall through to host-based source matching.
-
The CSP frame-src directive trusted an entire wildcard domain that any user can register a subdomain on, so the allowlist could be satisfied by attacker-controlled content.
Seen in 1 report
-
The CSP helper did not escape or validate values placed into the header, so input could inject new directives.
Seen in 1 report
-
The CSP image source directive used a wildcard, allowing exfiltration to any domain when combined with HTML injection.
Seen in 1 report
-
The CSP lacked a directive restricting image sources.
Seen in 1 report
-
The CSP omitted the base-uri directive, so an injected base element could change how relative URLs resolved.
Seen in 1 report
-
The CSP omitted the form-action directive, and default-src does not cover form actions.
Seen in 1 report
-
The CSP script-src included a third-party domain that allowed user uploads of SWF files.
Seen in 1 report
-
The CSP trusted a third-party script bundling AngularJS, and Angular expressions could read the nonce and reuse it.
Seen in 1 report
-
The CSP used a static nonce that did not change per request, allowing reuse for injected scripts.
Seen in 1 report
-
The CSP was configured with 'unsafe-inline' in the script-src directive.
Seen in 1 report
-
The CSRF token was not tied to the user's session, allowing login CSRF.
Seen in 1 report
-
The CSS sanitiser failed to escape a quote in the namespace URL when serialising the @namespace rule.
Seen in 1 report
-
The CSS value for background colour was not validated, allowing an external URL.
Seen in 1 report
-
The currency format string was stored and inserted into the page without HTML encoding.
Seen in 1 report
-
$500 Low
-
-
The currency formatting value was rendered into sales channel admin pages without output encoding.
Seen in 1 report
-
The current folder value was inserted into the page without HTML encoding.
Seen in 1 report
-
The custom emoji image source URL was not escaped when rendering.
Seen in 1 report
-
$3,000 High
-
-
The custom invite message was inserted into the outgoing email body without HTML encoding or sanitisation.
Seen in 1 report
-
The custom open-url scheme allowed javascript: URLs and the address bar displayed only the part after the scheme separator.
Seen in 1 report
-
The custom template engine evaluated user input as template expressions and its custom delimiters evaded WAF signatures.
-
The custom theme script inserted URL parameters into the DOM using innerHTML without sanitisation.
Seen in 1 report
-
The custom URL scheme handler did not validate or isolate the URL it was asked to open.
Seen in 1 report
-
The custom WriteToAsync method ignored the encoder parameter and wrote raw strings, violating the template engine's HTML-encoding contract.
-
The custom_field_7[] parameter was not sanitised or encoded before being reflected into the HTML response.
-
The CustomCSSText() methods for counter values appended the raw decoded identifier instead of using the safe serialisation that escapes structural characters.
Seen in 1 report
-
The dashboard parameter reflected input into HTML without sanitisation, and the email-change API trusted same-origin requests without an anti-CSRF token check.
Seen in 1 report
-
The dashboard referenced a cloud storage bucket that was never registered.
-
The dashboard rendered submitted form data without output encoding, and the login response returned credentials in cleartext.
-
The data widget did not sanitise the connection URL.
Seen in 1 report
-
A Datadog site setting was interpolated into an HTML help string without sanitisation.
Seen in 1 report
-
The date parameter was echoed into an HTML error response without context-appropriate output encoding.
Seen in 1 report
-
The Datepicker's altField option was passed to a jQuery HTML-insertion sink without sanitisation.
Seen in 1 report