mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Java: Convert SpringRestTemplateResponseEntityMethod to CSV based flow source
This commit is contained in:
@@ -166,7 +166,11 @@ private predicate sourceModelCsv(string row) {
|
||||
// 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"
|
||||
"android.webkit;WebView;false;getOriginalUrl;();;ReturnValue;remote",
|
||||
// SpringRestTemplateResponseEntityMethod
|
||||
"org.springframework.web.client;RestTemplate;false;exchange;;;ReturnValue;remote",
|
||||
"org.springframework.web.client;RestTemplate;false;getForEntity;;;ReturnValue;remote",
|
||||
"org.springframework.web.client;RestTemplate;false;postForEntity;;;ReturnValue;remote"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -213,10 +213,7 @@ class DatabaseInput extends LocalUserInput {
|
||||
}
|
||||
|
||||
private class RemoteTaintedMethod extends Method {
|
||||
RemoteTaintedMethod() {
|
||||
this instanceof PlayRequestGetMethod or
|
||||
this instanceof SpringRestTemplateResponseEntityMethod
|
||||
}
|
||||
RemoteTaintedMethod() { this instanceof PlayRequestGetMethod }
|
||||
}
|
||||
|
||||
private class PlayRequestGetMethod extends Method {
|
||||
|
||||
Reference in New Issue
Block a user