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 Media shortcode value was stored and later rendered into the page without output encoding or sanitisation.
-
The login page echoed a URL parameter into its error message without sanitising it.
-
The manifest CSP validator's whitespace delimiter list omits characters the runtime parser treats as whitespace, so the same directive tokenises differently.
-
The Markdown parser did not validate or escape quotes and attributes in link titles.
-
The Mermaid renderer did not sanitise HTML embedded in diagram syntax, allowing raw HTML and script into the page.
Seen in 2 reports
-
The note sanitiser did not remove form elements, so they were rendered and could be submitted.
-
The notebook rendering path did not neutralise content before placing it into a generated web page.
-
The postMessage handlers did not verify the origin of incoming messages.
-
The preview endpoint did not validate that the base URL used a safe scheme before embedding it in a link.
Seen in 2 reports
-
The project or report name was inserted into the embed code without HTML encoding, so markup in the name was treated as code.
Seen in 2 reports
-
The regular expression extracting multi-word milestone and label references was too permissive and allowed angle brackets, enabling HTML injection.
-
The regular expression rewriting image tags did not handle spaces or mixed quotes, so a crafted src attribute could break out and inject attributes.
Seen in 2 reports
-
The sanitiser relied on a serialize-parse roundtrip that is not guaranteed to preserve the DOM tree.
Seen in 2 reports
-
The script read the user parameter from the URL and assigned it to innerHTML without encoding.
Seen in 2 reports
-
The search parameter was echoed into the HTML response without output encoding or validation.
Seen in 2 reports
-
The search query inserted into HTML without output encoding.
-
The search query was inserted into the page without encoding, letting tags and class attributes render.
-
The server accepted any link value without validating that it used a safe scheme such as http or https.
Seen in 2 reports
-
The server did not properly sanitise a specially crafted request before reflecting it back to the user.
-
The service inserted user input into generated web pages without proper encoding, and rendered Markdown styling without neutralising special elements.
-
The taint flag is lost when a registered custom property is converted to a typed value for animation, and the shorthand parser stream is built without the taint ranges.
Seen in 2 reports
-
The template interpolated the user-controlled name into a Markdown message without escaping metacharacters, allowing the name to close the inline-code span.
-
The translation helper marked strings as HTML-safe when the key ended in _html, even when the default value came from untrusted input.
Seen in 2 reports
-
The translator inserted page text into the DOM without sanitising it or converting it to plain text.
-
The url parameter is inserted into the DOM without escaping.
Seen in 2 reports
-
The url parameter was reflected into the HTML response without output encoding or validation.
Seen in 2 reports
-
The wpautop regex stopped at the first closing angle bracket, so a newline inside an attribute became markup that broke out of the attribute.
-
Upload features accepted SVG files and served them without sanitising active content.
-
Upload pipelines did not strip active PDF content and served files inline.
-
Uploaded file contents were not sanitised or validated before being displayed.
Seen in 2 reports
-
Uploaded files were served with a content type that let the browser treat them as HTML in the site's origin.
-
Uploaded PDFs were served inline from the site origin so embedded JavaScript ran in that origin.
-
User input was embedded into a client-side template without sanitising, so the framework evaluates it as an expression.
-
User input is not sanitised before being included in the HTML body of an email.
Seen in 2 reports
-
User input was inserted into a JavaScript string without escaping quotes.
Seen in 2 reports
-
Medium -
Medium
-
-
User input was reflected into an HTML attribute value without encoding double quotes.
-
User-influenced values were rendered into a browser-executed context without context-aware output encoding or sanitisation.
-
User-supplied input in the email field was not sanitised or encoded before rendering in an internal admin dashboard.
-
User-uploaded content was served from the same origin as the admin interface without sanitisation.
Seen in 2 reports
-
A back_url parameter was reflected into a link without validating the URL scheme.
Seen in 1 report
-
Medium
-
-
A base64-encoded path segment was decoded and inserted into the response without encoding.
Seen in 1 report
-
A bundled app's proxy script did not apply the platform's default Content Security Policy.
-
A bundled example script echoed request parameters into HTML without encoding and was included in the release package.
Seen in 1 report
-
A callback parameter was reflected into a generated script without sanitisation, and the response lacked a content-type sniffing protection header.
Seen in 1 report
-
A canonical URL was stored unvalidated when bookmarking a page whose address began with a known prefix.
Seen in 1 report
-
A capitalisation transform was applied to reflected input instead of encoding or rejecting it.
Seen in 1 report
-
A cID parameter was concatenated into an HTML attribute without encoding or type casting.
Seen in 1 report
-
A client-controlled query parameter could override Content-Disposition from attachment to inline for HTML files, so uploaded content rendered as active content on the application origin.
Seen in 1 report
-
A client-supplied login token was trusted without binding it to the original session.
Seen in 1 report
-
A comment field rendered pasted HTML without sanitising it.
Seen in 1 report