mirror of
https://github.com/securego/gosec.git
synced 2025-12-01 22:41:54 +02:00
Adds directory traversal for Http.Dir("/")
This commit is contained in:
@@ -90,6 +90,10 @@ var _ = Describe("gosec rules", func() {
|
||||
runner("G110", testutils.SampleCodeG110)
|
||||
})
|
||||
|
||||
It("should detect potential directory traversal", func() {
|
||||
runner("G111", testutils.SampleCodeG111)
|
||||
})
|
||||
|
||||
It("should detect sql injection via format strings", func() {
|
||||
runner("G201", testutils.SampleCodeG201)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user