mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Track taint from concatenated string
This commit is contained in:
@@ -46,6 +46,9 @@ public class B {
|
||||
// tainted - tokenized string
|
||||
String token = new StringTokenizer(badEscape).nextToken();
|
||||
sink(token);
|
||||
// tainted - fluent concatenation
|
||||
String fluentConcat = "".concat("str").concat(token).concat("bar");
|
||||
sink(fluentConcat);
|
||||
|
||||
// not tainted
|
||||
String safe = notTainty(complex);
|
||||
|
||||
Reference in New Issue
Block a user