How I Discovered A Critical Vulnerability In Bridge Reserve Manag
The bridge release handler calculated the validator quorum as two-thirds of the active validator count, which collapses to one when only one validator is active, and it did not require cryptographic proof that a deposit occurred on the source chain. An attacker could stake to become the sole validator and submit forged release requests to drain the entire bridge reserve.
Published on medium.com
What’s up, hackers? Sumit here, aka hacksage 😌.
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 quorum threshold was computed dynamically from the active validator count without a hard minimum, and release events were authorised by validator signatures alone without proof of the source-chain deposit.
Impact
A single malicious validator could drain the entire bridge reserve, and once drained users could no longer withdraw their assets.
What the attacker needed
Ability to stake on-chain coins; validator set small or empty; attacker becomes sole validator
The fix
The vulnerability was fixed by the security team, though the text does not describe the exact code change.
How it was found
- Stake on-chain coins to become a validator.
- Become the sole authority when the validator set is small or empty.
- Submit a release request for the full bridge reserve using a random, unused nonce.
- The protocol counts the single vote, meets the threshold of one, and sends the coins to the attacker's address.
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 blockchain bridge is a service that moves funds between two blockchains. It usually relies on a group of validators who vote to approve withdrawals. Here, the rule for how many votes are needed broke down when only one validator was active, so that single validator could approve any withdrawal, including fake ones, and take all the money.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.