6 ms·
My boss installed 2 camera DVRs a year or so ago. All I did was provide 2 external IPs for the DVR and didn't worry much about it. The password was the default
by nodja 10y ago
My boss installed 2 camera DVRs a year or so ago. All I did was provide 2 external IPs for the DVR and didn't worry much about it. The password was the default "123456" that comes with these things, but since we don't care much about who sees the footage. At worse people will change the password and we need to factory reset (never happened).
Last week the internet for the whole office was going down. Weirdly I could remote in, but the DNS was not working. I first thought our DNS server crapped out but it was working fine. After some investigation, the firewall was not responding. After rebooting the firewall, it would work fine for a while, but go down shortly after.
Long story short: the DVRs my boss got (unbranded) come with telnet access on some nonstandard port. A botnet got access to it and was making thousands of dns and telnet queries, overloading the firewall.
- cptskippy 10y agoYou mapped all ports from the external IPs to the DVR?
- 300bps 10y agoI read it as he gave the DVRs external IP adresses without NATing them to internal addresses.
- nodja 10y agoThe firewall has a 1 to 1 NAT feature. It maps an external ip to an internal one. I had no firewall policies set. Rookie mistake, I've blocked all outgoing access and only allow port 80 and the video port incoming.
- tlrobinson 10y agoI'd suggest blocking all incoming traffic except a VPN. It's not that hard to set up a VPN. Even better if the high-risk devices like cameras are on a separate VLAN from critical stuff.
- mrpippy 10y agoI wouldn't even allow port 80 incoming from the internet. Even if the web interface appears to have authentication on it, there may be vulnerable CGIs. They left a telnet interface wide open--do you trust them to write a secure website?
- zrm 10y agoBlocking outgoing traffic is generally a mistake. It prevents the device from retrieving updates, assuming there are any. And if there are no updates then there had better also be no undiscovered or unpatched vulnerabilities, which isn't likely.
- throwaway729 10y ago1. Just because you don't mind if people have RO access doesn't mean you should use default passwords. Privilege escalation is a thing, and is often far easier than getting a foot-hold. The number of developers who "don't bother with" disciplined input validation in areas that are supposed to be accessible only be trusted users is staggering. 2. Don't expose entire hosts to the internet. Punch only necessary holes in the firewall. That way the device at least needs to phone home in order to cause a problem like this. 3. Do you have a similar policy with other hosts are your network? I.e., do you figure "well that's inside the firewall so we don't need to worry about encryption/timely application of security updates/resetting default passwords/etc."? If you're not 100% sure (or if the answer is "no"), you now have a lot of cleanup work to do.
- jdavis703 10y agoNot the OP but I just was in a similar conversation: "Oh it's behind a firewall, so let's just disable the extra security (passwords, HTTPS, etc)." The idea of defense in depth is very important, but many people seem to think one security layer is enough sadly.
- tiglionabbit 10y agoSysadmins at places I've worked have used "defense in depth" as an excuse to create layer upon layer of frustrating hoops to jump through in order to get any work done. I'm pretty sick of it. One perfect layer is vastly preferable.
- rconti 10y agoDo you have to open a firewall rule request for every src:dst host/port/protocol pair? Even for 3rd party applications you don't think you should have to understand, they should "just work"? Do you have the least privilege necessary at any given point in time? If not, you have relatively little to complain about. And, I'll add, if you're a developer, we'd all prefer you just crank out perfect code. That way we never have deployment issues, get paged for outages, never have to work around poor architecture or assumptions that don't scale or aren't load tested. thanks!
- forrestthewoods 10y ago> At worse people will change the password and we need to factory reset Turns out this was a false assumption. We're all learning this the hard way. All internet enabled devices need to ship with a unique, resettable default password. Many ISP provides modems/routers do this now and it's great.
- hackuser 10y ago> We're all learning this the hard way. I'd be very disappointed if most HN readers are still learning this.
- rconti 10y agoThey could also use the device to pivot into your network. Once you've compromised the DVR, they can go wherever they want.
- rasz_pl 10y agoGreat example. In perfect world ISP should drop you in addition to charging $penalty$ for breaking its ToS. This would result in someone from IT being fired (maybe you) and company starting to actually care about security from now on.
- steinystein 10y agoBut that's mean...
- baq 10y agothis sounds like a horror story from r/sysadmin.
- minxomat 10y agoIn addition to openftp4[1] (where some folks already discovered their own server[2]), I recently published c4[3], one of the more exhaustive list of public facing IP cams that use the default password. Many of them can even be controlled remotely. The majority of them is vulnerable against simple Perl exploits. [1] - http://git.io/ftp http://git.io/ftp [2] - https://www.reddit.com/r/sysadmin/comments/53cor1/someone_just_posted_every_open_ftp_server_on_ipv4/d7swn46/ https://www.reddit.com/r/sysadmin/comments/53cor1/someone_ju... [3] - https://github.com/turbo/c4 https://github.com/turbo/c4
- kuschku 10y agoThanks for destroying the web, btw! Open FTP servers are an asset, not a risk, as they're ideal for distributing downloads, uodates, packages, etc. Thanks to your efforts, many groups which used to provide all downloads via HTTP and FTP have since stoppes the FTP access, and don't provide wget-able HTTP URLs either. Congratulations, now I have to run a full browser on my servers to be able to download many packages.
- minxomat 10y ago> Thanks for destroying the web, btw! Works for me. > Open FTP servers are an asset, not a risk, as they're ideal for distributing downloads, uodates, packages, etc. I agree, I use many of them frequently. > Thanks to your efforts, many groups which used to provide all downloads via HTTP and FTP have since stoppes the FTP access, and don't provide wget-able HTTP URLs either. I can't confirm that. Quite the opposite. The number of functional servers actually increases between oftp4 scans. The current one looks like the number is rather increasing. Public FTPs have always been public. That's their purpose - as you said. Their addresses are listed in many public lists. I don't get how an FTP that is publicly listed and serves the public would suddenly cease operation because it's URL is in yet another public list.
- kuschku 10y ago> because its URL is in yet another public list. Not because the URL is in the list directly – but the way the list is created seems like public shaming, and I’ve seen unknowing managers go "I’ve read somewhere on the internet that there’s a list of open servers, and I found ours on it, everyone can hack us, remove it now!". So, that’s the problematic effect – with the way the list is presented, especially the way it seems to publicly shame them (and the "fix it to get off the list" statement, too), can be counterproductive.