turbohtml 1.15.12
Lowercase foreignobject embeds event handlerURL with hex-encoded IPv4
SHA-2562921b9eddbfadb0601b4356060c3a1a61cc30de9c49e782fb48ba1b3af65544b
Evidence
1/*
2 * DOMPurify XSS test fixtures, vendored verbatim as a sanitizer oracle.
3 *
4 * Source: https://github.com/cure53/DOMPurify test/fixtures/expect.mjs
5 * Commit: 9f8187b0839f392cd65919d4f53567348714185b
6 * License: (MPL-2.0 OR Apache-2. …
9:51… utputs encoding cross-browser variance.
10 * Only this comment header is turbohtml-added; the exported data array below is the
11 * upstream file byte-for-byte at the pinned commit.
12 */
13export default [
14 {
15 "title": "Don't remove data URIs from SVG images (see #205)",
16 "payload": "<svg><image id=\"v-146\" width=\"500\" height=\"500\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%20100%20100%22%20height%3D%22100%22%20width%3D%22100%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20data-name%3D%22Layer%201%22%20id%3D%22Layer_1%22%3E%0A%20%20%3Ctitle%3ECompute%3C%2Ftitle%3E%0A%20%20%3Cg%3E%0A%20%20%20%20%3Crect%20fill%3D%22%239d5025%22%20ry%3D%229.12%22%20rx%3D%229.12%22%20height%3D%2253%22%20width%3D%2253%22%20y%3D%2224.74%22%20x%3D%2223.5%22%3E%3C%2Frect%3E%0A%20%20%20%20%3Crect%20fill%3D%2 …
142:16… "mXSS Variation I",
143 "payload": "<listing><img onerror=\"alert(1);//\" src=x><t t></listing>",
144 "expected": "<img onerror=\"alert(1);//\" src=x>"
145 }, {
146 "title": "mXSS Variation II",
147 "payload": "<img src=x id/=' onerror=alert(1)//'>",
148 "expected": "<img src=\"x\" id=\"\">"
149 }, {
150 "title": "Textarea and comments enabling img element",
151 "payload": "<textarea>@shafigullin</textarea><!--</textarea><img src=x onerror=alert(1)>-->",
152 "expected": "<textarea>@shafigullin</textarea>"
153 }, {
154 "title": "Img element inside noscript terminat …
861 }, {
862 "title": "Tests against attribute-based mXSS behavior 2/3",
863 "payload": "<svg><foreignobject><p><style><p title=\"</style><iframe onload=alert(1)<!--\"></style>",
864 "expected": "<svg></svg>"
865 }, {
866 "title": "Tests against attribute-based mXSS behavior 3/3",
867 "payl …
138:61… /mirror.test/x", id="encoded-ideographic-dot-no-port"),
139 pytest.param("http://3232235777/x", "http://192.168.1.1/x", id="ipv4-integer-host-no-port"),
140 pytest.param("http://0xc0a80101/x", "http://192.168.1.1/x", id="ipv4-hex-host-no-port"),
141 pytest.param("http://0x/", "http://0.0.0.0/", id="ipv4-empty-hex-host-no-port"),
142 pytest.param("HTTP://user:pw@LOCALHOST:80/a/../x", "http://user:pw@localhost/x", id="userinfo-colon-kept"),
143 pytest.param("HTTP://m\xfcnchen.de:80/a/../x", "http://xn--mnchen-3ya.de/x", id="latin1-host"),
144 pytest.param("HTTP://\xe9:pw@LOCALHOST:80/a/../x", "http://%C3%A9:pw@localhost/x", id="latin1-userinfo-colon"),
145 pytest.param("HTTP://\u0100:pw@LOCALHOST:80/a/../x", "http://%C4%80:pw@localhost/x", id="bmp-userinfo-colon"),
146 pytest.param(
147 "HTTP://\U00010000:pw@LOCALHOST:80/a/../x", "http://%F0%90%80%80:pw@localhost/x", id="astral-userinfo-colon"
148 ),
149 pytest.param(
⋯6 lines
Showing the top 5 files — 6 more files (184 regions) not shown.
No evidence locations were recorded for this file. Raw result