Hexret

Web Security · Injection

OS Command Injection

Also known as: Command Injection, Shell Injection

Input reaches a shell command, so a separator such as ; id or $(...) runs extra commands with the application's privileges. Avoid spawning shells: call the program with an argument array, or validate against a strict allow-list when a shell is unavoidable.

Where you practice it

Related terms