-
Notifications
You must be signed in to change notification settings - Fork 1.7k
How to query types with a specific composite type in CodeQL Go? #9097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
question
Further information is requested
Comments
The guess there is that Can I take it you've solved your Beego problem? |
@smowton yes, seems I don't need to query a composite struct now. What about a PR to fix the module name "github.com/beego/beego/v2/server/web"? |
Sure, please do submit one |
cokeBeer
pushed a commit
to cokeBeer/codeql-go
that referenced
this issue
May 11, 2022
smowton
added a commit
to github/codeql-go
that referenced
this issue
May 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am working on defining a dataflow source for web framework Beego.
I tried this query on my project written in beego (https://github.com/cokeBeer/go-sec-code):
it turned out no results,but I do have a go-sec-code/controllers.CommandInjectVuln1Controller.Get Method

https://github.com/cokeBeer/go-sec-code/blob/main/controllers/commandInject.go#L23
I think the problem may come from that Beego.Controller is a composite type which looks like:
moreover, I've noted that there is a BeegoControllerSource in CodeQL Go standard library semmle.go.frameworks.Beego.qll.


I tried only query the souce node with vscode's help on the same project, but it turned out not found GetString() method called
How can I make a source defination that can find all Controllers that composite Beego.Controller?
The text was updated successfully, but these errors were encountered: