3 ms·
I'm trying to imagine a scenario where data is stored encrypted in the db and then decrypted in the app server (I've seen this in a bunch of random PHP apps ove
by emidln 9y ago
I'm trying to imagine a scenario where data is stored encrypted in the db and then decrypted in the app server (I've seen this in a bunch of random PHP apps over the years). A SQLi might be able to dump encrypted data or escalate to execution on the database (from which you could pivot back to the app server), but just the SQLi doesn't necessarily expose the encrypted data.
See the example vulnerable web service here: https://gist.github.com/emidln/a43b9fee4fc55273106c4b850f6b40f4 https://gist.github.com/emidln/a43b9fee4fc55273106c4b850f6b4...
Is the assumption that control over the db can pivot back to the server or that if there are basic issues with db access that there must be other exploitable issues (probably a fair assumption)?
- tptacek 9y agoSQLI -> RCE -> Recover key or access to oracle function -> data.