FYI : If you have a NextCloud or Owncloud installation. The recommended nginx configuration is vulnerable [1] [1] https://nextcloud.com/blog/urgent-security-issue-in-nginx-ph...
I wish there was a webdav server that wasn't a huge PHP thing and had decent authentication/authorization. Almost everything has SFTP built in anyway now though, it's only a matter of time before OSes other than Linux based ones integrate it into the shells and then webdav won't matter so much.
PHP-FPM remote code execution bug exploited in the wild
111–120 of 139 posts
Re: PHP-FPM remote code execution bug exploited in the wild
#112Earlier quoted context omitted.
I hide mine behind letsencrypt, just dont put nextcloud.yourdomain.com but put it under a path like yourdomain.com/shortPhrase/nextcloud where shortPhrase is something like noway pizde and so on. Then dont share your links publicly.
How does Let's Encrypt "hide" anything? Quite the contrary—the list of certs granted is publicly available (as it is for all CAs, I believe).
Put your services, on a shared domain name, only yourdomain.com and under a sub-path, like yourdomain.com/thisISAlmostLikeaPassword/nextcloud the subpath is hidden by TLS, unless you make it public by posting it on the internet. And also if you arent careful, like using google "auto-suggest" or just using any Google products, then they will at least know about your path.
Re: PHP-FPM remote code execution bug exploited in the wild
#113Earlier quoted context omitted.
TLS hides the path from a potential attacker that could observe traffic. Putting your nextcloud instance on a nonstandard path might help in this case, but - if I read the issue correctly - not in this cases
I haven't studied the issue, but it requires to access/execute php, no? If configuration requires a path to get further than a canned reply from nginx (403, 404, static page..), then it should reduce attack surface a lot. You should not be able to get anywhere near php without the path.
Re: PHP-FPM remote code execution bug exploited in the wild
#114Re: PHP-FPM remote code execution bug exploited in the wild
#115Earlier quoted context omitted.
This is a case study in why you shouldn't expose your self-hosted services to the internet.
No it's not.
Re: PHP-FPM remote code execution bug exploited in the wild
#116Earlier quoted context omitted.
If anyone is following standard "recommended" practice, like in Nextcloud case, they get burned. This is true for all languages and frameworks. If you dont practice defense-in-depth, you get rekt eventually. I just checked my installation, its safe, since I didnt follow their "recommended" settings at all. Since its a PHP app, what I do is put an extra nginx proxy infront of it, so there is nginx 1 (this one runs in…
The recommended way off installing it uses apache instead of nginx, which happens not to be vulnerable. Only if you looked up their instructions for nginx did you get burned.
We have a fair bit of legacy stuff hanging around, all nginx+php, none of which appear to be vulnerable due to consistent use of try_files.
Re: PHP-FPM remote code execution bug exploited in the wild
#117Earlier quoted context omitted.
The recommended way off installing it uses apache instead of nginx, which happens not to be vulnerable. Only if you looked up their instructions for nginx did you get burned.
I didn't realise that the recommendation had gone back the other way again; any good resources discussing current recommendations and the whys? We have a fair bit of legacy stuff hanging around, all nginx+php, none of which appear to be vulnerable due to consistent use of try_files.
Re: PHP-FPM remote code execution bug exploited in the wild
#118Earlier quoted context omitted.
I didn't realise that the recommendation had gone back the other way again; any good resources discussing current recommendations and the whys? We have a fair bit of legacy stuff hanging around, all nginx+php, none of which appear to be vulnerable due to consistent use of try_files.
I have no idea why. I just based it on https://docs.nextcloud.com/server/17/admin_manual/installati...
Re: PHP-FPM remote code execution bug exploited in the wild
#119Earlier quoted context omitted.
There's also the small issue that every minute that passes is another potential minute an attacker is stealing sensitive data, PII, and email/IM logs from your company's internal network, and backdooring other servers, installing ransomware, etc. That requires far more than a wipe and restore to deal with, and could potentially result in a massive financial and reputational loss.
That seems far fetched in most saneish setups of PHP. The only risk, really, is the apps' own data. Which is also where microservices shine - chaining attacks like this is exponentially more difficult then. Unless, of course, your app is a monolith, isn't sandboxed and segregated from the rest of internal network (i.e. on the same server), and the rest of the network is very, very vulnerable so the attacker can chain…
Re: PHP-FPM remote code execution bug exploited in the wild
#120I'm sure a lot of PHP 7.0 installations are still in production and will not receive a patch...
Yup, we run like 50 sites on php 5.3 atm and just 5 with 7+ php industry is weird and update shy in my experience... Atleast in Europe
It's time to upgrade if you want to stay secure: https://www.php.net/supported-versions.php