#684·goconvey

XSS 漏洞

作者: korewayume创建于 2023年12月15日更新于 2025年1月24日
go
func TestXss(t *testing.T) {
	xss := `<img src="abc.png" alt="ABC" />`
	Convey("测试 XSS", t, func() {
		SoMsg(xss, errors.New(xss), ShouldBeNil)
	})
}

内容来源: smartystreets/goconvey