Skip to content

Commit 987ee49

Browse files
Potential fix for code scanning alert no. 3: Uncontrolled command line
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 034a7ba commit 987ee49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/owasp/benchmark/testcode/Benchmark00176.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
6161

6262
try {
6363
Process p =
64-
r.exec(cmd + bar, argsEnv, new java.io.File(System.getProperty("user.dir")));
64+
r.exec(cmd, argsEnv, new java.io.File(System.getProperty("user.dir")));
6565
org.owasp.benchmark.helpers.Utils.printOSCommandResults(p, response);
6666
} catch (IOException e) {
6767
System.out.println("Problem executing cmdi - Case");

0 commit comments

Comments
 (0)