Skip to content

Commit 92ebb63

Browse files
author
Sauyon Lee
committed
Model Spring AntPath utils
1 parent c4e9b1f commit 92ebb63

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java/ql/src/semmle/code/java/frameworks/spring/SpringUtil.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ module SpringUtil {
1111
private class FlowSummaries extends SummaryModelCsv {
1212
override predicate row(string row) {
1313
row = [
14+
"org.springframework.util;AntPathMatcher;false;combine;;;Argument[0..1];ReturnValue;taint",
15+
"org.springframework.util;AntPathMatcher;false;doMatch;;;Argument[0];MapValue of Argument[2];taint",
16+
"org.springframework.util;AntPathMatcher;false;extractPathWithinPattern;;;Argument[1];ReturnValue;taint",
17+
"org.springframework.util;AntPathMatcher;false;extractUriTemplateVariables;;;Argument[1];MapValue of ReturnValue;taint",
18+
// Return values here are arrays, but there's no value in adding `ArrayValue of` for taint, right?
19+
"org.springframework.util;AntPathMatcher;false;tokenizePath;;;Argument[0];ReturnValue;taint",
20+
"org.springframework.util;AntPathMatcher;false;tokenizePattern;;;Argument[0];ReturnValue;taint",
21+
"org.springframework.util.AntPathMatcher;AntPathStringMatcher;false;matchStrings;;;Argument[0];MapValue of Argument[1];taint",
1422
"org.springframework.util;AutoPopulatingList;false;AutoPopulatingList;(java.util.List,org.springframework.util.AutoPopulatingList.ElementFactory);;Element of Argument[0];Element of Argument[-1];value",
1523
"org.springframework.util;AutoPopulatingList;false;AutoPopulatingList;(java.util.List,java.lang.Class);;Element of Argument[0];Element of Argument[-1];value",
1624
"org.springframework.util;Base64Utils;false;decode;;;Argument[0];ReturnValue;taint",

0 commit comments

Comments
 (0)