mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Java: Convert WebSocketMessageParameterSource to CSV based flow source
This commit is contained in:
@@ -170,7 +170,9 @@ private predicate sourceModelCsv(string row) {
|
||||
// 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"
|
||||
"org.springframework.web.client;RestTemplate;false;postForEntity;;;ReturnValue;remote",
|
||||
// WebSocketMessageParameterSource
|
||||
"java.net.http;WebSocket$Listener;true;onText;(WebSocket,CharSequence,boolean);;Parameter[1];remote"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -158,14 +158,6 @@ private class ThriftIfaceParameterSource extends RemoteFlowSource {
|
||||
override string getSourceType() { result = "Thrift Iface parameter" }
|
||||
}
|
||||
|
||||
private class WebSocketMessageParameterSource extends RemoteFlowSource {
|
||||
WebSocketMessageParameterSource() {
|
||||
exists(WebsocketOnText t | t.getParameter(1) = this.asParameter())
|
||||
}
|
||||
|
||||
override string getSourceType() { result = "Websocket onText parameter" }
|
||||
}
|
||||
|
||||
/** Class for `tainted` user input. */
|
||||
abstract class UserInput extends DataFlow::Node { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user