Locked_Transfer functional burning
The locked_transfer command in monero-wallet-cli allows sending outputs with very high lock times, and vendors that credit balances based on show_transfers will accept these transactions without warning. An attacker can then withdraw or sell the credited balance, leaving the vendor with outputs that will not unlock for thousands of years.
- Triaged in 9 months
- Fixed in 9 months
- Disclosed after 9 months
Summary: Using the locked_transfer command in the monero-wallet-cli users can send outputs with high lock times like 1,000,000 blocks. A vendor will accept these transactions with no warnings and credit a user balance. The user can now withdrawal or sell this balance and the vendor is left with outputs that will not unlock for 1000s of years.
Description:
This bug essentially exploits the use of the show_transfers command by vendors that credit balances, functionally the result is the same as the double output bug found a week ago. It is presumed at this point that anything in the Cryptonote/ Monero protocol that can show a valid transfer in show_transfers will be accepted by vendors, even if it creates un-spendable or functionality un-spendable outputs.
Releases Affected:
- 0.12.3.0 Lithium Luna - All Operating Systems
- Current Monero master
This will also affect all Cryptonote coins with locked_transfer and exchanges that use show_transfers
Steps To Reproduce:
- Transfer Monero or other Cryptonote coin to wallet-cli
- Use
locked_transferset a high amount lockblocks, send to exchange or other vendor that will credit your balance. - Sell, or withdrawal your currency on the exchange, leaving them with locked coins, the attacker only loses the minimal fee that the exchange charges, while the exchange is left with un-spendable coins.
This bug has been tested against two separate exchanges with very small amounts of Monero, that will unlock after 4 months. This method will likely be effective against all exchanges that use show_transfers as a method of auditing incoming transactions (which i think is nearly all of them).
P.S. Discovery of bugs like these would not be possible without the help of my coworkers at Loki, so i want to thank them for their help brainstorming on this one.
Impact
This bug cannot be used to create new Monero but it can be used to attack Monero vendors with coins they can functionally never spend.
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 exchange's balance-crediting logic relies solely on show_transfers without checking the unlock time of the received outputs.
Impact
The attacker can leave the vendor with un-spendable coins, though the bug cannot be used to create new Monero.
What the attacker needed
Access to monero-wallet-cli; vendor credits based on show_transfers; attacker has some Monero for fees
How it was found
- Transfer Monero or other Cryptonote coin to wallet-cli
- Use locked_transfer with a high lockblocks value and send to an exchange or vendor that credits balance
- Sell or withdraw the credited currency on the exchange, leaving them with locked coins
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.
Monero is a cryptocurrency, and a transfer can be locked so it cannot be spent until a certain number of blocks are added to the blockchain. This report shows that a user can send a transfer locked for a very long time, and an exchange will still see it as a valid payment and credit the user's account. The user can then take out the money, leaving the exchange with coins it cannot spend for a very long time.
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.