by josteink · 7y ago · 0 comments
Maybe I am conflating things or mixing something up, but I was under the impression that it only used root-privileges to obtain access to restricted ports and immediately afterwords lowered its privileges lever to something sane/non-risky.
And if that is how it operates, then this exploit should not be effective.
Is that wrong? Have I been misled?
This hasn't been true for what, 10+ years? Apache runs as user www-data on Ubuntu/Debian and as user httpd on Redhat / SUSE based distributions.
You're entirely right, but this is a bit of embellishment on the part of the exploit author (even though it is serious!)
Apache is saying the same thing.
"In Apache HTTP Server 2.4 releases 2.4.17 to 2.4.38, ...code executing in less-privileged child processes or threads (including scripts executed by an in-process scripting interpreter) could execute arbitrary code with the privileges of the parent process (usually root)"
https://httpd.apache.org/security/vulnerabilities_24.html#CV...
What is the scoreboard?
It’s one of the reasons I’m always suspicious any time I run into a company that runs Apache rather than nginx or one of the many other alternatives. There is absolutely nothing wrong with running Apache, but it always makes me wonder exactly why they are... is it because they’ve got this one app that won’t run on anything else because of crap like this? More often than not...
There's also suPHP which allows you to do the same thing for PHP processes.
The code running with greater privilege is kept to a minimum but at least some needs to be there, and this exploit potentially gives a route through to manipulate it.
FastCGI and similar can help here - it can push the creation of user specific processes away from Apache, making it harder to cross the barrier.