Balance Manipulation - BUG
When a user transfers funds from their main wallet to a vault, the balance is not locked while the transfer is pending, so the user can still send the same funds to other wallets. Approving the vault transfer afterwards drives the balance negative, allowing balance manipulation.
- Disclosed after 4 months
Hello once again,
I have discovered another balance manipulation bug. This time it is much more simpler, but basically has the same outcome.
EXPLANATION: When you create basic standard Vault and transfer money from your Main Wallet to the vault the balance doesn't "lock up", which means that even when the transfer is pending to the vault you are still freely able to transfer the balance to other btc wallets from your main wallet. Once you approve the transfer to Vault your balance would go into Negative resulting in balance manipulation.
If you have any more questions/concerns feel free to ask.
Thanks,
████████.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the pending vault transfer did not reserve or deduct the funds from the main wallet balance, so the same balance could be spent elsewhere before the transfer settled.
Impact
A user could move the same funds twice and end up with a negative balance.
What the attacker needed
A wallet account with a balance; ability to create a vault
How it was found
- Create a standard vault.
- Start a transfer from the main wallet to the vault.
- While the transfer is pending, send the same balance from the main wallet to other bitcoin wallets.
- Approve the vault transfer and observe the balance going negative.
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 report has not been written yet. The Original tab links to the source.
A vault is a separate savings pot inside the wallet app. The app should hold the money as soon as you ask to move it into the vault, but it did not, so you could spend the same money twice. When the vault transfer finally completed, the account went below zero.
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.