test(pdf): R3 freeze O4/O5 sanitiser verdicts on the hostile corpus and the product SVGs

This commit is contained in:
bchanot committed 2026-10-14 23:30:56 +02:00
1 parent d1aa35e97c
commit b440a2f3fa
28 files changed
+3044

No files matched your search

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><a id="l"><path d="M0 0h1"/></a><animate attributeName="href" values="javascript:alert(1)"/><set attributeName="onclick" to="alert(1)"/><animateTransform attributeName="transform"/></svg>

After

Width:  |  Height:  |  Size: 270 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><!-- a comment --><?pi data?><g>text <![CDATA[x<y]]><path d="M0 0h1"/></g></svg>

After

Width:  |  Height:  |  Size: 120 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 0" style="position:fixed;width:100vw;height:100vh"/><path d="M0 0" style="fill:red;\66 ill:url(x)"/><path d="M0 0" style="background:image-set(url(x) 1x)"/><path d="M0 0" style="behavior:url(x.htc)"/><path d="M0 0" style="fill:expression(alert(1))"/><path d="M0 0" style="fill:rgb(1,2,3)"/><path d="M0 0" style="fill:#fff;stroke:none;cursor:pointer"/><path d="M0 0" style="content:attr(x)"/></svg>

After

Width:  |  Height:  |  Size: 449 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"/><linearGradient id="b" xlink:href="#a"/><path d="M0 0h1" fill="url(#missing)"/><use href="#nope"/><path d="M0 0h1" stroke="url(#b)"/></svg>

After

Width:  |  Height:  |  Size: 246 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><use href="data:image/svg+xml;base64,PHN2Zz48L3N2Zz4="/><image href="data:image/png;base64,iVBOR" width="1" height="1"/><image xlink:href="http://evil.test/i.png"/></svg>

After

Width:  |  Height:  |  Size: 253 B

@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!DOCTYPE svg [<!ENTITY a "aaaaaaaaaa"><!ENTITY b "&a;&a;&a;&a;&a;&a;&a;&a;&a;&a;">]>
<svg xmlns="http://www.w3.org/2000/svg"><text>&b;</text></svg>

After

Width:  |  Height:  |  Size: 170 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><!-- <!DOCTYPE note --><path d="M0 0h1"/></svg>

After

Width:  |  Height:  |  Size: 87 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><path id="x" d="M0 0h1"/><g id="x"/></svg>

After

Width:  |  Height:  |  Size: 82 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1" fill="&#x75;rl(http://evil.test/x)"/><path d="M0 0h1" fill="&amp;#x75;"/><path d="M0 0h1" fill="#&#x30;00"/></svg>

After

Width:  |  Height:  |  Size: 171 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(1)"><path d="M0 0h1" onclick="alert(2)" ONMOUSEOVER="x"/><g onfocusin="y"/></svg>

After

Width:  |  Height:  |  Size: 135 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1" fill="url(http://evil.test/p)"/><path d="M0 0h1" style="fill:url(https://evil.test/p)"/><path d="url(//e)"/><path d="M0 0" filter="url( #ok)"/><filter id="ok"/></svg>

After

Width:  |  Height:  |  Size: 223 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path id="p" d="M0 0h1"/><use href="http://evil.test/x.svg#a"/><use xlink:href="//evil.test/x.svg#b"/><use href="#p"/></svg>

After

Width:  |  Height:  |  Size: 207 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><foreignObject width="10" height="10"><div xmlns="http://www.w3.org/1999/xhtml">x</div></foreignObject><iframe src="x"/><object data="x"/><embed src="x"/><path d="M0 0h1"/></svg>

After

Width:  |  Height:  |  Size: 218 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1"><g></svg>

After

Width:  |  Height:  |  Size: 66 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:s="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"><s:path d="M0 0h1"/><path xmlns="http://evil.test/ns" d="M0 0h1"/><path d="M0 0h1" inkscape:label="x" xml:space="preserve" xml:lang="fr"/></svg>

After

Width:  |  Height:  |  Size: 282 B

+1
View File
@@ -0,0 +1 @@
<html xmlns="http://www.w3.org/1999/xhtml"><body/></html>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><a href="javascript:alert(1)"><path d="M0 0h1"/></a><use xlink:href="javascript:alert(2)"/><path id="p" d="M0 0" fill=" javascript:x"/></svg>

After

Width:  |  Height:  |  Size: 224 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><script>alert(1)</script><script xlink:href="x.js"/><path d="M0 0h1"/></svg>

After

Width:  |  Height:  |  Size: 159 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><filter id="f"><feGaussianBlur stdDeviation="500 3"/><feGaussianBlur stdDeviation="NaN"/><feGaussianBlur stdDeviation="2.5"/></filter></svg>

After

Width:  |  Height:  |  Size: 180 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><style>@import url(http://evil.test/x.css); path{fill:red}</style><path d="M0 0h1"/></svg>

After

Width:  |  Height:  |  Size: 130 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1" xlink:href="#p"/></svg>

After

Width:  |  Height:  |  Size: 80 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="a"><use xlink:href="#b"/></g><g id="b"><use xlink:href="#a"/></g></svg>

After

Width:  |  Height:  |  Size: 161 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="a"><use xlink:href="#a"/></g></svg>

After

Width:  |  Height:  |  Size: 125 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 Infinity NaN"><path d="M0 0h1"/></svg>

After

Width:  |  Height:  |  Size: 91 B

@@ -0,0 +1 @@
<svg xmlns="http://evil.test/ns"><path d="M0 0h1"/></svg>

After

Width:  |  Height:  |  Size: 57 B

File diff suppressed because it is too large. Load diff