diff --git a/go/ql/lib/ext/github.com.go-chi.chi.model.yml b/go/ql/lib/ext/github.com.go-chi.chi.model.yml index c1dd29eb987ff..10cb0333aff77 100644 --- a/go/ql/lib/ext/github.com.go-chi.chi.model.yml +++ b/go/ql/lib/ext/github.com.go-chi.chi.model.yml @@ -5,3 +5,4 @@ extensions: data: - ["github.com/go-chi/chi", "", True, "URLParam", "", "", "ReturnValue", "remote", "manual"] - ["github.com/go-chi/chi", "", True, "URLParamFromCtx", "", "", "ReturnValue", "remote", "manual"] + - ["github.com/go-chi/chi", "Context", True, "URLParam", "", "", "ReturnValue", "remote", "manual"] diff --git a/go/ql/lib/go.qll b/go/ql/lib/go.qll index 9260c988eaa84..8adbb9f649c13 100644 --- a/go/ql/lib/go.qll +++ b/go/ql/lib/go.qll @@ -34,7 +34,6 @@ import semmle.go.frameworks.Afero import semmle.go.frameworks.AwsLambda import semmle.go.frameworks.Beego import semmle.go.frameworks.BeegoOrm -import semmle.go.frameworks.Chi import semmle.go.frameworks.Couchbase import semmle.go.frameworks.Echo import semmle.go.frameworks.ElazarlGoproxy diff --git a/go/ql/lib/semmle/go/frameworks/Chi.qll b/go/ql/lib/semmle/go/frameworks/Chi.qll deleted file mode 100644 index a45941c905785..0000000000000 --- a/go/ql/lib/semmle/go/frameworks/Chi.qll +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Provides classes for working with remote flow sources from the `github.com/go-chi/chi` package. - */ - -import go - -private module Chi { - /** Gets the package name `github.com/go-chi/chi`. */ - string packagePath() { result = package("github.com/go-chi/chi", "") } - - /** - * Methods that extract URL parameters, considered as a source of remote flow. - */ - private class UserControlledRequestMethod extends RemoteFlowSource::Range, - DataFlow::MethodCallNode - { - UserControlledRequestMethod() { - this.getTarget().hasQualifiedName(packagePath(), "Context", "URLParam") - } - } -}