mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Add simple test case for @JavascriptInterface parameter flow
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import android.webkit.JavascriptInterface;
|
||||
|
||||
public class AndroidExposedObject {
|
||||
public void sink(Object o) {
|
||||
}
|
||||
|
||||
@JavascriptInterface
|
||||
public void test(String arg) {
|
||||
sink(arg); // $hasRemoteValueFlow
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user