Add more methods from GORM as sinks

Cf. https://gorm.io/docs/security.html
This commit is contained in:
Owen Mansel-Chan
2020-09-09 14:01:55 +01:00
parent 95c1f754c6
commit d807e8de75

View File

@@ -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"]
)
}
}