We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506d668 commit 8e9f21dCopy full SHA for 8e9f21d
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