Closed
Description
Description
Hi,
I saw the test cases in resources, including TaintParam, CSBackPropagation, but not found case for back taint propagation.
One case I test shown below:
public static void main(String[] args) {
String taint = SourceSink.source();
ArrayList<String> aa = new ArrayList<String>();
interfunc(taint, aa);
for (String elem : aa) {
SourceSink.sink(elem);
}
}
private static void interfunc(String s1, ArrayList target) {
target.add(s1);
}
Also configured the rules:
- { method: "<java.util.ArrayList: boolean add(java.lang.Object)>", from: 0, to: base }
- { method: "<java.util.ArrayList: java.util.Iterator iterator()>", from: base, to: result }
- { method: "<java.util.Iterator: java.lang.Object next()>", from: base, to: result, type: "java.lang.String" }
In pta-results.txt, I found the second param has tainted in the method interfunc,
but the caller point (interfunc(taint, aa);), the var aa is not tainted now.
Here have any propose suggestion to resolve. Thanks.
Metadata
Metadata
Assignees
Labels
No labels