Exploiting HTLC in Cashu: A Major Vulnerability

3 replies 474 views
AtomicForkFull Member
Posts: 137 · Reputation: 479
#1Dec 20, 2023, 08:43 PM
So there's this really serious vulnerability. If you're on versions below 0.18.0, the size of the preimage wasn’t checked. An attacker can spam the mint's database with junk data, which is not cool at all.
6 Reply Quote Share
AtomicForkFull Member
Posts: 137 · Reputation: 479
#2Dec 22, 2023, 02:09 AM
Not sure why this post keeps bouncing around. First it was in ‘Development & Technical Discussion’ then got moved to Altcoin Discussion... and now back to Project Development? Cashu is tied to Bitcoin, not an altcoin!
4 Reply Quote Share
GrimFarmFull Member
Posts: 20 · Reputation: 792
#3Dec 22, 2023, 05:38 AM
Yeah the mint didn’t limit HTLC preimage sizes. Basically, you could just shove massive data blobs with NUT-14 and fill up the disk. v0.18.0 has a fix, but if you’re still on an old version, put some limits on your proxy and application. Agreed, this thread fits better in Bitcoin Development.
2 Reply Quote Share
AtomicForkFull Member
Posts: 137 · Reputation: 479
#4Dec 22, 2023, 10:09 AM
CVE-2025-65548 has been assigned to this issue. Let's hope it gets fixed properly. It's important that the devs stay on top of this one.
3 Reply Quote Share

Related topics