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.

Common security issues with crypto websites and APIs

90 pointsby introvertmacover 4 years ago

9 comments

abhiminatorover 4 years ago
A bit of a side-note, but this needs to be said: articles like these should be a good wake-up call for crypto users that are still using web-based wallets (and their accompanying apps for mobile platforms) especially for storing LARGE amounts of cryptocurrency -- you&#x27;re essentially trusting a third-party exchange (with many of them using opaque ToS and PP) with your private keys and as a result your funds (especially those platforms that don&#x27;t use multi-sig architecture). And crypto exchanges&#x27; data breaches&#x2F;hacks is getting more common by the day. [0]<p>Even Bitcoin.org has stopped recommending web-based wallets, like they were doing just a couple of years ago.<p>The best alternative is hardware wallets, but a good middle-ground is using self-managed, &#x27;semi-cold&#x27; software wallets like Electrum, Armory, etc. [1][2]<p>[0] <a href="https:&#x2F;&#x2F;selfkey.org&#x2F;list-of-cryptocurrency-exchange-hacks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;selfkey.org&#x2F;list-of-cryptocurrency-exchange-hacks&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;www.buybitcoinworldwide.com&#x2F;wallets&#x2F;online&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.buybitcoinworldwide.com&#x2F;wallets&#x2F;online&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;bitcointalk.org&#x2F;index.php?topic=1741339.0" rel="nofollow">https:&#x2F;&#x2F;bitcointalk.org&#x2F;index.php?topic=1741339.0</a>
评论 #25508881 未加载
cyralover 4 years ago
#1 is actually another issue in itself. You should never blindly accept X-Forwarded-For. Why would you let the client modify its own IP address? X-Forwarded-For is used to allow proxies (such as nginx) to forward the client’s IP so that the application server uses the client IP and not the intermediate proxy IP. For example, with NodeJS Express, by default it only accepts X-Forwarded-For from local requests. You can add additional IPs or ranges so you can “trust” the header from your load balancer as well, or make it trust X number of hops. I’m sure other web servers have something similar.
introvertmacover 4 years ago
P.S. I&#x27;ve just complied few of recent findings from crypto websites. These issues are applicable to any website or REST APIs.<p>This post is not about security vulnerabilities in blockchain, smart contract or crypto protocols.
评论 #25522823 未加载
1cvmaskover 4 years ago
The last part on session management is a critical and very common vulnerability.<p>Session time-out due to inactivity is critical.<p>In fact, “hacking” companies like NSO steal authentication tokens of services like gmail that DELIBERATELY do not log you out for inactivity for periods like 30 days.
评论 #25509367 未加载
评论 #25506010 未加载
richardwhiukover 4 years ago
They say these are common issues - but don&#x27;t actually link to any websites which have these issues.<p>Disabled input fields are fine - so long as they are ignored on the backend - and there&#x27;s nothing in this article saying they aren&#x27;t.<p>Nothing here seems specific to &quot;crypto&quot; websites.
评论 #25506551 未加载
评论 #25506529 未加载
nothasanover 4 years ago
Couldn’t you also avoid rate-limits and such with setting your own X-Forwarded-For header? I guess the site operator should have been a bit more vigilant and used the Cf-Connecting-IP header in that specific case.
评论 #25508458 未加载
评论 #25506473 未加载
评论 #25505923 未加载
useerupover 4 years ago
&gt; No matter what variation of auth token you are using, make sure you are not just encoding BASE64 of user data like user ID and some timestamp.<p>Seriously, at the end of 2020 this kind of advice is necessary?
评论 #25505896 未加载
评论 #25505840 未加载
评论 #25506071 未加载
wruzaover 4 years ago
I don’t understand point 2. Can anyone please explain how a disabled input with .value == &quot;&lt;script&gt;...&lt;&#x2F;script&gt;&quot; is a security issue?
评论 #25506051 未加载
amolshindeat_07over 4 years ago
Didn&#x27;t knew this before even when I was working in a fintech company,very informative.
评论 #25522931 未加载