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.
-
User-supplied input was not properly encoded when building pagination links.
Seen in 1 report
-
User-supplied names were embedded in notification emails without encoding.
Seen in 1 report
-
User-supplied parameters could override tag attributes without sanitisation.
Seen in 1 report
-
User-supplied post titles were not HTML-encoded before being embedded in transactional email templates.
Seen in 1 report
-
The user-supplied protocol version was echoed into an HTML error response without context-appropriate escaping.
-
User-supplied query parameters were merged into the render data object, allowing internal settings to be overwritten.
-
User-supplied styling input was stored without sanitising and later rendered where it was interpreted as markup.
Seen in 1 report
-
A user-supplied SVG was served inline with a script-capable content type and no download-forcing header.
Seen in 1 report
-
User-supplied text was embedded in a JSON script block without escaping the closing script tag.
Seen in 1 report
-
User-supplied thread content was rendered through AngularJS without being treated as untrusted text, so expressions were evaluated.
Seen in 1 report
-
$1,000 Medium
-
-
User-supplied URL values were inserted into a JavaScript template without escaping, letting the value break out of a string literal.
Seen in 1 report
-
User-supplied video parameters were merged into a jQuery-created element without restricting which attributes could be set.
Seen in 1 report
-
User-uploaded HTML files were served from the same origin as the webmail without sanitising or forcing a download.
Seen in 1 report
-
User-uploaded images were served from the same origin combined with unescaped hash-driven templating.
Seen in 1 report
-
$9,401
-
-
User-uploaded PDFs were stored on the main domain and served without a sandbox or separate origin.
Seen in 1 report
-
User-uploaded SVG files were served from a domain without forcing them to be displayed as inert images.
-
User-uploaded SVG files were served inline without neutralising embedded scripts.
Seen in 1 report
-
User-uploaded SVG files were served inline without sanitising or blocking embedded scripts.
Seen in 1 report
-
User-uploaded SVG files were served inline without sanitising or restricting active content.
Seen in 1 report
-
The username was reflected from the URL without encoding angle brackets.
Seen in 1 report
-
Username validation and encryption were only enforced client-side, so the server accepted and reflected any encrypted value.
Seen in 1 report
-
The username was inserted into the reset email as raw HTML and signup did not verify email ownership.
Seen in 1 report
-
Usernames were not sanitised before rendering, state-changing requests were accepted via GET without CSRF protection and an outdated XML parser was used.
Seen in 1 report
-
Users with content management permissions could upload SVG files without sanitising script content, and the files were rendered where scripts execute.
Seen in 1 report
-
An allow-list permitted the style attribute on div tags, enabling CSS-based defacement.
Seen in 1 report
-
jQuery append was used to insert third-party text as HTML instead of text to treat it as plain text.
Seen in 1 report
-
Twig's raw filter was used without escaping on a username field.
-
Validation and storage disagreed about which duplicate parameter to use.
Seen in 1 report
-
Validation checked one intent extra while URL loading used a different extra, so the javascript: scheme check was bypassed.
Seen in 1 report
-
Values were stored without encoding quotes, letting them break out of an HTML attribute.
Seen in 1 report
-
Values were passed to a sanitising HTML directive without prior encoding, so benign-looking HTML and CSS were allowed through.
Seen in 1 report
-
Video metadata was stored and returned unsanitised, and the endpoint served JSON with a text/html content type.
Seen in 1 report
-
VideoJS did not escape metadata passed to JavaScript via ExternalInterface.
Seen in 1 report
-
The visitor name was stored raw and rendered with dangerouslySetInnerHTML.
Seen in 1 report
-
The WAF and page parsing duplicate or malformed query parameters differently, and the page renders input without output encoding.
Seen in 1 report
-
The webview-to-extension channel forwards any command name and arguments without an allowlist or workspace containment.
Seen in 1 report
-
Webviews did not enforce origin isolation and accepted postMessage commands from any origin.
Seen in 1 report
-
$5,000
-
-
The widget editing endpoint lacked an ownership check and allowed modification by UUID.
-
Wiki page titles were used as link text without sanitisation.
Seen in 1 report
-
window.postMessage was used without a target origin so any page could intercept the message.
-
Workflow form fields were not sanitised and the user-creation API endpoints lacked sufficient authorisation checks.
Seen in 1 report
-
A world-specific function was cached on a DOM event shared across worlds, with only a debug-build check.
Seen in 1 report
-
A group parameter was written into the HTML response without context-aware output encoding.
Seen in 1 report
-
XML files were served inline and iOS browsers ignored the Content-Type header when the file declared its own type.
Seen in 1 report
-
XSS filtering was applied only to GET requests, leaving POST reflections unfiltered.
Seen in 1 report