nyx/tests/dynamic_fixtures/java/cmdi_unsupported.java

11 lines
314 B
Java

// Command injection — unsupported fixture.
// Entry is an instance method; test sets confidence = Low.
// Expected verdict: Unsupported
import java.io.*;
public class Entry {
public void execute(String cmd) throws Exception {
Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", cmd});
}
}