KB / Глосарій / Ін'єкція команд

Ін'єкція команд

Command Injection
Також: OS Command Injection, Shell Injection
web UA EN

Command Injection occurs when unsanitised input is passed to a system shell, enabling arbitrary OS command execution.

Example: ping -c 1 <input>8.8.8.8; cat /etc/passwd.

Mitigation

Avoid shell=True, use subprocess with argument arrays, strict input validation.

Вперше тут?
Новачок на Bastion?
Почни з гайду користувача.
Відкрити гайд →
?