How I Found a $1,000 Signature Replay Vulnerability in a Blockcha
The SDK's signature validation function normalised addresses to lowercase before comparison, stripping network-specific checksum information. An attacker could replay a signature from one network (e.g., testnet) on another (e.g., mainnet) because the same signature validated across all checksum formats.
Bug bounty hunting in blockchain security is not easy. Unlike traditional web vulnerabilities (XSS, SQLi, CSRF), blockchain security requires understanding cryptographic primitives, consensus mechanisms, and cross-chain protocols.
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
The signature validation function converted addresses to lowercase before comparing them, discarding the network-specific checksum that would otherwise prevent cross-network replay.
Impact
The design flaw could allow a signature from one network to be replayed on another, but the program downgraded severity because deployment addresses differ between testnet and mainnet, limiting practical exploitation.
What the attacker needed
Access to the SDK source code; ability to run JavaScript/TypeScript; a valid signature from one network
The fix
The SDK should validate the address checksum against the expected network (using chain ID) instead of lowercasing, and implement EIP-155 chain ID binding and nonces.
How it was found
- Build the SDK from source.
- Write a script that calls isValidSignature with the same signature but different address formats (lowercase, RSK mainnet checksum, RSK testnet checksum, Ethereum checksum).
- Run the script and observe that all four calls return true, confirming the vulnerability.
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 checksum is a way to write a blockchain address with a mix of upper and lower case letters that encodes which network it belongs to. The SDK ignored this casing and treated all versions of the address as the same, so a signature meant for one network could be accepted on another. This is called a replay attack: reusing a valid signature in a different context.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.