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.
-
BB code tag input was inserted into a CSS style attribute without sanitisation.
Seen in 1 report
-
Billing address was passed to invoice generation without sanitising, so HTML rendered in the PDF.
Seen in 1 report
-
Billing fields were saved and later rendered without HTML encoding.
Seen in 1 report
-
Blacklisting literal strings in raw input was used instead of encoding output or normalising input.
Seen in 1 report
-
Blade's raw output syntax was used instead of the escaped syntax, and the user update endpoint lacked an authorisation check.
Seen in 1 report
-
Blob URLs do not inherit the Content Security Policy of the originating page.
Seen in 1 report
-
Blog post title was inserted into RSS XML without HTML encoding.
Seen in 1 report
-
Bookmark name was rendered without output encoding and the creation endpoint lacked CSRF tokens, Origin/Referer checks and SameSite cookies.
Seen in 1 report
-
Bootstrap's tooltip code inserts the title attribute value as raw HTML into the DOM instead of escaping it.
Seen in 1 report
-
Browser anti-XSS filters did not model ASP's parameter parsing quirks.
Seen in 1 report
-
The browser did not apply the originating page's CSP to a data URL opened in a new tab.
Seen in 1 report
-
The browser exposes URL credentials through document.URL while hiding them, and Firefox fails to encode single quotes there.
Seen in 1 report
-
The browser process does not validate the URL scheme of image_url from the remote response.
Seen in 1 report
-
Browsers and server frameworks normalise Unicode whitespace and legacy cookie syntax differently.
Seen in 1 report
-
The bundled PDF.js version was outdated and did not sanitise script content inside PDFs.
Seen in 1 report
-
Calendar applications trust standard and proprietary iCalendar properties without sanitisation.
-
Calendar form input was stored and later rendered in an action link without output encoding.
Seen in 1 report
-
A callback was passed to a redirect without validating the scheme, so javascript: URLs are treated as navigation.
Seen in 1 report
-
A callback sends its URL including token or code with a wildcard postMessage target and no origin validation, and the iframe endpoint lacks framing protection.
Seen in 1 report
-
A case-sensitive scheme prefix check returned early and skipped setting the potentially-dangling-markup flag.
Seen in 1 report
-
Cell content was inserted as HTML without sanitising when htmlContent is enabled.
Seen in 1 report
-
A chat bot rendered user input as HTML and the page lacked clickjacking protection.
-
Chat message content was inserted into notification emails without sanitising or encoding.
Seen in 1 report
-
Medium
-
-
Chat messages and email templates inserted user input into HTML without sanitising or context-aware encoding.
Seen in 1 report
-
Chat messages were stored without sanitising HTML and rendered without escaping when loading history.
Seen in 1 report
-
Chatbot output was rendered as HTML without encoding or sanitisation.
Seen in 1 report
-
Checking for a global config object without initialising it let injected elements define it.
-
Cleanup only ran on tags passed in the options argument, not on the class-level allowed tags list.
Seen in 1 report
-
Client-side code appended unmatched search terms to the page with innerHTML, so input was parsed as HTML rather than text.
-
Client-side code assigned the unvalidated URL fragment directly to the browser location.
Seen in 1 report
-
Client-side code took the URL fragment, made a cross-origin AJAX request to whatever address it contained, and inserted the response via innerHTML.
Seen in 1 report
-
Client-side JavaScript read the URL fragment and wrote it into the DOM without sanitising it.
Seen in 1 report
-
Client-side search script appended the search input to the page without sanitising it.
Seen in 1 report
-
Client-side templating evaluated user input as a template expression without sanitisation.
Seen in 1 report
-
Client-side URL validation used an unanchored regex that only checked whether the hostname appeared somewhere, and accepted protocol-relative URLs.
Seen in 1 report
-
Clipboard data was assigned to innerHTML without sanitisation.
Seen in 1 report
-
Medium
-
-
Cloning a rule nested inside @scope returns the original object instead of a deep copy, breaking copy-on-write on a cached stylesheet.
Seen in 1 report
-
Code assumed a query parameter was always a string and only sanitised it in that case.
Seen in 1 report
-
Code concatenated untrusted URL and referrer values into an anchor string and assigned it to innerHTML.
Seen in 1 report
-
Code modified sanitised HTML afterwards with a regex that could delete characters and change the structure.
Seen in 1 report
-
Colour settings were registered without a sanitize_callback and escaped with an HTML-attribute escaping function before printing inside a style block, which does not neutralise CSS metacharacters.
Seen in 1 report
-
Colour value inserted directly into an inline style attribute.
Seen in 1 report
-
Comment content is rendered without sanitisation and the session cookie lacks the HttpOnly flag.
Seen in 1 report
-
Comment content stored and output into HTML without encoding.
Seen in 1 report
-
Comment content was stored and later inserted into HTML responses without encoding or sanitising.
Seen in 1 report
-
Comment input not sanitised before rendering on the page.
Seen in 1 report
-
Comment input not sanitised, so HTML and script were stored and executed when other users viewed the comment.
Seen in 1 report
-
Comment input was not sanitised or escaped before being rendered in the page.
Seen in 1 report
-
Comment lines read from a cache file were concatenated into HTML and passed to a layout helper that does not HTML-encode its output.
Seen in 1 report
-
Comment rendering did not properly sanitise or encode user-supplied HTML, allowing an anchor tag to be injected.