Files
codeql/java/ql/test/library-tests/dataflow/taintsources/RmiFlowImpl.java
2021-02-09 09:16:57 -05:00

16 lines
470 B
Java

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