Files
slp-modular-cms/src/SlpModularCms.Modules.Hero.Tests/Golden/host-injection/hero/hero-hostile.input.json
T

59 lines
1.7 KiB
JSON

{
"display": "slideshow",
"title": "<b>\"Andrea\" & 'Slop'</b>",
"tagline": "<i>x</i>",
"buttons": [
{ "label": "javascript", "target": "javascript:alert(1)" },
{ "label": "Protocolvrij", "target": "//evil.example/x" },
{ "label": "<Goed>", "target": "/a?b=1&c=\"2\"" }
],
"slides": [
{
"id": "skip1",
"alt": "",
"decorative": false,
"image": { "width": 10, "height": 10, "src": "/media/x.webp" }
},
{
"id": "skip2",
"alt": "extern",
"decorative": false,
"image": {
"width": 10,
"height": 10,
"src": "https://evil.example/x.webp"
}
},
{
"id": "skip3",
"alt": "geen afmeting",
"decorative": false,
"image": { "width": 0, "height": 10, "src": "/media/x.webp" }
},
{
"id": "a1",
"alt": "Een \"foto\" <script>",
"decorative": false,
"image": {
"width": 1600,
"height": 1067,
"src": "/media/hero/a\"b/w1600.webp",
"variants": [
{
"ratio": "wide",
"width": 800,
"type": "image/webp",
"url": "/media/hero/a\"b/w800.webp"
},
{
"ratio": "wide",
"width": 400,
"type": "image/webp",
"url": "https://evil.example/w400.webp"
}
]
}
}
]
}