News for hackers. Stuff that matters.
Re:Equifax’s Maddening Unaccountability by empath75 on Monday September 11, 2017 @07:44PM (#15223493)
Having root on a web server shouldn't give you access to 147 million customer records.
Re:Equifax’s Maddening Unaccountability by cloakandswagger on Monday September 11, 2017 @08:02PM (#15223619)
I'm eagerly awaiting the technical details of the attack. If it turns out that their web server has 100% unfettered access to the database then I'll gladly pick up a pitchfork as well.

I'm wondering if Equifax is using Struts-provided REST for its entire architecture. If that's the case, gaining access to the web server was only the first step. From there the attacker could perform RCE on sensitive services.

Re:Equifax’s Maddening Unaccountability by sillysaurus3 on Monday September 11, 2017 @08:06PM (#15223632)
If it turns out that their web server has 100% unfettered access to the database then I'll gladly pick up a pitchfork as well.

You may want to think twice. Try to design an architecture that doesn't have that. If you think it through, you'll realize the best you can do is not to deny access, but to monitor access so that any statistical deviation in requests-per-hour will trigger an alarm. Yet nobody does that, so why should Equifax have been a pioneer in this method?

This is the uncomfortable truth that everyone is obscuring here. There wasn't a solution. Equifax got owned, and they happened to have a trove of data. Everyone now wants to see their heads roll, but you too would find yourself in the same situation if you have an RCE on your servers.

Re:Equifax’s Maddening Unaccountability by kelnos on Monday September 11, 2017 @08:19PM (#15223698)
> You may want to think twice. Try to design an architecture that doesn't have that.

We have an architecture like that where I work. It's not that hard. Our web applications have very little direct access to databases; most of it is mediated by services downstream of the web app. That's certainly not a silver bullet, but it makes it impossible to exploit a RCE vuln in the web server in such a way that it lets you have arbitrary access to the database.

Re:Equifax’s Maddening Unaccountability by jeremyjh on Monday September 11, 2017 @08:44PM (#15223837)
And let me guess. Those services give the webservers...the data that they ask for?

Once you've compromised a server, learning how to ask for the data you want is not hard. You have access to all the webserver's code, can make full dumps of communications occurring normally in the app, etc.

Re:Equifax’s Maddening Unaccountability by kelnos on Saturday September 23, 2017 @06:20AM (#15319087)
It's different, though. If my web server has direct database access, and it gets compromised, an attacker can go in and directly do "SELECT * FROM users" and get all my data in one go. If the database is behind a restrictive service, and they compromise just the web server, then they have to sit on the web server and pull each user record one at a time. And they might not even be able to, depending on search options -- like they might just be able to do "GET /users/{userId}", and if you don't know the user IDs, you get nothing (our user IDs happen to be randomly-generated 128-bit numbers, so searching through that space would take a while). Even if they can get past that hurdle, the extra traffic it would require to pull down the full database with one request per user would certainly set off alarms, and doing it slowly enough to not set off alarms would just take too long.

Of course, another option would be to use the web server compromise to then jump to the database service and compromise that box as well, but, again, more hurdles to jump means less of a chance of success.

Nothing is perfectly secure, but you can design systems with defense in both breadth and depth, and you can slow down or defeat many attackers that way. It's not about making Fort Knox, it's just about making breaking in more expensive than they can handle.

Re:Equifax’s Maddening Unaccountability by icebraining on Tuesday September 12, 2017 @07:49AM (#15226501)
The believe the usual way is to have a separate authentication service, to which you send the user's credentials and you get a token that you can use to request only that user's data.

That means, barring other exploits, you can only access the info from the users who logged in while you had control of the machine.

Re:Equifax’s Maddening Unaccountability by sillysaurus3 on Monday September 11, 2017 @08:23PM (#15223724)
Have you had a netpen? Give me access to your web server (aka an RCE) and I can probably find a way to pivot to your downstream databases.
Re:Equifax’s Maddening Unaccountability by theossuary on Monday September 11, 2017 @08:41PM (#15223817)
That's the point, you have to pivot. If you don't have to jump through another host or two to get unfettered database access from web tier, you're doing it wrong.
Re:Equifax’s Maddening Unaccountability by sillysaurus3 on Monday September 11, 2017 @08:46PM (#15223850)
It wouldn't have changed Equifax's situation at all. Everyone would still be just as outraged.

It occurs to me that maybe it might seem like pivoting is a big process that takes months. In reality you can map out an internal network within a few hours. Most people keep the servers at the edge of their network meticulously up to date. Once you're inside, you find way more old software. Not to mention creds just laying around the system in many cases since the devs don't expect anybody to be able to access them.

I feel like the worst offense Equifax could be accused of is not getting regular pentests. A netpen would have caught the outdated Struts issue, and they had money to get monthly tests. But very few of us get regular pentests.

Re:Equifax’s Maddening Unaccountability by occultist_throw on Tuesday September 12, 2017 @07:00AM (#15226280)
That's one thing the org I work for does right.

We do have monthly tests, scans, and network BGP issues. And our governmental side has a different set of scans, which also include system security scans.

Whomever the oncall is, ends up doing them during the week. It's usually pretty quick, but can turn into a slog.

Oh, and all our machines are updated appropriately, not just the border machines. There are some services we're not able to adequately update, like FreeRadius - but for each of those we review the criticality and determine if we need the resources to make it work (aka: remote priv exploit)

Re:Equifax’s Maddening Unaccountability by munin on Monday September 11, 2017 @08:43PM (#15223835)
I have done netpens. Almost always it is as you describe. Sometimes someone has their shit together and it is not.
Re:Equifax’s Maddening Unaccountability by williamscales on Tuesday September 12, 2017 @01:16AM (#15224972)
I broadly agree with you, but disagree with your claim that Equifax has no duty to innovate in security. They have one of the biggest databases of PII in private industry. I believe that bestows on them the duty to keep it safe.
Re:Equifax’s Maddening Unaccountability by biafra on Tuesday September 12, 2017 @05:07AM (#15225851)
The problem is that this information can be used for identity fraud. You should really find a solution for that problem.
Re:Equifax’s Maddening Unaccountability by Boothroid on Tuesday September 12, 2017 @04:09AM (#15225618)
There are lots of companies offering software to do exactly what you describe, that is, statistical analysis of telemetry as a way to detect anomalous behaviour e.g. LogRhythm
Re:Equifax’s Maddening Unaccountability by Iknowsecurity on Monday September 11, 2017 @08:16PM (#15223681)
Agreed
Re:Equifax’s Maddening Unaccountability by WhiteSource1 on Tuesday September 12, 2017 @09:03AM (#15226911)
How about use a WAF, and a good security-centered one, not something off the shelf just to say you have a WAF.

For one.