Skip to content

Code4rena

Revolution Protocol

Every publicly disclosed report for Revolution Protocol and what kind of bugs they were.

disclosed reports
18
most reported class
Business logic
bug classes found
5
first disclosure
2024
Find Revolution Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Revolution Protocol chose to make public.

Business logic

The quorumVotes can be bypassed

The quorumVotes for an art piece are calculated at creation using the total supply of voting tokens at that moment, but because the vote checkpoint uses block numbers, the supply can increase within the same block. An attacker can back-run the createPiece transaction and buy tokens in the same block, causing the quorum to be understated and allowing a piece to be dropped without meeting the intended quorum.

Revolution Protocol

Medium
Business logic

ArtPiece.totalVotesSupply and ArtPiece.quorumVotes are incorrectly calculated due to inclusion of the inaccessible voting powers of the NFT that is being auctioned at the moment when an art piece is created

When an art piece is created, its total vote supply and quorum are calculated using the total supply of ERC721 voting tokens, which includes the NFT currently on auction that cannot be used to vote. This makes the quorum higher than intended and harder to reach, especially early in the protocol.

Revolution Protocol

High
DoS

Anyone can pause AuctionHouse in _createAuction

The auction contract's internal auction-creation routine wraps the NFT mint in a try/catch that pauses the whole contract on any failure, including running out of gas. Because minting copies creator lists and metadata into storage, an attacker can craft an art piece whose minting costs more gas than the fixed threshold, so a normal settle call runs out of gas and pauses the AuctionHouse.

Revolution Protocol

Medium
XSS

VerbsToken.tokenURI() is vulnerable to JSON injection attacks

The CultureIndex.createPiece() function does not sanitise the metadata.image and metadata.animationUrl fields, allowing an attacker to inject JSON characters. This causes VerbsToken.tokenURI() to return a JSON object where the image field is replaced with an attacker-controlled value, so the NFT's displayed art differs from the art users voted on.

Revolution Protocol

High
Business logic

Bidder can use donations to get VerbsToken from auction that already ended

The auction contract checked its own ether balance against the reserve price instead of the winning bid amount, so a bidder could force a settlement by donating ether via selfdestruct and win the token while paying less than the new reserve price. This allowed the attacker to acquire the token unfairly and reduced payments to creators and the auction house owner.

Revolution Protocol

Medium
Smart contracts

Violation of ERC-721 Standard in VerbsToken:tokenURI Implementation

The VerbsToken contract's tokenURI function does not revert for non-existent token IDs, violating the ERC-721 standard. An attacker could call tokenURI with an invalid token ID and receive a response instead of a revert, breaking the expected behaviour.

Revolution Protocol

Medium
DoS

ERC20TokenEmitter will not work after a certain period of time

The VRGDAC contract's yToX function reverts when timeSinceStart exceeds a certain value due to precision loss, causing the ERC20TokenEmitter's buyToken function to always revert after a period of time. An attacker could not directly exploit this, but the protocol would become unusable for buying tokens after approximately 400 days under certain conditions.

Revolution Protocol

Medium
Smart contracts

positionMapping for last element in heap is not updated when extracting max element

The MaxHeap contract fails to update the positionMapping for the last element when it is moved to the root during extractMax and has the same value as its parent, leaving its index stale. This can cause incorrect indexing, wrong value updates, broken heap property, and extraction of the wrong element.

Revolution Protocol

Medium
Smart contracts

MaxHeap.sol: Already extracted tokenId may be extracted again

The MaxHeap contract's extractMax function does not clear the heap slot after removing an item, leaving a stale value that maxHeapify can later read as an out-of-bounds entry. This can cause an already extracted tokenId to be extracted again, returning incorrect values.

Revolution Protocol

Medium
DoS

It may be possible to DoS AuctionHouse by specifying malicious creators

A user who creates an art piece can specify up to 100 malicious creator contracts whose receive functions consume gas, causing the auction settlement function to use over 20 million gas. This could lead to a denial of service if the block gas limit is reduced or gas costs increase, as settlement would exceed the block gas limit.

Revolution Protocol

Medium