In-depth lesson · XSS
Bypasses and variations
Every point the XSS reports back under this heading, best-backed first, each with the reports it is seen in.
-
The origin boundary was not enforced for javascript: URIs opened from a cross-origin iframe.
Seen in 1 report
-
The original CSP did not include script-src-elem or script-src-attr, which take precedence over script-src.
Seen in 1 report
-
The payload did not run in Chrome or Firefox because of CSP and URL encoding, but it worked in IE and Edge on the HackerOne careers page lever parameter.
Seen in 1 report
-
The payload executes in Internet Explorer while Firefox and Chrome block it via CSP in an unsafe link warning.
Seen in 1 report
-
The payload was base64-encoded inside the email parameter to get past input handling on an email unsubscribe page.
-
The payload was double-encoded to get past filtering on 404 error pages.
Seen in 1 report
-
The payload worked in Firefox and Edge but was blocked by Chrome's XSS auditor in third-party modules.
Seen in 1 report
-
The plain storage path redirected to a sandboxed subdomain, but the raw endpoint served HTML directly through the CDN rewrite proxy.
Seen in 1 report
-
The profile page blocked framing but the full email preview did not, so the profile could be framed inside an email.
Seen in 1 report
-
The proxy only rejected responses whose type was not an image, so a response carrying both an image type and an HTML type slipped through.
Seen in 1 report
-
The redirect filter was bypassed with a protocol-relative URL because it only checked for http or https prefixes.
Seen in 1 report
-
The same injection was blocked on the hosted service by a strict CSP but worked on self-hosted instances without one.
-
The sanitiser allowed dangerous data attributes, and a framework copying the CSP nonce to an injected element defeated the policy in message attachments.
Seen in 1 report
-
The sanitiser did not strip the data-disable-with attribute that Rails-ujs uses to insert HTML on click.
Seen in 1 report
-
The sanitiser's closing-tag pattern did not allow whitespace before the closing bracket, so a space before the bracket slipped past it.
-
The sanitizer was bypassed by smuggling an event handler through the serialized attributes JSON string in Trix.
Seen in 1 report
-
The save endpoint did not verify the CSRF token, so the stored XSS could be triggered cross-site.
Seen in 1 report
-
The scheme check looked only for the literal string and did not strip whitespace or control characters in an editor link setting.
Seen in 1 report
-
The scheme filter used a regular expression that allowed the mailto scheme anywhere in the string rather than only at the start.
Seen in 1 report
-
The server blacklisted only the exact text/html string, did not normalise case, and checked only the first bytes of the file in an image upload.
Seen in 1 report
-
The site's Content Security Policy limited the impact of the redirect to a JavaScript URI in the HackerOne Marketo contact form postMessage.
Seen in 1 report
-
The site's content security policy prevented script execution, so only HTML injection and redirects were possible in account settings.
-
The site's CSP only blocks automatic event execution, so a click is needed to trigger the stored script in a repository file viewer.
Seen in 1 report
-
$2,000 Medium
-
-
The site's filter blocked only some characters and a WAF rule was bypassed with upper-case input.
Seen in 1 report
-
The SVG sanitiser's element and attribute whitelist was bypassed because the presence of an XML entity caused the parser to skip validation in a Shopify SVG navigation icon.
Seen in 1 report
-
$3,000 High
-
-
The upload only validated the declared MIME type without inspecting content, and the pre-signed URL exposed a content type override.
-
The upload sanitiser stripped event handlers and tags outside the SVG element but left an onload handler inside the SVG intact.
Seen in 1 report
-
The vulnerable reflection only existed before the cookie notice was dismissed on custom 404 pages.
Seen in 1 report
-
The WAF blocked common event handlers but allowed mobile-specific touch handlers.
Seen in 1 report
-
The WAF failed to block CSS animation event handlers.
Seen in 1 report
-
The WAF matched blocked keywords as literal strings while the application stripped the inserted tag, so splitting keywords defeated the Akamai WAF.
Seen in 1 report
-
The WAF only inspected direct requests, not requests arriving via the site's short-link redirect.
-
The WAF only inspected file names and URLs, so a payload in the SVG metadata got through.
Seen in 1 report
-
The WAF only inspected query-string requests, so sending the payload as JSON with parameter pollution bypassed it.
Seen in 1 report
-
The WAF only matched the literal javascript scheme rather than its whitespace-obfuscated forms.
Seen in 1 report
-
The WAF strips null bytes before comparison, so a null byte before the closing quote slips past.
Seen in 1 report
-
The WordPress sanitisation function did not strip the javascript protocol from the xlink:href attribute in SVG sanitisation.
Seen in 1 report
-
Trigger a server error on the render link so the response is served as text/html and the stored SVG executes in avatar rendering.
Seen in 1 report
-
Try a javascript: URL in a reflected meta tag value to see whether some browsers execute it.
Seen in 1 report
-
Try different leading characters before a payload to slip past an AWS WAF with the Core Rule Set that returns 403.
Seen in 1 report
-
Try tag and event combinations from a cheat sheet until one is not blocked by a WAF tag blocklist.
Seen in 1 report
-
Turn a reflected XSS into a stored one by redirecting the link-embedding iframe to the malicious URL in forum link embedding.
Seen in 1 report
-
Turn a self-XSS in a chatbot into a reflected XSS by chaining it with a malicious bookmark that invokes the display function.
Seen in 1 report
-
Turn self-XSS into reflected XSS by auto-posting the malicious password from another site in a login password field.
Seen in 1 report
-
Turn a self-XSS in the client email field into stored XSS through automatic client creation from inbound email.
Seen in 1 report
-
Turn self-XSS into an attack on others by planting the payload in a victim's record through an IDOR in supplier records.
Seen in 1 report
-
Two sanitisers disagreed about what counts as an HTML tag, so a tag with whitespace after the opening bracket survived both in login error sanitising.
-
Use Unicode-encoded event handler names to get past a blacklist WAF in attribute reflection.
Seen in 1 report
-
Upload a .mjs file as a CI job artifact and check whether it is served with a JavaScript content type rather than plain text.
Seen in 1 report
-
Upload a file with a JPEG header followed by JavaScript that the application renames to .png without altering content, and check whether it executes.