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.

XSS Attack Embedded in an ERC20 Token Contract Steals Thousands

84 pointsby brettover 7 years ago

7 comments

meowfaceover 7 years ago
&gt;Thus, users of EtherDelta must enter their public wallet address and private key when using the site, meaning their private key could be captured from the browser session by a malicious code injection.<p>This isn&#x27;t some sort of fancy cryptocontract based attack. The private key is just stored as a JavaScript object in the session and an attacker found and exploited a reflected XSS vulnerability to send off the key.<p>Even if you&#x27;re not sending your private key to the server directly surely some people must have made these users aware of the risks they were taking? Not only XSS risks, but risks of a rogue admin or backend compromise injecting malicious JS.
评论 #15355121 未加载
AgentMEover 7 years ago
I&#x27;m surprised and disappointed that EtherDelta doesn&#x27;t use Content-Security-Policy headers. They pretty much solve XSS.<p>Google has a good introduction to using them here: <a href="https:&#x2F;&#x2F;csp.withgoogle.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;csp.withgoogle.com&#x2F;</a>
评论 #15355769 未加载
jdp23over 7 years ago
&gt; I want to make one point clear: I believe that EtherDelta, in concept, is safer and more “trustworthy” than a traditional exchange. Everything about how EtherDelta functions is transparent and verifiable by users.... The attack detailed in this piece could have been identified by anyone before it was exploited, and if there had been a security review protocol in place, it would have been easily prevented.<p>Even &quot;in concept&quot;, releasing fintech software without doing the security basics verges on professional misconduct.
评论 #15353727 未加载
评论 #15354112 未加载
KGIIIover 7 years ago
I read the headline and my immediate guess was cryptocurrency. I clicked and, sure enough, there it was.<p>Maybe it&#x27;s time to refine some of these ideas? While regular money does get stolen, maybe storing it online isn&#x27;t the best method? Maybe requiring some human interaction is a good idea?<p>At this point, I can&#x27;t really justify investing in any cryptocurrency. I&#x27;m absolutely unable to justify investing in any ICO.<p>If I opened a contract and my PayPal balance disappeared, I&#x27;d be pretty angry and might have some recourse. I&#x27;d absolutely have some options if it were with my credit&#x2F;debit card or directly through my bank.<p>Good luck, folks. I&#x27;m still going to maintain the wait-and-see approach.
评论 #15354042 未加载
评论 #15353999 未加载
davewritescodeover 7 years ago
The smart contracts in Ethereum sounds awesome in practice and way more useful than Bitcoin mining but it seems like a giant security hole.
评论 #15356064 未加载
评论 #15354021 未加载
footaover 7 years ago
Don&#x27;t you also have to trust that the person running EtherDelta hasn&#x27;t modified what&#x27;s running on the site...?
评论 #15354019 未加载
chroem-over 7 years ago
&gt;thousands of dollars<p>The article is out of date. People are saying the amount is now $6 billion.
评论 #15353514 未加载
评论 #15353526 未加载
评论 #15353051 未加载
评论 #15353150 未加载
评论 #15353145 未加载