News for hackers. Stuff that matters.
Re:Exploit/bypass PHP escapeshellarg/escapeshellcmd functions by labster on Thursday April 26, 2018 @06:49PM (#16936662)
Ah yes, "PHP "security"". Yes, untrusted user input going to the shell is a bad idea, even when "sanitized".

Of course, unlike other saner languages, bypassing the shell isn't always an option. When running under Apache, pcntl_exec() isn't available, so you just gotta hope rely on escapeshellarg(), addbackslashes(), and prayer.

Re:Exploit/bypass PHP escapeshellarg/escapeshellcmd functions by chatmasta on Thursday April 26, 2018 @07:09PM (#16936816)
You should be running your application code in some sort of sandbox anyway, to minimize the data available to an attacker in the event of privilege escalation.