Remote command execution
Description
The system builds OS commands using inputs that can be manipulated externally, it does not correctly neutralize special elements that could modify the OS command.
Impact
Execute unauthorized code or commands.
Recommendation
- If at all possible, use standard library calls rather than external processes to recreate the desired functionality. - Keep as much data as possible used to generate command outside of external control. - Properly escape the arguments used to generate the command and avoid special characters.
Threat
Authenticated attacker from the Internet.
Expected Remediation Time
⏱️ 30 minutes.
Requirements
173 - Discard unsafe inputs265 - Restrict access to critical processes266 - Disable insecure functionalities344 - Avoid dynamic code executionRules
Python Command Injection In Shell CallJava Command Injection From HeaderC Sharp Command Injection Process StartPhp Call Func Insecure FunctionalityTypescript Command Injection In ExecPython Command Injection Via User InputJavascript Command Injection In ExecPhp Command Injection In Exec FunctionsPython Remote Code ExecutionKotlin Command Injection Runtime ExecPython Subinterpreter Code InjectionPython Logging Config Insecure Listen