зеркало из https://github.com/github/codeql-go.git
update fix
This commit is contained in:
Родитель
2b51b4206e
Коммит
c70358033d
|
@ -14,27 +14,27 @@ private import semmle.go.security.SafeUrlFlowCustomizations
|
|||
module Beego {
|
||||
/**
|
||||
* Gets the module path `github.com/astaxie/beego` or `github.com/beego/beego`
|
||||
* or `github.com/beego/beego/v2/server/web`.
|
||||
* or `github.com/beego/beego/v2`.
|
||||
*/
|
||||
string modulePath() {
|
||||
result =
|
||||
[
|
||||
"github.com/astaxie/beego", "github.com/beego/beego",
|
||||
"github.com/beego/beego/v2/server/web"
|
||||
"github.com/beego/beego/v2"
|
||||
]
|
||||
}
|
||||
|
||||
/** Gets the path for the root package of beego. */
|
||||
string packagePath() { result = package(modulePath(), "") }
|
||||
string packagePath() { result = package(modulePath(), ["", "server/web"]) }
|
||||
|
||||
/** Gets the path for the context package of beego. */
|
||||
string contextPackagePath() { result = package(modulePath(), "context") }
|
||||
string contextPackagePath() { result = package(modulePath(), ["context", "server/web/context"]) }
|
||||
|
||||
/** Gets the path for the logs package of beego. */
|
||||
string logsPackagePath() { result = package(modulePath(), "logs") }
|
||||
string logsPackagePath() { result = package(modulePath(), ["logs", "core/logs"]) }
|
||||
|
||||
/** Gets the path for the utils package of beego. */
|
||||
string utilsPackagePath() { result = package(modulePath(), "utils") }
|
||||
string utilsPackagePath() { result = package(modulePath(), ["utils", "core/utils"]) }
|
||||
|
||||
/**
|
||||
* `BeegoInput` sources of untrusted data.
|
||||
|
@ -365,4 +365,4 @@ module Beego {
|
|||
name in ["Get", "Items"] and input.isReceiver() and output.isResult(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -29,7 +29,7 @@ module NetHttp {
|
|||
UserControlledRequestField() {
|
||||
exists(string fieldName | this.getField().hasQualifiedName("net/http", "Request", fieldName) |
|
||||
fieldName =
|
||||
["Body", "GetBody", "Form", "PostForm", "MultipartForm", "Header", "Trailer", "URL", "Host"]
|
||||
["Body", "GetBody", "Form", "PostForm", "MultipartForm", "Header", "Trailer", "URL"]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче