@@ -26,45 +26,45 @@ func bad(req *http.Request) {
26
26
27
27
{
28
28
{
29
- var a = template .HTML (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
30
- checkError (tmpl .Execute (os .Stdout , a )) // $ Alert[go/html-template-escaping-passthrough ]
29
+ var a = template .HTML (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
30
+ checkError (tmpl .Execute (os .Stdout , a )) // $ Alert[go/html-template-escaping-bypass-xss ]
31
31
}
32
32
{
33
33
{
34
34
var a template.HTML
35
- a = template .HTML (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
36
- checkError (tmpl .Execute (os .Stdout , a )) // $ Alert[go/html-template-escaping-passthrough ]
35
+ a = template .HTML (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
36
+ checkError (tmpl .Execute (os .Stdout , a )) // $ Alert[go/html-template-escaping-bypass-xss ]
37
37
}
38
38
{
39
39
var a HTMLAlias
40
- a = HTMLAlias (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
41
- checkError (tmpl .Execute (os .Stdout , a )) // $ Alert[go/html-template-escaping-passthrough ]
40
+ a = HTMLAlias (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
41
+ checkError (tmpl .Execute (os .Stdout , a )) // $ Alert[go/html-template-escaping-bypass-xss ]
42
42
}
43
43
}
44
44
}
45
45
{
46
- var c = template .HTMLAttr (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
47
- checkError (tmplTag .Execute (os .Stdout , c )) // $ Alert[go/html-template-escaping-passthrough ]
46
+ var c = template .HTMLAttr (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
47
+ checkError (tmplTag .Execute (os .Stdout , c )) // $ Alert[go/html-template-escaping-bypass-xss ]
48
48
}
49
49
{
50
- var d = template .JS (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
51
- checkError (tmplScript .Execute (os .Stdout , d )) // $ Alert[go/html-template-escaping-passthrough ]
50
+ var d = template .JS (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
51
+ checkError (tmplScript .Execute (os .Stdout , d )) // $ Alert[go/html-template-escaping-bypass-xss ]
52
52
}
53
53
{
54
- var e = template .JSStr (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
55
- checkError (tmplScript .Execute (os .Stdout , e )) // $ Alert[go/html-template-escaping-passthrough ]
54
+ var e = template .JSStr (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
55
+ checkError (tmplScript .Execute (os .Stdout , e )) // $ Alert[go/html-template-escaping-bypass-xss ]
56
56
}
57
57
{
58
- var b = template .CSS (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
59
- checkError (tmpl .Execute (os .Stdout , b )) // $ Alert[go/html-template-escaping-passthrough ]
58
+ var b = template .CSS (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
59
+ checkError (tmpl .Execute (os .Stdout , b )) // $ Alert[go/html-template-escaping-bypass-xss ]
60
60
}
61
61
{
62
- var f = template .Srcset (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
63
- checkError (tmplSrcset .Execute (os .Stdout , f )) // $ Alert[go/html-template-escaping-passthrough ]
62
+ var f = template .Srcset (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
63
+ checkError (tmplSrcset .Execute (os .Stdout , f )) // $ Alert[go/html-template-escaping-bypass-xss ]
64
64
}
65
65
{
66
- var g = template .URL (req .UserAgent ()) // $ Source[go/html-template-escaping-passthrough ]
67
- checkError (tmpl .Execute (os .Stdout , g )) // $ Alert[go/html-template-escaping-passthrough ]
66
+ var g = template .URL (req .UserAgent ()) // $ Source[go/html-template-escaping-bypass-xss ]
67
+ checkError (tmpl .Execute (os .Stdout , g )) // $ Alert[go/html-template-escaping-bypass-xss ]
68
68
}
69
69
}
70
70
0 commit comments