File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed
java/ql/test/library-tests/frameworks/spring/websocket Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ import org .springframework .web .socket .handler .TextWebSocketHandler ;
3+ import org .springframework .web .socket .WebSocketSession ;
4+ import org .springframework .web .socket .WebSocketMessage ;
5+
6+
7+ public class Test extends TextWebSocketHandler {
8+ void sink (Object o ) {}
9+
10+ @ Override
11+ public void handleMessage (WebSocketSession s , WebSocketMessage <?> m ) {
12+ sink (s ); // $hasTaintFlow
13+ sink (s .getAcceptedProtocol ()); // $hasTaintFlow
14+ sink (s .getHandshakeHeaders ()); // $hasTaintFlow
15+ sink (s .getPrincipal ()); // $hasTaintFlow
16+ sink (s .getUri ()); // $hasTaintFlow
17+
18+ sink (m ); // $hasTaintFlow
19+ sink (m .getPayload ()); // $hasTaintFlow
20+
21+ }
22+ }
Original file line number Diff line number Diff line change 1+ //semmle-extractor-options: --javac-args -cp ${testdir}/../../../../stubs/springframework-5.8.x:${testdir}/../../../../stubs/javax-servlet-2.5:${testdir}/../../../../stubs/apache-commons-logging-1.2
Original file line number Diff line number Diff line change 1+ import java
2+ import utils.test.InlineFlowTest
3+ import DefaultFlowTest
4+ import TaintFlow:: PathGraph
You can’t perform that action at this time.
0 commit comments