4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 11y ago · link · parent
The advantage is that the administrator doesn't need to manually intervene, the disadvantage is that you can't verify passwords (in a way that is more secure than just verifying hashes) until you get at least K correct login attempts.
If the goal is only to defend against SQL injection, a much simpler solution is to just put the key outside the database, for instance in the configuration or source of the application.
comment 11y ago · link · parent
It should be a service that mails all other contributors in the commit log something like this: "Mr. <insert name> introduced a CATASTROPHIC security bug right here! Look at that! <insert code> <insert insults> Are all his contributions hidden landmines that might jeopardize the project at any time? Clearly they need to be checked! <insert list of all his other commits>"
Maybe "git shame" would be more appropriate too.
And yeah, you should probably not do that if it's a company project or a noncritical open source project.
comment 11y ago · link · parent
At $0.0125/GB/month, that means it costs $75 for 6TB per month.
But a 6TB hard drive costs less than $300, which means that assuming the data is stored on 3 hard drives for redundancy, they break even in less than a year.
However, hard drives seems to last at least 3-5 years on average, so this service seems to be priced at least 3-5 times as much as it costs to Amazon.
And there is even a $0.01/GB charge for retrieval on top.
There are other costs, but they should be relatively small at scale.
Am I missing something? If not, why doesn't anybody compete with Amazon and provide more reasonable pricing?
comment 11y ago · link · parent
I think all database applications should be written like this at least until performance starts being an issue.
comment 11y ago · link · parent
It basically allows multiple reputable people to independently build the code and sign a statement that a given source code hash produces a given binary hash (and that the source code hash is the correct one for a given package), and have the presence of at least a certain amount of these signatures be verified on package installation.
This means that it will no longer be possible to backdoor Debian without changing source code by compromising the main build infrastructure.
comment 11y ago · link · parent
https://en.wikipedia.org/wiki/Portable_Network_Graphics#Filt...
comment 11y ago · link · parent
For example, a query like "user {moviesWatchedByUser {usersWhoWatchedMovie {moviesWatchedByUser {usersWhoWatchedMovie ..." is allowed by GraphQL and will generate output with size exponential in the input size.
You can also do "{a1: expensiveOperation, a2: expensiveOperation, a3: expensiveOperation, ..." and trigger expensiveOperation an arbitrary number of times (for each item in the list you apply that to).
By using a sequence of fragments that include the next fragment more than once, it looks like you can trigger expensiveOperation an exponential number of times.
It's not clear if there is a way to prevent all this without severely impacting usabilty (by warping the schema design and adding GraphQL limits to handle this) or reliability (by enforcing hardcoded low resource usage limits).
comment 11y ago · link · parent
Why doesn't SpaceX offer the Falcon Heavy exclusively and launch multiple payloads per launch, thus more than halving costs?
Are there payload volume or orbit separation limitations or is the pricing info not complete?
comment 11y ago · link · parent
You start with a root query object and then call a bunch of methods on it of the client's choice and put the results in a dictionary.
Then you do that recursively on the resulting objects until you have data consisting of nested dictionaries and lists containing only primitives, which is finally serialized as JSON and returned.
comment 11y ago · link · parent
In other words, what stops anyone from easily disabling a website by making a few parallel extremely complex GraphQL requests that consume all CPU and I/O, and perhaps result in holding some locks for a very long time?
In normal APIs you can make sure most endpoints are cheap to run, and throttle, secure or otherwise control the ones that must be expensive, but that doesn't work if you expose a flexible layer like GraphQL (or SQL).
comment 11y ago · link · parent
Is that wrong?
Waiting for certificates to expire could mean waiting for years, unless they have auto-renewing very short-lived certificates (but then you have the same problem for the authentication used to automatically get those certificates).
comment 11y ago · link · parent
What happens if a certificate is requested, the domain is sold to a new owner and the new owner tries to request a certificate, but doesn't have access to the keys for the old one?
Also, how can the new owner revoke all certificates delivered to previous owners?
comment 11y ago · link · parent
So you don't have the cable anymore but now your devices randomly stop working until you change the batteries and if you run out of charged batteries it's really annoying.
Proving that it is secure and avoiding interference are also problems that are currently impratical to solve.
comment 11y ago · link · parent
The authors talk a lot about how you can get everything if you compromise the client machine, but of course if you compromise the client you can compromise everything.
Just install a keylogger to get all typed passwords, send the decrypted hard drive image over the network and run it in a VM proxying network traffic via the compromised machine, no need for any targeted attack.
The fact that they focus on that rather than on an actual interesting attack makes me believe that there is no real vulnerability whatsoever.
"We also found how it is possible to abuse account recovery to ultimately obtain the encryption key for the vault" is really scary, but if it were accurate they would be talking solely about that, so maybe it's just a phishing attack.