News for hackers. Stuff that matters.
Re:Personal and social information of 1.2B people discovered... by jillesvangurp on Friday November 22, 2019 @01:47PM (#21608628)
I was at an Elasticsearch meetup yesterday where we had a good laugh about several similar scandals in Germany recently involving completely unprotected Elasticsearch running on a public IP address without a firewall (e.g. https://www.golem.de/news/elasticsearch-datenleak-bei-conrad..., in German). This beats any of that.

Out of the box it does not even bind to a public internet address. Somebody configured this to 'fix' that and then went on to make sure the thing was reachable from the public internet on a non standard port that on most OSes would require you to disable the firewall or open a port. The ES manual section for network settings is pretty clear about this with a nice warning at the top: "Never expose an unprotected node to the public internet."

Giving read access is one thing. I bet this thing also happily processes curl -X DELETE "http:<ip>:9200/*" (deletes all indices). Does it count as a data breach when somebody of the general public cleans up your mess like that?

In any case, Elasticsearch is a bit of a victim of its own success here and may need to act to protect users against their own stupidity since clearly masses of people who arguably should not be taking technical decisions now find it easy enough to fire up an Elasticsearch server and put some data in it (given the amount of companies that seem to be getting caught with their pants down).

It's indeed really easy to setup. But setting it up properly still requires RTFMing, dismissing the warning above, and having some clue about what ip addresses and ports are and why having a database with full read write access on a public ip & port is a spectacularly bad idea.

Re:Personal and social information of 1.2B people discovered... by jerrac on Friday November 22, 2019 @01:59PM (#21608751)
I've been using ES off and on since before 1.0 came out. It has always baffled me that ES doesn't require a username and password by default.

ES is a database that has to exist on a network to be usable. Heck, it expects that you have multiple nodes, and will complain if you don't. So one of the first things you do is expose it to the network so you can use it.

Yes, it takes some serious incompetence to not realize you need to secure your network, but why in the world would you not add basic authentication into ES from the start? I'd never design a tool like a database without including authentication.

I am serious about my question. Could anyone clue me in?

Re:Personal and social information of 1.2B people discovered... by jillesvangurp on Friday November 22, 2019 @02:30PM (#21609119)
It has to exist on a private network behind a firewall with ports open to application servers and other es nodes only. Running things on a public ip address is a choice that should not be taken lightly. Clustering over the public internet is not a thing with Elasticsearch (or similar products).

If you are running mysql or postgres on a public ip address it would be equally stupid and irresponsible regardless of the useless default password that many people never change unless you also set up TLS properly (which would require knowing what you are doing with e.g. certificates). The security in those products is simply not designed for being exposed on a public ip address over a non TLS connection. Pretending otherwise would be a mistake. Having basic authentication in Elasticsearch would be the pointless equivalent. Base64 (i.e. basic authentication over http) encoded plaintext passwords is not a form of security worth bothering with. Which is why they never did this. It would be a false sense of security.

At some point you just have to call out people for being utter morons. The blame is on them, 100%. The only deficiency here is with their poor decision making. Going "meh http, public IP, no password, what could possibly go wrong?! lets just upload the entirety of linkedin to that." That level of incompetence, negligence, and indifference is inexcusable. I bet, MS/Linkedin is considering legal action against individuals and companies involved. IMHO they'd be well within their rights to sue these people into bankruptcy.

Re:Personal and social information of 1.2B people discovered... by z3t4 on Friday November 22, 2019 @04:28PM (#21610269)
Software should be secure by default. Don't blame the user.

mySQL in comparison wont even let you install without setting a root password. And it only listen on localhost/unix-socket by default. Then you need to explicitly add another user if you want to allow it to login from a non local ip. I don't think it's even possible - to both set a blank root password and allow it to login from a public IP.

So you really think the solution is to blame some low level worker, and sue him/her? The blame should always be on the people in charge, usually the CEO, who set the bar for engineering practices, proper training, etc, or the lack of.

Re:Personal and social information of 1.2B people discovered... by xkcd-sucks on Saturday November 23, 2019 @02:00PM (#21615795)
While I don't think blaming labor is constructive or ethical, it seems like most tools pose danger to users in proportion to utility. For example, cars can squish people, electricity can fry people, and power tools can remove limbs.

Typically, people start out using knives and bicycles as children, learn through experience that crashing and getting cut hurt, and carry those lessons forward when they start using tablesaws and cars later in life. How does this apply to elasticsearch? I have no idea.

Re:Personal and social information of 1.2B people discovered... by z3t4 on Sunday November 24, 2019 @07:54AM (#21620121)
We could teach our children that software is very dangerous, especially databases. Or we could make software secure by default. But we also need to teach the user how to use the software properly. Learning by getting hurt is effective, but then we also need to have playgrounds.
Re:Personal and social information of 1.2B people discovered... by zerocrates on Friday November 22, 2019 @05:20PM (#21610737)
That MySQL stuff is all quite recent... up until 5.7 (?, one of the most recent releases, anyway) there's no root password by default and running `mysql_secure_installation` is a common (but not mandatory) step to, well, secure the installation and set a root password. I think MariaDB still works this way? Not sure.

I'm not aware of "bind to localhost" being the default, either. The skip-networking setting to only allow local socket connections is definitely not the default, and I'm pretty sure the default is still to bind to all interfaces.

Re:Personal and social information of 1.2B people discovered... by z3t4 on Saturday November 23, 2019 @08:36AM (#21614027)
I installed mySQL a couple of months ago on a Ubuntu server, and got asked to set a root password. I've also installed mySQL many times on Windows. Secure install is the default. And it doesn't annoy me a bit. I like my software to be secure by default.
Re:Personal and social information of 1.2B people discovered... by m00x on Friday November 22, 2019 @07:07PM (#21611415)
This is ridiculous.

Software should be built in the best method of delivering maximum value to its users. A trade-off for usability can be made for certain cases like ease-of-use for new software. Redis was part of this a while ago http://antirez.com/news/96.

Engineers should know their tools before using them. It's a huge part of our jobs. You could introduce a ton of other vulnerabilities in software: XSS, SQL injections, insecure cryptography. Security is part of our job and matters we must know.

You don't blame a plane for a pilot mistake that was meant to be part of his training. Engineers in every other sector are responsible for their mistakes, we should be too.

Also, you don't sue the worker, you sue the company.

Re:Personal and social information of 1.2B people discovered... by CydeWeys on Friday November 22, 2019 @08:05PM (#21611696)
"Software should be built in the best method of delivering maximum value to its users."

Yes, and defaulting to insecure, thus repeatedly causing huge data breaches, is the exact opposite of delivering maximum value to users. It's delivering maximum liability.

Re:Personal and social information of 1.2B people discovered... by sailfast on Friday November 22, 2019 @09:02PM (#21611925)
I would argue that the single command to begin using the application and the ease of on boarding / querying data was a huge factor in expanding its usage. Elastic optimized for initial spin-up and getting things running fast. It works really well! Until you load it full of data on a public IP, that is.
Re:Personal and social information of 1.2B people discovered... by PeterisP on Saturday November 23, 2019 @06:08AM (#21613543)
That single command to spin up the application can easily generate and show a copyable random secret required to use it, so that you can use easily but there's no option to use it that insecurely.
Re:Personal and social information of 1.2B people discovered... by miohtama on Friday November 22, 2019 @07:19PM (#21611479)
Onions. You need layers and defense in depth. Because even the best humans make mistakes and it is inhuman to assume perfectionism. Never rely on just one engineering feature.
Re:Personal and social information of 1.2B people discovered... by lonelappde on Friday November 22, 2019 @09:59PM (#21612147)
> You don't blame a plane for a pilot mistake that was meant to be part of his training

Did you miss that Boeing is right now risking bankruptcy for doing exactly this?

Re:Personal and social information of 1.2B people discovered... by bjornjaja on Friday November 22, 2019 @08:10PM (#21611723)
Honestly a lot of the problem is: people aren’t studying systems engineering OR security. Look at all the “learn to code in 21 days” BS and all the code academies.

There’s so much emphasis on abstracting away the systems with cloud-this and elastic-that and developers don’t know much about general systems engineering.

My recommendation to software developers: take the Network+ and Security+ exams at the bare minimum.

Honestly as much as people complain about process getting in the way of things, there should be checks and balances at any business that deals with personal information. Finance institutions are heavily regulated—these fkers should be held accountable.

Re:Personal and social information of 1.2B people discovered... by RidingPegasus on Friday November 22, 2019 @10:08PM (#21612185)
> "Engineers"

Maybe the hint is right there in your comment. Nearly all the people deploying these nodes aren't engineers in the slightest despite having someone given them such a title.

Re:Personal and social information of 1.2B people discovered... by NicoJuicy on Friday November 22, 2019 @10:45PM (#21612317)
It's not always engineers that use them.

Sometimes software managers have the sudden need to show statistics and other things.

Yeah, that was fun...

Re:Personal and social information of 1.2B people discovered... by lonelappde on Friday November 22, 2019 @10:00PM (#21612150)
If security is so important, why should we accept database developers who don't understand that?
Re:Personal and social information of 1.2B people discovered... by kbr2000 on Saturday November 23, 2019 @09:58AM (#21614412)
Because... they dance the devops dance with their devop hats on! Security problems can be swiftly danced around until they actually surface, and can then be handled in the next round of "continuous delivery". It's also smart to postpone solving most issues until after they occur, so sales can continue bragging about "continuous improvement".
Re:Personal and social information of 1.2B people discovered... by jerrac on Friday November 22, 2019 @03:23PM (#21609657)
So, after some thought, here's why I don't consider it pointless to have basic auth built in.

It would keep ES from being completely open. If you wanted to get in, you'd have to comprise some part of the network that would let you read the username and password.

The way it is now, anyone can do a scan for port 9200 and get full access right away.

It is also important to have a username and password, even on secured networks. My test instance is on an internal network, and protected by both network and host firewalls, but I still make sure to secure it beyond that.

Basic auth would not provide a false sense of security. It is simply a very basic part of overall security. Not having it is a mistake.

Re:Personal and social information of 1.2B people discovered... by GhettoMaestro on Friday November 22, 2019 @04:24PM (#21610233)
> At some point you just have to call out people for being utter morons. The blame is on them, 100%. [...]

Your attitude is a symptom of a broader issue that plagues this industry: Indifference to risk*probability. If you don't ship software with "secure defaults" (depending on the threat/attack model), you essentially are handing out loaded shotguns, then blaming the "dumb" user when they inevitably point it at their foot and click the trigger. Easy solution: Don't hand out the gun loaded -- make the user do specific actions that enable the usage. Yeah, it creates some friction to first time deployment, but that's a secondary concern to having your freaking DB leaking all over the place.

Re:Personal and social information of 1.2B people discovered... by outworlder on Friday November 22, 2019 @04:31PM (#21610300)
But ES doesn't hand over a loaded gun . Someone went out of their way to load the gun up.
Re:Personal and social information of 1.2B people discovered... by GhettoMaestro on Friday November 22, 2019 @04:38PM (#21610366)
Bullshit.

If firing up a piece of software creates an unauthenticated, unprotected (non-TLS) endpoint to read-write data, that's a loaded gun. That is PRECISELY the default behavior of ES.

ES has jacked around for years by making TLS and other standard security features premium. To that, I say this: Screw ES and their bullshit business model. Their business model is a leading cause to dumbasses dumping extremely sensitive PII data into a DB that is unprotected - those same folks aren't going to go the extra mile to secure the DB, either by licensing or 3rd party bolt-ons.

Thus, why it must be shipped secure by default. Anything less is a professional felony, in my eyes. Also, screw ES again, in-case I wasn't clear.

Re:Personal and social information of 1.2B people discovered... by YawningAngel on Friday November 22, 2019 @06:01PM (#21611032)
Is it a secondary concern, though? As a startup, uptake is as vital as oxygen
Re:Personal and social information of 1.2B people discovered... by wildmusings on Friday November 22, 2019 @07:34PM (#21611567)
Tort law is going to catch up to software soon enough and people will be held accountable for negligently creating or deploying software that they should have known would cause harm.

The fact that someone else down the chain should have known better is not a perfect defense. If that misuse was foreseeable and you didn’t do enough to prevent or discourage it, then you can still be held liable.

Re:Personal and social information of 1.2B people discovered... by geofft on Friday November 22, 2019 @07:04PM (#21611400)
If startups prioritize their growth over the good of society, isn't the logical conclusion that startups are a threat to society?
Re:Personal and social information of 1.2B people discovered... by glloydell on Saturday November 23, 2019 @04:51PM (#21616835)
They're not a startup.
Re:Personal and social information of 1.2B people discovered... by late2part on Friday November 22, 2019 @04:54PM (#21610522)
maybe. but there's always this....

http://www.team.net/mjb/hawg.html

Re:Personal and social information of 1.2B people discovered... by cobookman on Friday November 22, 2019 @02:59PM (#21609440)
There's something called defense in depth.

Even with ES deployed in an environment with proper network firewall rules...etc, I'd still want some sort of authentication/RBAC

Re:Personal and social information of 1.2B people discovered... by jwandborg on Friday November 22, 2019 @06:39PM (#21611247)
"Defense in depth" sounds, to me, like a phrase to justify multiple layers of imperfect security.

A single layer of cloth might not hold water, adding more layers of cloth may hold water for longer, but it's probably more cost effective to start with the right material.

Re:Personal and social information of 1.2B people discovered... by peteretep on Friday November 22, 2019 @08:47PM (#21611870)
> "Defense in depth" sounds, to me, like a phrase to justify multiple layers of imperfect security.

That’s absolutely correct! But you seem to be missing the fact that _all_ layers of security are always imperfect.

Re:Personal and social information of 1.2B people discovered... by bound008 on Friday November 22, 2019 @04:38PM (#21610372)
This is a fallacy of distributed systems. Never trust the network. Best case you get packets destined for somewhere else, worst case you your network segmented wasn't actually segmented.
Re:Personal and social information of 1.2B people discovered... by blondin on Friday November 22, 2019 @07:51PM (#21611638)
i agree with GP here. ES is to blame here. not long ago apache airflow had a similar vulnerability discovered about not having sensible authentication defaults. the reasoning on their mailing list was eerily similar to those defending ES here. same arguments (iirc)

history is our greatest teacher. i think ES will end up doing what that team did: they agreed to provide sensible & secure defaults.

Re:Personal and social information of 1.2B people discovered... by tibbon on Friday November 22, 2019 @05:12PM (#21610675)
Security in depth. If I compromise one part of your network, I shouldn't compromise it all.
Re:Personal and social information of 1.2B people discovered... by jeltz on Saturday November 23, 2019 @05:48AM (#21613487)
PostgreSQL does the following things by default to prevent this:

    1. Only listen to localhost and unix sockets
    2. Not generate any default passwords
So the only way to connect to a default configured fresh installation of PostgreSQL is via UNIX sockets as the postgres unix user. Where PostgreSQL is lacking is that it is a bit more work than it should be to use SSL.
Re:Personal and social information of 1.2B people discovered... by sedachv on Friday November 22, 2019 @08:07PM (#21611708)
> It has to exist on a private network behind a firewall with ports open to application servers and other es nodes only.

Have you ever heard of the end-to-end principle, IPv6, or number 4 of the eight fallacies? http://nighthacks.com/jag/res/Fallacies.html

Re:Personal and social information of 1.2B people discovered... by LaGrange on Friday November 22, 2019 @02:41PM (#21609242)
> It has to exist on a private network behind a firewall with ports open to application servers and other es nodes only. Running things on a public ip address is a choice that should not be taken lightly. Clustering over the public internet is not a thing with Elasticsearch (or similar products).

I've met at least one cloud provider in the past (small Dutch thing) that provides _only_ public IP addresses. They do have customers, though one less now. Clustering over the public Internet is a thing. It shouldn't, but I could say the same thing about this website and yet here we are.

Re:Personal and social information of 1.2B people discovered... by lis on Saturday November 23, 2019 @11:46AM (#21614973)
Heroku does the same in non-enterprise tiers. Their databases are accessible by the public internet with no option to limit it to your own dynos.
Re:Personal and social information of 1.2B people discovered... by jillesvangurp on Friday November 22, 2019 @04:41PM (#21610405)
Well, lets agree it's a sad thing. Very sad.
Re:Personal and social information of 1.2B people discovered... by LaGrange on Saturday November 23, 2019 @05:59AM (#21613524)
Oh sure, but sad things happen. And they can be even messier: I had a Jenkins instance "made" public because a sysadmin new to a hosting provider forgot to remove the public IP that gets automatically assigned to new things. We were lucky, being fairly sure nothing found it before I realised, but it was a strong lesson learned:

Any network may become public by accident unless you go to great lengths to make sure it doesn't. Configurations change and mistakes are made even by seasoned people. People bring devices. Unless there's an air gap, people's devices may be hacked and let stuff through. Put authentication and anti-CSRF on _all_ your stuff, always.

Re:Personal and social information of 1.2B people discovered... by anaphor on Friday November 22, 2019 @05:24PM (#21610767)
> Clustering over the public internet is not a thing with Elasticsearch

It is, sort of, https://www.elastic.co/guide/en/elasticsearch/reference/curr...

But it's not a feature you'd be using without a really good reason IMO.

Re:Personal and social information of 1.2B people discovered... by jerrac on Friday November 22, 2019 @02:36PM (#21609190)
That does give me some food for thought. Not sure I agree a username and password is pointless though.
Re:Personal and social information of 1.2B people discovered... by Thorrez on Saturday November 23, 2019 @12:16AM (#21612611)
>Having basic authentication in Elasticsearch would be the pointless equivalent.

Instead of that they could implement a PAKE. That would provide security with no certificates.

Re:Personal and social information of 1.2B people discovered... by iforgotpassword on Saturday November 23, 2019 @03:09AM (#21613030)
Honestly, I as a user don't give a shit what a good engineer should so. All I see is that my personal data gets leaked left and right by elasticsearch and not mysql or postgres. But its fanbois just keep shifting blame instead of reflecting about reality and going "hey yeah maybe we should try do do something about it on our end". So fuck ES.
Re:Personal and social information of 1.2B people discovered... by sebsito on Friday November 22, 2019 @04:35PM (#21610336)
I agree. Every anti-moronic default adds friction. I love that I can play with ES quickly via simple URL without any auth.
Re:Personal and social information of 1.2B people discovered... by oblio on Friday November 22, 2019 @04:47PM (#21610458)
That's how we got PHP, Javascript, Visual Basic, MySQL (before version 5), Mongo.

You'd think that at some point we'd understand that there's way more morons out there than sensible people.

Re:Personal and social information of 1.2B people discovered... by rbanffy on Saturday November 23, 2019 @07:36AM (#21613809)
It can still bind to localhost or a local socket without auth.
Re:Personal and social information of 1.2B people discovered... by 0ld on Friday November 22, 2019 @03:48PM (#21609905)
> It has always baffled me that ES doesn't require a username and password by default.

because auth was a part of their paid service (and by paid i mean 'very goddamned expensive') until like half a year ago when they made it free because of freshly emerged amazons opendistro free auth plugin

Re:Personal and social information of 1.2B people discovered... by ibirman on Friday November 22, 2019 @02:21PM (#21609025)
They offer security as a paid feature.
Re:Personal and social information of 1.2B people discovered... by jillesvangurp on Friday November 22, 2019 @02:35PM (#21609178)
Actually it comes for free now with the standard ES distribution. https://www.elastic.co/blog/security-for-elasticsearch-is-no...
Re:Personal and social information of 1.2B people discovered... by ThePowerOfFuet on Friday November 22, 2019 @03:55PM (#21609976)
>Security for Elasticsearch is now free

What a horrific title. Even simply typing that should have been a blinking neon sign to them that they had their priorities in the wrong order.

Re:Personal and social information of 1.2B people discovered... by lmilcin on Friday November 22, 2019 @02:49PM (#21609329)
That's incorrect.

The usual way of using this service is to have backend network configured that connects your services that is not available from outside (ie you have to traverse through services to reach it).

The so called "security" is just a paid feature for companies that want to use ElasticSearch but want to use it in "legacy" way because, presumably, they don't have people to design it correctly.

Re:Personal and social information of 1.2B people discovered... by dtech on Friday November 22, 2019 @03:44PM (#21609867)
That's still really insecure, because it means that as soon as someone manages to gain any access to that network or any of the services on that network has a security issue your database is wide open.

That means that if someone manages to get access to the. I'd say public internet with proper (encrypted) password auth is more secure than that.

Re:Personal and social information of 1.2B people discovered... by lmilcin on Friday November 22, 2019 @09:00PM (#21611919)
If attacker has access to app server it is already game over. App server typically already has access to all of the data.

The pods are akin to localhost networking where there is only one externally available application with multiple networked components.

Re:Personal and social information of 1.2B people discovered... by rbanffy on Saturday November 23, 2019 @08:47AM (#21614071)
That's true, but there are usually multiple ways to compromise protected networks. You still need to protect the database against attacks that don't go through the app server.
Re:Personal and social information of 1.2B people discovered... by m00x on Friday November 22, 2019 @06:57PM (#21611364)
If an attacker gets a hold of your app server, they will be able to get the connection details for that DB, including the username/password.

Having a password adds a small layer of protection to databases that the affected app wasn't meant to connect to.

It adds some protection in that case, but the user should use best judgement if it's worth doing.

Re:Personal and social information of 1.2B people discovered... by lacker on Friday November 22, 2019 @02:54PM (#21609391)
If you set up elasticsearch on a cloud service like AWS, by default your firewall will prevent the outside world from interacting with it, and no authentication is really necessary. If you do use authentication, you probably wouldn't want username+password, you would probably want it to hook into your AWS role manager thing. So to me, username+password seems useful, but it isn't going to be one of the top two most common authentication schemes, so it seems reasonable that it should not be the default.

MongoDB also by default does not have username+password authentication turned on.

I think defaulting to username+password is a relic of the pre-cloud era, and nowadays is not optimal.

Re:Personal and social information of 1.2B people discovered... by thegeomaster on Friday November 22, 2019 @02:59PM (#21609433)
I don't see why, though. It's much safer to start with a secure setup and then have the user disable the security explicitly (hopefully knowing what they're doing). Yes, username/password auth is not that common, but isn't it better than having no auth at all?
Re:Personal and social information of 1.2B people discovered... by outworlder on Friday November 22, 2019 @04:39PM (#21610382)
Ok, let's say username/password is mandatory and enabled by default. I see to options.

Option one, they generate an unique password for every installation – non trivial to do, because at which point do you do it? It can't be before a cluster is formed, as you'll have a split brain generating a bunch of credentials. If you do it afterwards, then there is a period of time when you cluster is not yet protected. Worse yet, unprotected and handshaking authentication. So you don't do that.

You could make the user input the credentials. What is to prevent them from creating weak credentials? And worse, they have to do that for every node (or at least the masters). Not a good experience and lost credentials will probably be the subject of a good many support calls.

So most products don't do that. What they do is default passwords. Which is arguably no security at all and doesn't protect anything. It may make it just a tiny bit easier to do the right thing afterwards (by changing to better credentials). Still, there's a period of time while the cluster is unprotected (default credentials are as good as no credentials).

Authentication does little to protect against the sort of people who are exposing databases to the public. If it is easily disabled, then they will be doing just that. Because they are already doing that by forcing databases to bind to publicly accessible interfaces.

Re:Personal and social information of 1.2B people discovered... by thegeomaster on Friday November 22, 2019 @06:13PM (#21611112)
I'd say option two is the only one viable. You deny access to the service until credentials are set by the user. You print huge warning labels while the credentials are set by the user to remind them of the possible consequences of setting weak credentials.

Yes, lost credentials will be subject of many support calls. Then, it boils down to your priorities. If you care about minimizing support calls, then sure, leave everything open to everyone. It will surely result in fewer access problems.

On the other hand, if your motivation is actually preventing your end-users from doing stupid things, it makes sense to just do the most conservative thing as default. Let the user change to the more liberal option, but not before informing them of all dangers that might befall them in that case.

I refuse to believe in this narrative of the end-user just being a stupid automaton who does not have any agency, and that any default imposed upon them will just result in them overriding the default with their terrible practices and ideas. I think there is a possibility of education and risk reduction.

Re:Personal and social information of 1.2B people discovered... by jerrac on Friday November 22, 2019 @03:31PM (#21609738)
I'd argue that the "pre-cloud" era is still going strong. And that is a good thing. My workplace has it's own data center. There are some downsides, but I prefer it.

So username+password really is needed. And should be included by default.

Also, I'd expect the same of something like MongoDB. That it doesn't have that by default is just baffling.

Re:Personal and social information of 1.2B people discovered... by dmos62 on Friday November 22, 2019 @02:58PM (#21609421)
Password auth over HTTP is horrible. Short of binding a public IP address to your instance, basic auth without HTTPS setup is probably the worst thing you can do.
Re:Personal and social information of 1.2B people discovered... by paco_sinbad on Friday November 22, 2019 @03:34PM (#21609769)
It's a marketing ploy by ES.

They aggregated the data and published it so that the viral breach would spread their name around because all publicity is good publicity.

Just riffing of course.

Re:Personal and social information of 1.2B people discovered... by jschwartzi on Friday November 22, 2019 @06:16PM (#21611134)
This addresses entirely the wrong question. By looking at it as a technical problem you're completely missing the broader ethical problem. Why was anyone allowed by law to amass this amount of data? And why did PDS not take the security and privacy concerns of 1.2 billion people seriously enough to ensure the data was handled correctly? They obviously thought it was valuable enough to amass a huge database. Do they sell this to just anyone? If not, who can buy access to this data? How much does it cost, and what steps are involved in doing so?

This makes me want to talk to a lawyer.

Re:Personal and social information of 1.2B people discovered... by Xylakant on Friday November 22, 2019 @02:00PM (#21608772)
> Out of the box it does not even bind to a public internet address.

Bind to all interfaces used to be the default in 1.x - it changed pretty much because people were footgunning themselves.

Coupled with lack of security in the base/free distribution, that made for a dangerous pitfall. At least now security is finally part of the free offering, but the OSS version still comes with no access control at all.

Re:Personal and social information of 1.2B people discovered... by lmilcin on Friday November 22, 2019 @02:51PM (#21609356)
You typically use these in pods which share networking but are not available from outside.

It doesn't matter then if you bind it to 0.0.0.0.

Re:Personal and social information of 1.2B people discovered... by dharmab on Friday November 22, 2019 @02:57PM (#21609414)
At the time it was common to deploy on bare hosts. Deploying ES into a network namespace isn't even the most common use case today.
Re:Personal and social information of 1.2B people discovered... by Xylakant on Saturday November 23, 2019 @03:51AM (#21613161)
That still puts you a single firewall mistake away from disaster. It also places a lot of trust into the applications and hosts that can access ES on a network level: They get full access with no control at all.

To add on that: No security also means no TLS, neither in the cluster communication, no TLS speaking to the client etc.

Re:Personal and social information of 1.2B people discovered... by cookiecaper on Friday November 22, 2019 @02:23PM (#21609049)
I've come across several such ES instances that are 100% exposed to the world without even trying, and ES is by no means the first tool to have this problem. People are never going to stop doing this. Making it annoyingly difficult within ES just weakens them such that some other "wow it's so easy" search product will be better positioned to eat their lunch.
Re:Personal and social information of 1.2B people discovered... by czbond on Friday November 22, 2019 @02:40PM (#21609230)
ES, Mongo, Redis used to be some of the easiest targets for production data (security vuln wise). Deployed by SWE's usually, with products that were early versions, and didn't have access control by default.
Re:Personal and social information of 1.2B people discovered... by ryan_lane on Friday November 22, 2019 @03:25PM (#21609682)
ES's practice of making its security a proprietary paid for product is the cause for these kinds of things. It's a shitty practice, and this is one of the reasons I'm glad AWS forked it.
Re:Personal and social information of 1.2B people discovered... by staticassertion on Friday November 22, 2019 @06:41PM (#21611259)
Other databases learned that not requiring a user/password upon install is completely irresponsible. ES and other dbs need to catch up ASAP, it's ridiculous.

Documentation is not security. If you need to "RTFM" to not be in an ownable state it's ES's fault.

Re:Personal and social information of 1.2B people discovered... by jwandborg on Friday November 22, 2019 @06:56PM (#21611362)
Trusting software you install to be secure is ridiculous and completely irresponsible, especially if you did not pay for someone else to take the blame.

The only thing you can do to secure your software is to restrict its communication channels. Once you've secured the communication channels, the software auth is decorative at best.

Re:Personal and social information of 1.2B people discovered... by staticassertion on Friday November 22, 2019 @07:12PM (#21611451)
That doesn't absolve ES of providing basic security defaults.
Re:Personal and social information of 1.2B people discovered... by throwaway5752 on Friday November 22, 2019 @03:52PM (#21609944)
Wasn't this exact same thing a huge scandal just a few years ago for Mongo on Shodan?

I can't believe anyone shipping a datastore could let it happen after that. Doesn't postgresql still limit the default listen_address to local connections only? Seems like the best approach. On a distribute store consistency operations between nodes should go on a different channel than queries and should be allowed on a node by node basis at worst. At least at that point, it requires someone who should know better to make it open to the world. Even just listening for local connections passwordless auth should never be a default.

Re:Personal and social information of 1.2B people discovered... by achillean on Friday November 22, 2019 @06:19PM (#21611148)
Yes, and similar issues still exist with public MongoDB instances even though the defaults are secure.
Re:Personal and social information of 1.2B people discovered... by healsjnr1 on Saturday November 23, 2019 @07:00AM (#21613695)
This assumes it was incompetence and not done intentionally.

My understanding is neither company is owning this data set and there is an assumption that it is a third company that has either legally or illegally obtained the data and is using it for their own services.

Another option is that the data was exfiltrated by a loose group of people who wanted this to be freely available on a random ip. Know the ip, get sick access to a trove of PII. No logins, no accounts, no trace.

Welcome to the early 90s internet.

Re:Personal and social information of 1.2B people discovered... by codetrotter on Friday November 22, 2019 @07:25PM (#21611515)
> It's indeed really easy to setup. But setting it up properly still requires RTFMing, dismissing the warning above

I would bet that in a lot of cases, people that configure their servers like in the OP just don’t read the official docs at all.

Stack Overflow, Quora, etc. are great places to get answers, because of the huge amount of questions that have already been asked and answered there.

But when people rely solely on SO, Quora, blog posts and other secondary, tertiary, ..., nth-ary sources of information, Bad Stuff will result, because of all the information that is left unsaid on Q&A sites and in blog posts. (Which is fine on its own – the problem is when the reader is ignorant about the unsaid knowledge.)

> and having some clue about what ip addresses and ports are and why having a database with full read write access on a public ip & port is a spectacularly bad idea.

Again, not necessarily, for the same reason as above.

But even if they did, it is a sad fact that a lot of people dismiss concerns over security with the kinds of “counter-arguments” that I am sure we are all too familiar with. :(

Thankfully though, we are beginning to see a shift in legislation being oriented towards protecting the privacy of people whose data is stored by companies.

Ideally, the fines should cause businesses to go bankrupt if they severely mishandle data about people. Realistically that is not what happens. For the most part they will get but a slap on the wrist. But it’s a start.

Companies that can’t handle data securely, have no business handling data at all.

Re:Personal and social information of 1.2B people discovered... by Scoundreller on Friday November 22, 2019 @07:47PM (#21611619)
My favourite was Bitomat.pl's loss of 17k bitcoins in 2011 because they restarted their EC2 instance.

I understand that the "ephemeral" nature of EC2 was in the documentation, but ESL speakers may have glossed over the significance of a word they didn't fully comprehend.

https://siliconangle.com/2011/08/01/third-largest-bitcoin-ex...

Re:Personal and social information of 1.2B people discovered... by danmur on Saturday November 23, 2019 @12:14AM (#21612604)
Not to say this is what people are doing, but I don't think it requires much knowledge to run under Docker, and it's pretty easy to expose it to the public internet that way.
Re:Personal and social information of 1.2B people discovered... by Quekid5 on Friday November 22, 2019 @03:47PM (#21609901)
Incompetence and indifference will be the ruin of us all.

This is just another symptom of the Principal-agent problem writ large.