Skip to content
Crypto Write-up Intermediate

The Crypto Wallet Vulnerability That Went Undetected for Over Six

A widely used base58 encoding library (Base-x) silently accepted Unicode lookalike characters in Solana wallet addresses and converted them into different valid addresses, so funds could be sent to an unintended address. An attacker could post a visually identical address in a public forum or chat to trick a user into sending funds to an address nobody controls.

John Sessford Follow

Published on medium.com

But when I hit send, the address silently changed behind the scenes and my funds were sent to an entirely different address — one I don’t own and that nobodycontrols.

John Sessford, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Base-x library dropped its original input validation during a 2018 rewrite and, unlike Bitcoin's C++ implementation, passed an undefined lookup result through the decoding logic as zero instead of rejecting the invalid character.

Impact

Funds could be permanently lost or stolen because users may not notice the substitution; the report notes that two major wallets with over 17 million combined users were confirmed vulnerable, though the author's own loss was relatively minor.

What the attacker needed

Victim copies a lookalike address; vulnerable wallet app; attacker can post address publicly

How it was found

  1. Obtain a Solana wallet address that contains a Unicode lookalike character instead of the normal Latin character.
  2. Paste that address into a vulnerable wallet app.
  3. The app accepts the address without showing an error.
  4. The app silently recalculates the address to a different valid address.
  5. Send funds; they go to the recalculated address, which nobody controls.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A wallet address is like a bank account number. Some letters look almost the same but are actually different characters from other alphabets. The library that turns the typed address into a real one did not reject the odd character; it quietly treated it as a zero and produced a different address, so the money went to the wrong place.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.