nyx/tests/dynamic_fixtures/java/cmdi_unsupported.java

12 lines
314 B
Java
Raw Normal View History

2026-06-05 10:16:30 -05:00
// 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});
}
}