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 href value was not encoded, and CSRF protection was implemented by checking only the Referer header rather than a per-request token.
Seen in 1 report
-
The HTML export code did not escape the text of inline buttons before inserting it into the page.
-
The HTML filter removed the value of boolean attributes but left the equals sign, so browsers parsed the remaining text as new attributes.
Seen in 1 report
-
The HTML parser handled nested comment-like sequences incorrectly, closing a comment early and treating later markup as active.
Seen in 1 report
-
The HTML parser mishandles a template element inside select when using innerHTML, letting later content parse as if outside the select.
Seen in 1 report
-
The HTML preview iframe lacked a sandbox attribute, a restrictive Content-Security-Policy and sanitisation of event-handler attributes.
Seen in 1 report
-
The HTML sanitisation function did not properly filter dangerous attributes or tags.
Seen in 1 report
-
The HTML sanitizer failed to properly decode and filter CSS url() values containing escaped characters.
Seen in 1 report
-
$5,000 Critical
-
-
The htmlPrefilter regular expression that expands self-closing tags altered already-sanitised HTML into new tags and attributes.
Seen in 1 report
-
The icon property was inserted into HTML without sanitisation while the label property was sanitised.
Seen in 1 report
-
$3,600
-
-
The icon-uri endpoint fetched an attacker-chosen URL and returned the response without validating content type or sanitising it.
Seen in 1 report
-
The id parameter was not properly validated.
Seen in 1 report
-
The id parameter was reflected into the page without output encoding or input validation.
Seen in 1 report
-
The IDOR was caused by missing authorisation checks on the appId parameter in the POST endpoint, with the version parameter required to match.
Seen in 1 report
-
The IE XSS filter mishandled HZ-GB-2312 escape sequences when no charset was declared.
Seen in 1 report
-
The iframe did not validate the origin of postMessage events.
Seen in 1 report
-
The iframe's allowed message origin was read from an attacker-controllable query parameter, and the received blob was rendered without validating its content type.
Seen in 1 report
-
The image link filter does not sanitise the alt attribute.
Seen in 1 report
-
The image optimisation endpoint served uploaded SVG files with a content type that let the browser execute embedded scripts.
Seen in 1 report
-
The image processing library output the Exif comment tag into the profile page without sanitising or stripping metadata.
Seen in 1 report
-
The image processing library read the EXIF Comment tag and output it into the page without sanitising it or stripping the metadata.
Seen in 1 report
-
The image-fetching endpoint did not validate or restrict the content type of the fetched resource.
Seen in 1 report
-
The image_url value was inserted into an img tag without proper sanitisation, so an event handler could be injected.
Seen in 1 report
-
The import feature trusted repository links from a user-supplied server without sanitising them.
Seen in 1 report
-
The incognito window opened by the sign-out options did not inherit the sandbox attribute from the originating iframe.
Seen in 1 report
-
The input filter only checked for complete opening and closing brackets, so incomplete tags slipped through.
Seen in 1 report
-
The input filter only matched plain-text script patterns and did not account for URL-encoded input being decoded and reflected.
Seen in 1 report
-
The input filter or WAF only blocked a specific simple payload pattern and did not sanitise the attribute context.
Seen in 1 report
-
The input filter used a greedy regular expression removing text between angle brackets instead of parsing and encoding.
Seen in 1 report
-
The input sanitiser was applied inside the template-rendering path, so any code path that skipped a valid template also skipped sanitisation.
Seen in 1 report
-
The installation_id parameter was inserted into a JavaScript context without encoding or validation.
Seen in 1 report
-
The installation_id parameter was reflected into the page without sanitising or encoding.
Seen in 1 report
-
$3,500 Medium
-
-
The integration model lacked a validator requiring http or https in URL fields.
Seen in 1 report
-
The invitation email template inserted the user-supplied first name into an HTML link without validating or escaping it, so a URL-shaped name became a live hyperlink.
Seen in 1 report
-
The invitation form accepted arbitrary text in the First Name field and inserted it into the email template without validation, sanitisation or encoding.
Seen in 1 report
-
The invitee name was inserted into the HTML body of the confirmation email without sanitisation, even though the web interface blocked HTML in the same field.
Seen in 1 report
-
The iOS app rendered HTML email bodies in a web view without stripping or sanitising script elements.
Seen in 1 report
-
The IP address field was not sanitised, and stored data was served with a text/html content type.
Seen in 1 report
-
$1,337 High
-
-
The IP address in the XML asset was inserted into a JavaScript function without sanitisation, and the scheduled task command filter split input on spaces.
Seen in 1 report
-
The item identifier parameter was reflected into the HTML response without output encoding.
Seen in 1 report
-
The item title was sanitised on the main page but not in the Buy Now frame.
Seen in 1 report
-
The iteration reference regex allowed any character except double quotes in multi-word names, enabling HTML injection, and the CSP lacked a base-uri directive.
Seen in 1 report
-
The jar protocol parser mishandled null bytes in entry names, causing string truncation and wrong MIME type detection.
-
The JavaScript error page assigned the untrusted title parameter to innerHTML without escaping even though the native side had been fixed.
Seen in 1 report
-
The JSON gem called to_s on keys, converting escaped strings back to plain strings and bypassing HTML escaping.
Seen in 1 report
-
The JSON model binder skipped ASP.NET request validation, and the registration endpoint trusted a client-supplied role identifier.
-
The jump parameter is echoed into a JavaScript selector inside a script block.
Seen in 1 report
-
The KML description field allowed raw HTML and script to execute without sanitisation.
Seen in 1 report
-
$1,337
-
-
The kramed Markdown parser was used with default settings that do not sanitise HTML, and the result was served directly.
Seen in 1 report
-
The label was interpolated directly into a Telegram message template with Markdown parsing enabled without escaping metacharacters.