Re:Total security in a PostgreSQL database
by yummyfajitas on Sunday February 09, 2014 @02:17AM
(#7204728)
Read my next paragraph. A split of public and private data is only marginally more difficult, and is very helpful:
Then in your view:
SQL injection in `get_public_feed` is no longer part of the attack surface for stealing PII.
[ Parent
| on HN ]
This is a good idea.
However, in the context of forms authentication, there comes a delicate moment where the user name and hashed password must be exposed to an unauthenticated user, no?
Re:Total security in a PostgreSQL database
by yummyfajitas on Monday February 10, 2014 @02:01PM
(#7212926)
Of course. And once one user logs in, if you have SQLi vulnerabilities in the `edit_user_pii` page, the attacker has read/write access to everything. Like I said, it's a way to reduce your attack surface, not a way to completely lock everything down.