We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c2820 commit 264cd74Copy full SHA for 264cd74
java/ql/lib/semmle/code/java/security/CsrfUnprotectedRequestTypeQuery.qll
@@ -27,3 +27,20 @@ private class SpringCsrfUnprotectedMethod extends CsrfUnprotectedMethod instance
27
)
28
}
29
30
+
31
+/** A method that updates a database. */
32
+abstract class DatabaseUpdateMethod extends Method { }
33
34
+/** A MyBatis Mapper method that updates a database. */
35
+private class MyBatisMapperDatabaseUpdateMethod extends DatabaseUpdateMethod {
36
+ MyBatisMapperDatabaseUpdateMethod() {
37
+ exists(MyBatisMapperSqlOperation mapperXml |
38
+ (
39
+ mapperXml instanceof MyBatisMapperInsert or
40
+ mapperXml instanceof MyBatisMapperUpdate or
41
+ mapperXml instanceof MyBatisMapperDelete
42
+ ) and
43
+ this = mapperXml.getMapperMethod()
44
+ )
45
+ }
46
+}
0 commit comments