Charged Particles Griefing Bug Fix Review
A malicious NFT creator could set a ransom contract as the royalties receiver, causing the NFT to be locked and unsellable unless a bribe was paid. This griefing attack prevented the owner from selling the NFT.
immunefi.com
Published on immunefi.com
Whitehat Alejandro Muñoz-McDonald submitted a vulnerability classified as “High” in Charged Particles on February 9. The vulnerability was a griefing/denial of service attack against the protocol that would have allowed a malicious user to create a system where bribes had to be paid for a user to buy or sell an NFT.
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 contract allowed the creator to set an arbitrary royalties receiver that could revert on payment, blocking sales.
Impact
The NFT owner could not sell the NFT unless they paid a ransom to the malicious creator.
What the attacker needed
Attacker is the NFT creator; Victim owns the NFT; Royalties percentage > 0
The fix
The bug was fixed by Charged Particles.
How it was found
- Create a Proton for sale with a royalties percentage greater than zero and wait for it to be sold.
- Deploy a malicious ransom contract that reverts on receiving funds unless a ransom is paid.
- Call setCreatorRoyaltiesReceiver with the energized particle ID and the ransom contract address.
- The Proton becomes locked and cannot be sold because the ransom contract reverts on payment.
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.
This is a smart contract bug where someone who creates an NFT can later make it impossible to sell by pointing the royalty payments to a contract that refuses to accept money unless a ransom is paid. The NFT owner is stuck because the sale cannot complete without paying the ransom.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.