#684·goconvey

XSS Vulnerability

Author: korewayumeCreated Dec 15, 2023Updated Jan 24, 2025
go
func TestXss(t *testing.T) {
	xss := `<img src="abc.png" alt="ABC" />`
	Convey("testing XSS", t, func() {
		SoMsg(xss, errors.New(xss), ShouldBeNil)
	})
}
image