mirror of
https://github.com/github/codeql.git
synced 2026-02-27 20:33:42 +01:00
Java: Convert WebViewGetUrlMethod to CSV based flow source
This commit is contained in:
@@ -162,7 +162,11 @@ private predicate sourceModelCsv(string row) {
|
||||
"android.util;AttributeSet;false;getIdAttribute;;;ReturnValue;remote",
|
||||
"android.util;AttributeSet;false;getIdAttributeResourceValue;;;ReturnValue;remote",
|
||||
"android.util;AttributeSet;false;getPositionDescription;;;ReturnValue;remote",
|
||||
"android.util;AttributeSet;false;getStyleAttribute;;;ReturnValue;remote"
|
||||
"android.util;AttributeSet;false;getStyleAttribute;;;ReturnValue;remote",
|
||||
// The current URL in a browser may be untrusted or uncontrolled.
|
||||
// WebViewGetUrlMethod
|
||||
"android.webkit;WebView;false;getUrl;();;ReturnValue;remote",
|
||||
"android.webkit;WebView;false;getOriginalUrl;();;ReturnValue;remote"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -215,9 +215,7 @@ class DatabaseInput extends LocalUserInput {
|
||||
private class RemoteTaintedMethod extends Method {
|
||||
RemoteTaintedMethod() {
|
||||
this instanceof PlayRequestGetMethod or
|
||||
this instanceof SpringRestTemplateResponseEntityMethod or
|
||||
// The current URL in a browser may be untrusted or uncontrolled.
|
||||
this instanceof WebViewGetUrlMethod
|
||||
this instanceof SpringRestTemplateResponseEntityMethod
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user