Skip to content

Commit c703580

Browse files
author
cokeBeer
committed
update fix
1 parent 2b51b42 commit c703580

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ql/lib/semmle/go/frameworks/Beego.qll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@ private import semmle.go.security.SafeUrlFlowCustomizations
1414
module Beego {
1515
/**
1616
* Gets the module path `github.com/astaxie/beego` or `github.com/beego/beego`
17-
* or `github.com/beego/beego/v2/server/web`.
17+
* or `github.com/beego/beego/v2`.
1818
*/
1919
string modulePath() {
2020
result =
2121
[
2222
"github.com/astaxie/beego", "github.com/beego/beego",
23-
"github.com/beego/beego/v2/server/web"
23+
"github.com/beego/beego/v2"
2424
]
2525
}
2626

2727
/** Gets the path for the root package of beego. */
28-
string packagePath() { result = package(modulePath(), "") }
28+
string packagePath() { result = package(modulePath(), ["", "server/web"]) }
2929

3030
/** Gets the path for the context package of beego. */
31-
string contextPackagePath() { result = package(modulePath(), "context") }
31+
string contextPackagePath() { result = package(modulePath(), ["context", "server/web/context"]) }
3232

3333
/** Gets the path for the logs package of beego. */
34-
string logsPackagePath() { result = package(modulePath(), "logs") }
34+
string logsPackagePath() { result = package(modulePath(), ["logs", "core/logs"]) }
3535

3636
/** Gets the path for the utils package of beego. */
37-
string utilsPackagePath() { result = package(modulePath(), "utils") }
37+
string utilsPackagePath() { result = package(modulePath(), ["utils", "core/utils"]) }
3838

3939
/**
4040
* `BeegoInput` sources of untrusted data.
@@ -365,4 +365,4 @@ module Beego {
365365
name in ["Get", "Items"] and input.isReceiver() and output.isResult(0)
366366
}
367367
}
368-
}
368+
}

ql/lib/semmle/go/frameworks/stdlib/NetHttp.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module NetHttp {
2929
UserControlledRequestField() {
3030
exists(string fieldName | this.getField().hasQualifiedName("net/http", "Request", fieldName) |
3131
fieldName =
32-
["Body", "GetBody", "Form", "PostForm", "MultipartForm", "Header", "Trailer", "URL", "Host"]
32+
["Body", "GetBody", "Form", "PostForm", "MultipartForm", "Header", "Trailer", "URL"]
3333
)
3434
}
3535
}

0 commit comments

Comments
 (0)