Files
codeql/java/ql/test/library-tests/dataflow/taintsources/RmiFlowImpl.java
Anders Schack-Mulligen 2b1723dd88 Java: Move some taint tests.
2020-02-04 13:21:31 +01:00

16 lines
416 B
Java

package security.library.dataflow;
public class RmiFlowImpl implements RmiFlow {
public String listDirectory(String path) {
String command = "ls " + path;
Runtime.getRuntime().exec(command);
return "pretend there are some results here";
}
public String notRemotable(String path) {
String command = "ls " + path;
Runtime.getRuntime().exec(command);
return "pretend there are some results here";
}
}