Skip to content

Commit d252d60

Browse files
committed
Remove Protocol as UntrustedFlowSource
1 parent 498332c commit d252d60

File tree

3 files changed

+7
-30
lines changed

3 files changed

+7
-30
lines changed

ql/src/experimental/frameworks/Fiber.json

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"Name": "Fiber",
3+
"Preload": null,
34
"Models": [
45
{
56
"Name": "TaintTracking",
@@ -929,17 +930,15 @@
929930
}
930931
},
931932
{
932-
"Kind": "Func",
933+
"Kind": "Struct",
933934
"Qualifier": {
934935
"Path": "github.com/gofiber/fiber",
935936
"Version": "v1.14.6",
936-
"ID": "TypeMethod-Ctx-Protocol",
937-
"Pos": [
938-
false,
939-
true
940-
],
941-
"Flows": null,
942-
"Name": "Protocol"
937+
"ID": "Struct-Error",
938+
"TypeName": "Error",
939+
"Fields": {
940+
"Message": null
941+
}
943942
}
944943
},
945944
{
@@ -1019,18 +1018,6 @@
10191018
"Value": null
10201019
}
10211020
}
1022-
},
1023-
{
1024-
"Kind": "Struct",
1025-
"Qualifier": {
1026-
"Path": "github.com/gofiber/fiber",
1027-
"Version": "v1.14.6",
1028-
"ID": "Struct-Error",
1029-
"TypeName": "Error",
1030-
"Fields": {
1031-
"Message": null
1032-
}
1033-
}
10341021
}
10351022
]
10361023
}

ql/src/experimental/frameworks/Fiber.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,6 @@ private module Fiber {
366366
methodName = "Path" and
367367
out.isResult()
368368
or
369-
// signature: func (*Ctx).Protocol() string
370-
methodName = "Protocol" and
371-
out.isResult()
372-
or
373369
// signature: func (*Ctx).Query(key string, defaultValue ...string) string
374370
methodName = "Query" and
375371
out.isResult()

ql/test/experimental/frameworks/Fiber/UntrustedFlowSources.go

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)