2 ms·
It appears that it does escape shell commands. The issue is that PHPMailer had already escaped them. The exploit is exploiting the "double escape". The real
by tyingq 10y ago
It appears that it does escape shell commands. The issue is that PHPMailer had already escaped them. The exploit is exploiting the "double escape".
The real issue to me is that unlike Perl and Python, PHP doesn't provide a way to spawn a process without invoking /bin/sh. If PHP had support for the various incantations of exec(), you could pass arguments without needing the shell.