File tree Expand file tree Collapse file tree
java/ql/src/semmle/code/java/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,7 +166,11 @@ private predicate sourceModelCsv(string row) {
166166 // The current URL in a browser may be untrusted or uncontrolled.
167167 // WebViewGetUrlMethod
168168 "android.webkit;WebView;false;getUrl;();;ReturnValue;remote" ,
169- "android.webkit;WebView;false;getOriginalUrl;();;ReturnValue;remote"
169+ "android.webkit;WebView;false;getOriginalUrl;();;ReturnValue;remote" ,
170+ // SpringRestTemplateResponseEntityMethod
171+ "org.springframework.web.client;RestTemplate;false;exchange;;;ReturnValue;remote" ,
172+ "org.springframework.web.client;RestTemplate;false;getForEntity;;;ReturnValue;remote" ,
173+ "org.springframework.web.client;RestTemplate;false;postForEntity;;;ReturnValue;remote"
170174 ]
171175}
172176
Original file line number Diff line number Diff line change @@ -213,10 +213,7 @@ class DatabaseInput extends LocalUserInput {
213213}
214214
215215private class RemoteTaintedMethod extends Method {
216- RemoteTaintedMethod ( ) {
217- this instanceof PlayRequestGetMethod or
218- this instanceof SpringRestTemplateResponseEntityMethod
219- }
216+ RemoteTaintedMethod ( ) { this instanceof PlayRequestGetMethod }
220217}
221218
222219private class PlayRequestGetMethod extends Method {
You can’t perform that action at this time.
0 commit comments