forked from JoyChou93/java-sec-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Mend: code security findingsCode security findings detected by MendCode security findings detected by Mend
Description
Code Security Finding
This finding was first detected on 2024-02-07 06:59pm GMT and is still present in the last scan performed on 2024-02-07 06:58pm GMT:
Severity | Vulnerability Type | CWE | File | Data Flows | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Command Injection | 1 | |||||||||||||||||
|
@Override | |
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { | |
String cmd; | |
if ((cmd = servletRequest.getParameter("cmd_")) != null) { | |
Process process = Runtime.getRuntime().exec(cmd); |
1 Data Flow/s detected
if ((cmd = servletRequest.getParameter("cmd_")) != null) { |
Secure Code Warrior Training Material
● Training
▪ Secure Code Warrior Command Injection Training
● Videos
▪ Secure Code Warrior Command Injection Video
● Further Reading
🏴 Suppress Finding
- ... as False Alarm
- ... as Acceptable Risk
Metadata
Metadata
Assignees
Labels
Mend: code security findingsCode security findings detected by MendCode security findings detected by Mend