Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f200d7

Browse files
author
Sebastian Bauersfeld
committed
Parameters annotated with Spring's @RequestBody and @PathVariable are remote input sources.
1 parent c674f54 commit 2f200d7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

java/ql/src/semmle/code/java/frameworks/SpringWeb.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class SpringServletInputAnnotation extends Annotation {
1111
a.hasName("RequestParam") or
1212
a.hasName("RequestHeader") or
1313
a.hasName("CookieValue") or
14-
a.hasName("RequestPart")
14+
a.hasName("RequestPart") or
15+
a.hasName("PathVariable") or
16+
a.hasName("RequestBody")
1517
)
1618
}
1719
}

0 commit comments

Comments
 (0)