-
Notifications
You must be signed in to change notification settings - Fork 125
Add Column, From, JoinClause, *Join, Having, OrderByClause methods for squirrel SQLi query #682
Conversation
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 don't have detailed knowledge of the package to know whether the Having and Clause methods perform sufficient escaping of their arguments to prevent a meaningful injection attack: have you tested that they really are exploitable?
Yes, demo: https://go.dev/play/p/7Ipxor9Z029
|
👍 ping me when this is in a ready state |
I added Also |
@smowton I believe it's ready for a round of review/merge (assuming tests pass, currently blocked on github actions being started) |
CI is currently failing when trying to extract |
Noting this was merged accidentally due to changes to the automerge criteria and then reverted in #748 |
Changes
Building on @tunnelshade's work in #611, add a few additional methods with similar signatures/issues.
These are vulnerable sinks if the first parameter is tainted input.
Some of these functions accept
interface{}
type in which case onlystring
type (StringType
) is tainted/vulnerable.Links