8 ms·
Looks like it was old school shared web hosting with things like WHMCS, Cpanel, Softaculous, Wordpress one-click installers, in-house written web admin, etc. W
by tyingq 6y ago
Looks like it was old school shared web hosting with things like WHMCS, Cpanel, Softaculous, Wordpress one-click installers, in-house written web admin, etc. Where each user was running in the same instance of Linux. Not, for example, a VM per user. That kind of setup has a really wide attack surface. Not surprising it was hacked. That kind of setup with deliberately narrow support was bound to get hit.
Edit: Apparently their "sister company" sells virtual private servers, and appears to still be alive. http://nosupportvpshosting.com/index.php http://nosupportvpshosting.com/index.php
- eznzt 6y agoMost shared hostings work like that, they do not have a VM per user, and the professional ones don't get hacked often.
- tyingq 6y agoI assume because they have more margin to keep up. If you work a system like this with $1/user minus the 30 cent Cpanel license, you have little to spend on security. The "no vm per user" means any privilege escalation bug lets a hacker wipe it all. And your unsupported customers are probably running all sorts of vulnerable stuff.
- kenniskrag 6y agoHow do they secure php? The php process can access nearly anything. Also they may have remote code execution vuln: https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/php-fpm-vulnerability-cve-2019-11043-can-lead-to-remote-code-execution-in-nginx-web-servers https://www.trendmicro.com/vinfo/us/security/news/vulnerabil...
- enkrs 6y agoThey use php-fpm pools where each website gets it's own uid:gid and the php process runs as that user. Then standard linux file permissions so you can only access your own uid files. To access web assets from nginx/apache, they add file permissions wich standard Linux acls. Altough not fancy, the security model is actually quite mature. Security problems in these servers come from misconfigured permissions and scripts, not the security stack.
- arp242 6y agoSupporting shared hosting well is probably a large reason for PHP's success.
- nkozyra 6y agoSure, but there's nothing inherent to the language that fueled that. They could have done that with Python, for example. Rather, it was popular software like bulletin boards and blogging platforms that built the demand. PHP used to have one of the lowest barriers to entry because you could get by with plain HTML and incrementally add business logic inline.
- sneak 6y agoPython webserver support doesn't support SSI-style open and closing code tags in HTML files to be executed per-request, last I checked. Is there anything like php or bml (bradfitz's equivalent for perl) for python, so that you can put code right in your html to be replaced at serving time with the code's output?
- shoeffner 6y agohttps://docs.python.org/3/library/cgi.html https://docs.python.org/3/library/cgi.html All your prints are essentially sent as response with CGI, but I think for Python WSGI is the standard you should use, and you can e.g. use jinja to render HTML with templates where you can use variables, certain functions, etc. Is that what you are looking for?
- tyingq 6y agoPSP (python server pages) is pretty close to that. I don't think it is terribly popular. There's also Spyce.
- 40four 6y agoI’ve always found that very interesting about PHP. It can do both, be a standalone scripting language, and a templating engine. Not that I would ever recommend using as a templating language in 2021 :) but it’s cool that it can do that without any external library.
- _joel 6y agoUnix permissions and suexec I seem to recall, with other mitigations (chroot I think, but it's been a while since used it)
- _joel 6y agoI used to manage a fleet of cPanel servers years back, they were a pain to manage as users would regularly get infected on their local machines and have HTML infected with malicious javascript. We used a bunch of tools like clamav/configserver etc to keep on top of it but it was definitely whack-a-mole. Even with inotify style job triggers to check the newly uploaded content.
- commandlinefan 6y agoI set up a virtual guestbook for my daughter's birthday party last year on a cPanel-based hosting system. Couldn't for the life of me figure out why the damned thing wasn't working until I discovered that the admin had gone ahead and disabled my link "guestbook.cgi" since it was a common cPanel attack point. Apparently cPanel comes with a hackable default guest book of its own.
- dabockster 6y agoSounds like a Docker problem. Have the isolation without the VM overhead and associated network topology.
- whitepaint 6y agoIf each of those services were running on different docker instances it wouldn't have happened (potentially)?
- eptcyka 6y agoDocker containers are not security boundaries, unless ran on top of firecracker or gVisor.
- kenniskrag 6y agowhy not? I would argue, that they use linux namespacing, cgroup etc.
- tyingq 6y agoI agree that containers are something of a security boundary, as is chroot(). Just not as robust a boundary as an actual VM.
- imtringued 6y agoIt's not good enough for multi tenant setups. A single malicious customer can potentially steal data from other customers. The docker team also considers security to be a pretty low priority.
- jamiesonbecker 6y agoTo say nothing of sidechannel attacks[0] People need to stop looking at containers as a cheap way to get security. They might be a more convenient way to get lots of apps running on a single machine, but they're not very secure. https://ieeexplore.ieee.org/document/7847002 https://ieeexplore.ieee.org/document/7847002
- CodesInChaos 6y ago1. I expect people to move towards a VM per pod model, even in private setups. Firecracker claims a memory overhead of 5 MB, and a minimal QEMU setup shouldn't be too bad either. 2. It sounds like this paper is mainly about covert channels not side channels. Covert channels assume cooperation between both sides, so they're only relevant if one of the sides can't communicate trivially (e.g. via network)
- faeyanpiraat 6y agohttp??
- tyingq 6y agoYeah. There is an https endpoint, but the page renders wrong for me, so I linked the http one. I didn't look to see if the client login/registration sends plaintext over http. Edit: It does login over http, plaintext passwords over the wire. Heh.
- TedDoesntTalk 6y agoIt is also possible they wanted to shut down this service and pretending a hacker caused damage is an easy way out.
- 0df8dkdf 6y agoYeah but it would be perfect for sysadmin who just want to host python, node type of server. Too bad they are shutting down.
- bredren 6y agoWhen I saw that customers needed to access cpanel and download their backups, I was wondering how this could be described as a place for experts.