News for hackers. Stuff that matters.
Re:How would you architect a “standard” web application to p... by patio11 on Tuesday July 21, 2015 @11:32PM (#9927591)
In most cases you assume that if hackers get root on the web application server you lose everything else in the data center, including the database. There are over a hundred things you have to do right to prevent this, and if you miss one, you lose.

I know that isn't the answer you wanted, but it's the truth, so: don't lose your web server.

In certain regulated industries you'll be encouraged to do some theatre like separating the database from the server on a different network, putting a firewall between them, yadda yadda. Which is all great, but the web server has to be able to talk to the database in some fashion, and that's game over if the web server can say the right things. If you assume the ability of the attacker to coerce the web server into saying any of the range of things the web server is authorized to say, that's usually "pretty bad news" with regards to what you have in your DB.

Concrete example: suppose I have the web server connect to the DB with a relatively limited privileged user, which is one thing you should certainly do. That user only gets access to the proper database on the DB server (which after all might have many of them), which prevents e.g. someone from hopping from a WordPress compromise directly into the main application database... sorta. You'll probably also want to limit the actions the webserver can take to avoid e.g. creating users or changing schemas.

That still leaves the web server able to do CRUD operations, which is easily enough to do a lot of damage to your business and yourself. Rails can trivially execute "select * from patients;" That single line, or one isomorphic to it, is a catastrophe if you're in healthcare.

(Yeah yeah row-level ACLs, I know, I know. Aside from "Not widely supported in actual web application stacks" they're probably not sufficiently robust in the face of a server compromise because the server should be able to authenticate as every user somehow and at that point you're just a for-loop away from total compromise.)

Re:How would you architect a “standard” web application to p... by eonw on Wednesday July 22, 2015 @11:46AM (#9930300)
"everything else in the data center" is a little missleading, and quite frankly an exaggeration in my experience. one compromised server will not bring down rackspace, for instance. or even our little three row DC.

i also do not think missing just one step in security will do it(although it can), unless you miss a big step, most places i have seen exploited were doing a number of things incorrectly.

Re:How would you architect a “standard” web application to p... by PerfectElement on Wednesday July 22, 2015 @01:13AM (#9927853)
What if your sensitive data is encrypted at rest and the application is responsible for decrypting it?
Re:How would you architect a “standard” web application to p... by jtchang on Wednesday July 22, 2015 @01:28AM (#9927880)
The webapp server still has the decryption keys.