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.

How Primedice was exploited for $1M in Bitcoin

85 pointsby jbardnzalmost 10 years ago

15 comments

jstanleyalmost 10 years ago
I don&#x27;t think he did much wrong here. It doesn&#x27;t appear that he actually broke in to your computers, he just submitted lots of bets.<p>If you&#x27;re going to run a casino (whose entire business model is based on exploiting weaknesses of others for profit), don&#x27;t be surprised if people try to exploit your weaknesses for profit.<p>I&#x27;m not saying there&#x27;s anything wrong with running a casino, I think it is fine. I just think that what he did is fine too.<p>EDIT: Except the part where you apparently didn&#x27;t pay out all of his winnings. I&#x27;m not fine with that part. Also doxing one of your customers just because he made a profit out of you.
评论 #9799435 未加载
评论 #9799399 未加载
评论 #9799604 未加载
评论 #9800528 未加载
评论 #9799238 未加载
genericuseralmost 10 years ago
&quot;To understand how Hufflepuff beat our system, one must understand how our provably fair system (RNG) works.&quot;<p>&quot;Our database had seeds that were both inactive and in use at the same time all connected to Hufflepuff.&quot;<p>To me it sounds like your company simply didn&#x27;t understand how the system you created worked, it sounds like you merely understood how you wished it to work. Gambling has always favored people who actually understand the system in place, by not understanding the system you yourselves were implementing you created the opportunity for a customer to understand it better than you. What you describe with your database having seeds that were both in use and inactive at the same time, sounds to me like you did not do a good job managing concurrency on records which were crucial to your business.<p>While I can not say whether the users did anything illegal, the post you have created to call attention to this does not make an adequate case for wrong doing on the users part. However your response does make an amazing case for you having responded to an implementation issue in your software very poorly, and I think would make future users who are aware of this less likely to use your service.<p>That is just my opinion given the information you have presented, as you seem to focus more on maliciously providing information of the person you are accusing as opposed to proving your accusations that the person in question committed a crime while doing so.
评论 #9799616 未加载
imaginenorealmost 10 years ago
&gt; <i>and time again to investigate and each time our developers could not find any wrong-doing.</i><p>&gt; ...<p>&gt; <i>This was done by sending it more requests than it could handle in a small time period, think hundreds of requests in under a second</i><p>Sounds like your developers really messed up. The server logs would be the #1 place I would look. Where else really? How do you not notice hundreds of requests per second (from the same IP I assume)?
评论 #9799857 未加载
评论 #9801462 未加载
Lazarealmost 10 years ago
I&#x27;m reflexively sympathetic to the small, scrappy startup. But...<p>...man this is not a sympathetic story. You&#x27;re running a gambling site (morally shady and an obvious magnet for abuse), using bitcoins (another huge abuse magnet), you had very supicious gambling patterns (a massive red flag that no real casino would accept), and you just let the guy keep playing? That&#x27;s not how you&#x27;re supposed to do that.<p>And as for the whole &quot;we had a timing bug in our code, and we couldn&#x27;t find it even with hard proof that it existed, and then we finally thought we&#x27;d fixed it, and then we <i>asked the guy for the million dollars back</i> (??!?), and then it turned out we hadn&#x27;t fixed it at all, and he hit us up for another few thousand&quot;? Like, that just sounds screaming amateurish.<p>If you can&#x27;t be trusted to write secure code, or at least fix the bugs you find in it, maybe online bitcoin casinos aren&#x27;t for you? And if you think asking people nicely to give you your money back works in casinos, maybe you don&#x27;t understand the industry?<p>Edit: I&#x27;m not trying to be a dick, but I feel like the proper blogpost to write would be a grovelling &quot;hey guys, I know it&#x27;s super obvious, but if you&#x27;re doing an online gambling website, monitor your transactions for specific patterns. Know what a real punter looks like, and aggressively throttle anyone who doesn&#x27;t behave like one. Otherwise you&#x27;ll be stupid idiots who lose a million dollars over a stupid bug, and then have to write a magnanimous letter congratulating the guy who exploited you for winning so much money (man that was painful to write).&quot; You made some huge mistakes, and it doesn&#x27;t sound like you really learned from them, or even identified them. Hint: Your core mistake was not a timing bug that emerged when your system was under heavy load.
justonepostalmost 10 years ago
Lol. They (as any sane Casino operator would) should have booted this guy immediately on day 1, claiming they felt he was scamming the system. Sure, pay him out, but don&#x27;t let him keep betting. Yeesh. I have to wonder if this was an inside job and they let him siphon those winnings. I am highly suspicious of most bitcoin companies, and I wonder if they&#x27;re all just shells around vulnerabilities looking to siphon user deposits &#x2F; investments.
评论 #9800159 未加载
评论 #9800323 未加载
lcswialmost 10 years ago
Uh, that post includes some doxxing.<p>From an observer&#x27;s view, after fully reading it and seeing how hostile their response is, I can only applaud the player. To me it seems fair game. She exploited a weakness in the game, something that in meatspace is often hailed as genius. In bitcoin online gambling, race conditions are a part of the game that has to be expected to be attacked.<p>With their doxxing they lost any bit of sympathy I had.
评论 #9800069 未加载
mmostaalmost 10 years ago
The (costly) lesson learned here doesn&#x27;t revolve around Primedice&#x27;s RNG architecture but the strict importance of testing.<p>We all face pressure to deliver but at the end of the day -like brakes on a car- testing is one thing you should never cut corners on.<p>Although another 2 weeks of testing may not have explicitly exposed the vulnerability, it surely would have offered a better baseline from which to evolve better heuristics for the analysis of the exploit when it did occur.
评论 #9798794 未加载
评论 #9799207 未加载
评论 #9799898 未加载
tiatiaalmost 10 years ago
&quot;We heavily explored what we thought was every possibility, ran simulations and did the math and came to the conclusion that he was just incredibly lucky.&quot; ROTFL
csomaralmost 10 years ago
<i>Any information that leads to the return of the coins from this incident will be greatly rewarded. We invite you to analyze the above bitcoin addresses and find out where the bulk of the coins ended up if you have the skills.</i><p>What does this mean? Are they trying to <i>steal</i> the thief (according to them). Shouldn&#x27;t they inform the local authorities and let them handle the case?
评论 #9800744 未加载
baakssalmost 10 years ago
Strange choice to put a picture from the Ocean&#x27;s Eleven series at the top of the article, seeing as how the thieves in those films are considered the protagonists&#x2F;heroes.<p>I think a bit more information included with the article to verify this was actually a &#x27;hack&#x27; would be helpful. I mean, was this akin to counting cards or what? It&#x27;s hard to tell from the article.
评论 #9800516 未加载
juntoalmost 10 years ago
<p><pre><code> ... did the math and came to the conclusion that he was just incredibly lucky </code></pre> Woah. Red flag. Just incredibly lucky doesn&#x27;t exist. Odds are odds.
评论 #9800894 未加载
obstinatealmost 10 years ago
It is really interesting to me how different Bitcoin users&#x27; understanding of morality and the typical person&#x27;s are. To almost any joe or Jane on the street, exploiting a weakness in someone else&#x27;s security -- be it an unlocked door or an unchecked error code -- to acquire money from them without their intent, is Wrong. On the other hand, taking retaliatory action, such as providing what detail you can about that person in the service of returning the ill-gotten gains, is right.<p>Judging by the contents of this thread, the Bitcoin&#x2F;hacker community feels just the opposite. How odd. I feel like this more than anything will impede the mass adoption of Bitcoin.
评论 #9800353 未加载
评论 #9800327 未加载
评论 #9800256 未加载
pavel_lishinalmost 10 years ago
&gt; <i>Sorry for the long read</i><p>Didn&#x27;t feel long at all; it was concise and had enough detail to satisfy a casual reader (me) with links to more detail if I wanted it.
scintill76almost 10 years ago
Some pretty hilarious YouTube comments on the linked video[0]: &quot;could you please share your strategy in that video&quot;, &quot;Please, Send your method of play and programs for this need&quot;. Sorry, but I&#x27;m pretty sure nobody&#x27;s going to share their bot for making 2000 BTC in an hour.<p>[0] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lSLXv5Tz1ZY" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lSLXv5Tz1ZY</a> , linked from &quot;$8000 worth of bitcoin every second for hours on end&quot;
curiouslyalmost 10 years ago
So bitcoin casinos are legal ?