Code injection attack is an injection attack through which an attacker can execute any malicious commands on the host operating system via the application. This attack is possible because the application passes unsafe user-supplied data to the system shell. The attacks can be done via forms, cookies, HTTP headers etc. In this attack, the operating system commands sent by the attacker is executed with the execution privileges of the vulnerable application. This type of attacks is largely due to insufficient input validation.
There are servers that pass unsafe user-supplied data to the system shell. The attacker can supply operating system commands and can execute with the privileges of the server application. The attacker uses code injection to extend the functionality of the application via his malicious code.
The impact include:-
Beagle recommends the following fixes:-