Blind Command Injection
Invicti identified a Blind Command Injection, which occurs when input data is interpreted as an operating system command.
It is a highly critical issue and should be addressed as soon as possible.
In this case, command injection was not obvious, but the different response times from the page based on the injection test allowed Invicti to identify and confirm the command injection.
An attacker can execute arbitrary commands on the system.
Actions To Take#
- See the remedy for solution.
- If possible, do not invoke system commands from the application.
- Find all instances of similar code and make the code changes outlined in the remedy section.
Before invoking system commands within an application, consider using an API, which allows you to separate commands and parameters. This can avoid many of the problems associated with command execution. See the external references for some examples. If this is not possible, whitelist all input and encode it in accordance with the underlying subsystem. (e.g. if it is Windows, then you need to escape from cmd.exe control characters)
Required Skills for Successful Exploitation#
This is an easy issue to exploit, requiring little skill or knowledge. Most knowledgeable attackers can gain remote access over such a system within minutes.
Invicti Security Insights