mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Add more methods from GORM as sinks
Cf. https://gorm.io/docs/security.html
This commit is contained in:
@@ -168,7 +168,8 @@ module SQL {
|
||||
meth.hasQualifiedName(package, "DB", name) and
|
||||
this = meth.getACall().getArgument(0) and
|
||||
package in ["github.com/jinzhu/gorm", "github.com/go-gorm/gorm", "gorm.io/gorm"] and
|
||||
name in ["Where", "Raw", "Order", "Not", "Or", "Select", "Table", "Group", "Having", "Joins"]
|
||||
name in ["Where", "Raw", "Order", "Not", "Or", "Select", "Table", "Group", "Having",
|
||||
"Joins", "Exec", "Distinct", "Pluck"]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user