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 search parameter was inserted into an HTML attribute without encoding, so injected event-handler attributes executed.
Seen in 1 report
-
The search parameter was placed into an HTML attribute with insufficient encoding, and a JavaScript plugin later inserted attacker-controlled content into the page.
Seen in 1 report
-
The search parameter was reflected into an AngularJS template without sanitisation, and the password was encrypted client-side with a static key and IV stored in JavaScript.
Seen in 1 report
-
The search parameter was reflected into the page without HTML encoding, allowing arbitrary HTML to render.
Seen in 1 report
-
The search parameter was reflected without output encoding and the WAF relied on blocklists that missed alternative tag and encoding forms.
Seen in 1 report
-
The search parameter was reflected without output encoding or filtering.
Seen in 1 report
-
The search parameter was saved into the session and written into a JavaScript string without escaping.
Seen in 1 report
-
The search parameter was validated only in the page's textbox, with no server-side validation or output encoding.
Seen in 1 report
-
The search parameter was written into the page without sanitising or encoding.
Seen in 1 report
-
The search query was inserted into HTML without quotes or escaping, allowing attribute breakout.
Seen in 1 report
-
The search query was inserted into the page without sanitisation or output encoding.
Seen in 1 report
-
The search results page inserted the email subject into the DOM without escaping HTML special characters.
Seen in 1 report
-
The search results page inserted the third-party result URL into HTML without proper encoding or sanitisation.
Seen in 1 report
-
The search suggestion component inserted user input into the page without HTML-encoding it, unlike the main search results.
Seen in 1 report
-
The search suggestion component wrote the joined search words derived from the query parameter directly to innerHTML.
-
The search term was inserted into an HTML attribute without output encoding, letting quotes close the attribute and start new markup.
Seen in 1 report
-
The search term was inserted into an inline script block without escaping.
Seen in 1 report
-
The search value was inserted into an HTML attribute and surrounding markup without correct encoding, so a quote broke out of the attribute.
Seen in 1 report
-
Medium
-
-
The search[user_id] parameter was reflected back into the page without sanitisation or encoding.
Seen in 1 report
-
The security profile name was reflected into the page source without encoding.
Seen in 1 report
-
The serialisation methods for the route matching feature appended decoded strings directly instead of using the standard CSS escaping helpers.
Seen in 1 report
-
The serialiser appended the decoded custom-property variable name directly to the output instead of using the standard CSS identifier serialisation routine.
Seen in 1 report
-
The serialiser did not check the scripting flag when serialising text inside noscript, so special characters were not escaped.
Seen in 1 report
-
The serialiser for @position-try rules appended the decoded rule name directly instead of passing it through the identifier escaping helper.
Seen in 1 report
-
The serialiser for the image-set type component concatenates the raw string without the standard escaping helper.
Seen in 1 report
-
The serialiser for the random() function's name argument appended the stored identifier directly instead of escaping it with the standard identifier serialiser.
Seen in 1 report
-
The serialiser only checked for HTML script elements and not SVG script elements, while an experimental feature removed the sandbox restriction.
Seen in 1 report
-
The serialiser emitted the custom element is value without entity encoding, and the sanitiser stripped the DOM attribute but not the internal data.
Seen in 1 report
-
The server accepted any origin that started with the trusted domain instead of an exact match.
-
The server accepted uploads based on the client-supplied Content-Type header without validating actual content or restricting dangerous types like SVG.
-
The server allowed SWF uploads and served them without proper content-type or security restrictions.
Seen in 1 report
-
The server built the data-url attribute by concatenating the raw q value without HTML-encoding it, letting a quote close the attribute and inject new markup.
Seen in 1 report
-
The server concatenated unsanitised input into a JavaScript identifier inside an inline event handler and only removed quotes.
Seen in 1 report
-
The server copied the lang parameter into a Set-Cookie header without validating CRLF characters or HTML.
Seen in 1 report
-
The server did not escape quotes and angle brackets when rendering the stored username.
Seen in 1 report
-
The server did not normalise or reject path traversal sequences, so uploaded files could be reached and executed as script.
Seen in 1 report
-
Medium
-
-
The server did not properly validate the Content-Type header and accepted values including text/html.
Seen in 1 report
-
The server did not set a specific Content-Type for archive files and did not disable content sniffing.
Seen in 1 report
-
The server did not validate or restrict the user-supplied profile picture URL, allowing an arbitrary external link to be stored and later embedded in pages.
-
The server did not validate the Origin header and the client wrote received messages into the DOM unsanitised.
Seen in 1 report
-
The server did not validate the URL scheme before reflecting the parameter into an anchor.
Seen in 1 report
-
The server failed to sanitise HTML inside uploaded template files and lacked CSRF protection on the upload action.
Seen in 1 report
-
The server failed to strip CR and LF characters from the request path before using it in the Location header.
Seen in 1 report
-
The server generated a static nonce instead of a fresh random value per response.
Seen in 1 report
-
The server inserted the request path into the HTML response without validating or encoding it.
Seen in 1 report
-
$3,000 Medium
-
-
The server returned a 200 response containing the javascript scheme redirect URI instead of a 302.
Seen in 1 report
-
The server returned attacker-influenced binary map data with a text/html content type.
Seen in 1 report
-
The server returned user-controlled content with a non-HTML content type and without the nosniff header.
Seen in 1 report
-
The server set the base tag href from the incoming Host header without validation.
Seen in 1 report
-
The server set the response content type from the uploaded file's extension and reflected the decoded request path without encoding.
Seen in 1 report