aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack_test.go
diff options
context:
space:
mode:
authorRoland Shoemaker <bracewell@google.com>2023-04-13 15:40:44 -0700
committerCarlos Amedee <carlos@golang.org>2023-05-02 19:38:18 +0000
commit8673ca81e5340b87709db2d9749c92a3bf925df1 (patch)
treef89c4dd672281f18af8e7fa17c70b8ea18fe583f /src/runtime/stack_test.go
parent72ba91902a39abb47ee9681319d517d4413e3b65 (diff)
downloadgo-8673ca81e5340b87709db2d9749c92a3bf925df1.tar.xz
html/template: disallow angle brackets in CSS values
Angle brackets should not appear in CSS contexts, as they may affect token boundaries (such as closing a <style> tag, resulting in injection). Instead emit filterFailsafe, matching the behavior for other dangerous characters. Thanks to Juho Nurminen of Mattermost for reporting this issue. Fixes #59720 Fixes CVE-2023-24539 Change-Id: Iccc659c9a18415992b0c05c178792228e3a7bae4 Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1826636 Reviewed-by: Julie Qiu <julieqiu@google.com> Run-TryBot: Roland Shoemaker <bracewell@google.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-on: https://go-review.googlesource.com/c/go/+/491615 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Carlos Amedee <carlos@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/stack_test.go')
0 files changed, 0 insertions, 0 deletions