by RGamma · 3y ago · 0 comments
This seems even more ludicrous than this recent Outlook credential theft bug https://msrc.microsoft.com/update-guide/en-US/vulnerability/... or this recent RCE glitch in the Windows networking stack https://msrc.microsoft.com/update-guide/vulnerability/CVE-20....
Can't believe this is real to be honest...
Instead, it gives us exposure to a new set of higher level security problems, that over time we will need to develop higher level primitives to navigate. We would still have these problems with lower level languages, we'd just be too overwhelmed with smaller issues to properly address them
These seem quite contradictory statements. Copying something from StackOverflow and using it in production code without making sure you fully understand what it does? And something like "verify: false" should be an instant red flag that you need to triple-check to make sure that’s really the correct thing to do for your use case.
Edit: As the article itself stated, around 25% of all systems with this setup are vulnerable!
> The results surprised us: 25% of all the multi-tenant apps we scanned were vulnerable to authentication bypass.
If only. How about: just download the backup of the server log from https://example.com/logfile.txt? Oh, and it contains everything. Including internal application logs.
In general, one should always use roles in Azure. Even if you have a flaw like this, your endpoint would be safe if you required a role to access your endpoint.
For multi-tenants, I completely this misconfiguration, there’s no real warnings when configuring it. In order to lock down to specific tenants, I recommend having a list of issuers that you check the token against.[2]
[1] https://intility.github.io/fastapi-azure-auth/single-tenant/...
[2] https://intility.github.io/fastapi-azure-auth/multi-tenant/a...
Why not? It's pretty much in line with expectations on my end.
Things I still regularly come across:
- developers with copies of the production database on their laptop
- said laptop doesn't have an encrypted hard drive
- every developer having access to production databases, including people hired yesterday
- default userids / passwords hardcoded in firmware
- the marketing department having access to the production database in bulk
- datalakes with zero access controls that perfectly mirror the production db
- sharepoints without proper authentication storing mountains of customer data
Anyway, I could go on like this for a while. And usually the company employees are aware of these, they just haven't gotten around to plugging the holes or they were never going to unless someone told them to because it is convenient. Occasionally there is serious pushback, for instance against developers having a recent copy of the production database on their laptop is in some places considered perfectly normal.
> every developer having access to production databases, including people hired yesterday
Do you expect new developers to have a wait period before being able to access sensitive materials? That seems like a recipe for disaster, you’re openly saying “I don’t trust you” at the start of your relationship with someone, when it’s the most volatile.
I’m almost positive that doing it will just cause your new devs to resent their new bosses from day 1.
I wonder how that correlates with companies bragging that they only take day or even few hours to have new hire code landing at production "coz they are so agile"