-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Go: Add SQLi sinks for Squirrel #15812
Conversation
fn.(Method).hasQualifiedName(sq, builder, "Where") | ||
// first argument to the `OrderBy`, `Prefix`, `Suffix` or `Where` method of one of the `*Builder` classes | ||
exists(Method m, string builder | m = fn | | ||
builder.matches("%Builder") and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're editing this code, can you just explicitly list the types? It makes it much easier to search for and there aren't that many.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's this:
builder.matches("%Builder") and | |
builder = ["DeleteBuilder", "InsertBuilder", "SelectBuilder", "UpdateBuilder"] and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, done here: e78e71c.
Adds SQL injection sinks for https://github.com/Masterminds/squirrel.