TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Race conditions on Facebook, DigitalOcean and others (fixed)

294 pointsby franjkovicabout 10 years ago

15 comments

ejcxabout 10 years ago
I actually fixed the issue that was reported to LastPass.<p>I could be mistaken but I believe he reported the security issue through our regular support channel which is why it took three days to see (instead of our security channel). From the time I saw it, I fixed it with the patch going live within an hour or two.<p>When I DID see it, tried it myself with a quick shell script that that curled and backgrounded the same request a bunch of times, I just kind of chuckled. It was a good bug. Josip is top notch.
评论 #9444056 未加载
评论 #9444738 未加载
评论 #9444041 未加载
MichaelGGabout 10 years ago
We should see lots more of these if people embrace eventual consistency instead of &quot;slow&quot; ACID transactions. And interestingly, the more larger scale a system, the more likely that globally consistent operations are too expensive to enable in general, and developers will overlook cases where they must implement some locking or double checking.
评论 #9447601 未加载
评论 #9444656 未加载
janoelzeabout 10 years ago
appreciating the joke (?) in the comments. <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;zWE5ABQ.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;zWE5ABQ.png</a>
unclesaammabout 10 years ago
Wow, it seems like there is room here for a 3rd party vendor to implement promo code handling as a service, and to do it right once and for all.
d_luazabout 10 years ago
No bounty for bug report? Should at least have a nominal fee of $100 (else no one would bother to report it).
评论 #9444245 未加载
评论 #9444186 未加载
评论 #9444420 未加载
Kiroabout 10 years ago
I&#x27;m a novice but would like to know how these issues can arise. What kind of backend setup is needed for it to be a problem? What is happening when a race condition occurs in these examples?
评论 #9444895 未加载
评论 #9445331 未加载
评论 #9444806 未加载
评论 #9445589 未加载
emmababout 10 years ago
It would be cool if there was a browser addon that let you submit a form N times in parallel.
评论 #9444144 未加载
评论 #9446209 未加载
评论 #9445614 未加载
andersonmvdabout 10 years ago
More interesting than the bounty itself is to understand which defense works best at scale and the nitty gritty details of those kind of attacks. Intuitively I think that we just need to avoid inconsistencies between the Time of Check (TOC) and Time of Use (TOU), so veryfing the existence of a discount coupon while inserting it in one query should do the trick (INSERT INTO coupons (...) Values (...) WHERE NOT EXISTS (SELECT 1 FROM coupons WHERE (...)) instead of increasing the time between the TOC&#x2F;TOU, e.g. one query to check if the coupon exists and a second one to insert the coupon. Besides it I am wondering if I am missing something, e.g. is this really a problem limited to the application layer or are the databases unable to prevent such attacks? I think I am right regarding the app protection, but let&#x27;s see what people have to say :)
评论 #9444291 未加载
评论 #9444073 未加载
评论 #9444069 未加载
评论 #9443995 未加载
评论 #9444527 未加载
评论 #9444430 未加载
inportbabout 10 years ago
So the review bug was a security issue but the username bug wasn&#x27;t? I wonder what else the review bug affected.
评论 #9444089 未加载
georgerobinsonabout 10 years ago
Can anyone comment on how the author flooded HTTP requests to the endpoint URLs? Did he use developer tools in his browser and execute his own JavaScript, or use CURL in a tight loop with the cookie and CSRF token from his browser session?
评论 #9446294 未加载
Rafertabout 10 years ago
I have reported the same issue with Digital Ocean (security) in November 2014, and they told me I was using the wrong address and that they forwarded it to the proper team. I triggered it by accident, using the same GitHub code twice, and I (or the DO staffer) didn&#x27;t realize it was a race condition. I never heard back but they let me keep the balance :)
numairabout 10 years ago
I would be really interested to know how various forms of this bug are resolved. This seems like a problem that, on its surface, seems easy to fix, but isn&#x27;t. Especially if you&#x27;ve designed your architecture for real-time-ness and global redundancy. Google&#x27;s servers with atomic clocks come to mind...
评论 #9444280 未加载
jbkkdabout 10 years ago
Now that race condition bugs have been widely exposed, I have a feeling we&#x27;ll start seeing more of these &quot;attacks&quot; in the near future. They are relatively easy to execute and don&#x27;t raise a high suspicion.
tomcamabout 10 years ago
Now please fix race conditions everywhere else, like Baltimore.
yesmadeabout 10 years ago
$3k for the facebook review bug. that&#x27;s a little bit too much<p>- update<p>thanks for the downvotes guys. keep up the good work
评论 #9444002 未加载
评论 #9444137 未加载
评论 #9444200 未加载
评论 #9444111 未加载