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.
-
A locale parameter was written into the page inside a script context without encoding, so a closing script tag could break out.
Seen in 1 report
-
A location hash value was passed to a third-party script without sanitisation and used to build evaluated JavaScript.
Seen in 1 report
-
A lodash template did not escape the value parameter for the data-define attribute context, allowing template injection.
-
A logic error in origin checks let script cross a site boundary.
-
A logic error in WebKit's state management when loading webarchive content allowed scripts to escape their intended origin.
-
A login form without CSRF protection combined with PHP using the first duplicate cookie in the header allowed a session cookie with a restricted path to be set.
Seen in 1 report
-
A login form without CSRF protection, PHP using only the first cookie when duplicate session cookies are sent, and browsers sending more specific paths first allowed an attacker's session to be forced on a victim.
Seen in 1 report
-
A mail client extension rendered user-supplied form data without sanitising it.
Seen in 1 report
-
A malformed URL decoder accepted out-of-range hex digits and produced unintended characters.
Seen in 1 report
-
A manifest version value was copied into a field without validation and rendered unescaped in a template.
Seen in 1 report
-
A map place name was rendered in the profile page without sanitising or encoding.
-
A markdown component was given input that was assumed to be already-safe HTML.
Seen in 1 report
-
A markdown filter allows HTML injection including a base tag.
Seen in 1 report
-
A media identifier parameter was inserted into the page without output encoding and persisted without numeric validation.
-
A missing authorisation check when creating a tag allowed a user to add tags to an account they did not control.
-
A new byline placeholder was not given the HTML escaping applied to the previous credits placeholder.
Seen in 1 report
-
A non-cryptographic PRNG generated a security-sensitive callback identifier whose outputs leaked through iframe names, and an icon field was unsanitised.
-
A parameter was inserted into a JavaScript string without escaping.
Seen in 1 report
-
A parameter used as a link target was not restricted to safe URL schemes.
Seen in 1 report
-
A parameter was converted to an integer for lookup but also inserted into a header without stripping CRLF and null bytes.
Seen in 1 report
-
A parameter was embedded in a JavaScript response without escaping and the edit method did not check channel ownership.
Seen in 1 report
-
A parameter was validated with a contains check instead of a starts-with check, so a crafted URL passed validation.
Seen in 1 report
-
A parameter was written into a textarea without encoding, allowing the textarea to be closed.
Seen in 1 report
-
A parser difference between implementations causes the sanitiser to mishandle nested tags.
Seen in 1 report
-
A path segment was concatenated into a translation key and a class attribute without escaping.
-
A period preset from the request was stored in the session and written into a JavaScript context without context-appropriate encoding.
Seen in 1 report
-
A permissions/ownership mistake in how WebKit handled the location variable caused relative JavaScript navigations in a modal dialog to be resolved against the parent window's base URL rather than the dialog's URL.
Seen in 1 report
-
A perspective parameter was reflected into the HTML without output encoding.
Seen in 1 report
-
A position-based string check allowed HTML tags at the beginning to bypass sanitisation.
-
A preview page inserted a URL parameter into the DOM without encoding, and a listener trusted messages from that origin but wrote the value into innerHTML.
Seen in 1 report
-
A privileged internal page reflected a javascript: URL supplied in the query string.
Seen in 1 report
-
A proxy endpoint fetched and executed attacker-supplied JavaScript in the victim's origin.
Seen in 1 report
-
$3,134
-
-
A query parameter was placed straight into a link href without checking its scheme.
Seen in 1 report
-
A query parameter was reflected directly into a JavaScript eval call without encoding or validation.
Seen in 1 report
-
A query parameter was reflected directly into a JavaScript string context without proper output encoding, relying on a WAF as a compensating control.
Seen in 1 report
-
A query parameter was reflected into an anchor href without encoding.
Seen in 1 report
-
A query parameter was written unvalidated into a script tag without restricting it to trusted domains.
Seen in 1 report
-
A race between loading a local file in a named window and navigating that window to a javascript: URL let the script run in the wrong origin and the address bar was not updated in time.
Seen in 1 report
-
A reader mode URL parameter accepted a javascript: scheme.
Seen in 1 report
-
A recursive processing function used the URL constructor in a way that let a javascript: scheme survive validation rounds.
Seen in 1 report
-
A redirect cookie value was written directly into an inline script string without escaping.
Seen in 1 report
-
A redirect handler did not check that the target was a safe http(s) URL.
Seen in 1 report
-
A redirect parameter was not restricted to safe URLs.
Seen in 1 report
-
A redirect_uri was stored without checking it is an HTTP(S) URL.
Seen in 1 report
-
A regular expression replacement in the reference filter could be tricked into expanding references inside HTML attributes.
Seen in 1 report
-
A regular expression that expands self-closing tags altered sanitised HTML and reintroduced executable code.
Seen in 1 report
-
A remote server could disable HTML escaping by setting a stripping property in the JSON response.
Seen in 1 report
-
A request parameter was reflected into HTML without encoding.
-
A request parameter was inserted into the HTML email without encoding.
Seen in 1 report
-
A request parameter was placed into a link or redirect without checking that it used a safe scheme.
Seen in 1 report