logoalt Hacker News

londons_explore • today at 4:13 PM • 3 replies • view on HN

I was under the impression that this sort of bug is fairly common in both php and common php frameworks?

I thought the real lesson was "assume your web server is compromised if you use php, and try to make sure php doesn't touch anything too critical"


Replies

user43928 • today at 5:35 PM

I'm struggling to see any reason to use PHP in the first place if it can run without access to private data.

At that point I would not need a backend.

arm32 • today at 4:30 PM

Yes, there have been decades of talk about this already—ensuring you isolate/jail the PHP-related processes and run them with an unprivileged user, etc.

dizhn • today at 4:47 PM

It's usually scripts that can write to /tmp and run unrelated stuff with web user rights. This seems more involved.