@@ -26,45 +26,45 @@ func bad(req *http.Request) {
2626
2727 {
2828 {
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 ]
3131 }
3232 {
3333 {
3434 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 ]
3737 }
3838 {
3939 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 ]
4242 }
4343 }
4444 }
4545 {
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 ]
4848 }
4949 {
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 ]
5252 }
5353 {
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 ]
5656 }
5757 {
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 ]
6060 }
6161 {
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 ]
6464 }
6565 {
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 ]
6868 }
6969}
7070
0 commit comments