Skip to content

Code4rena

reNFT

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

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

Disclosed reports

Newest first. Only what reNFT chose to make public.

Business logic

All orders can be hijacked to lock rental assets forever by tipping a malicious ERC20

The Create contract, acting as a Seaport zone, did not account for the fact that fulfillers can extend the consideration array with arbitrary ERC20 tips. An attacker could add a malicious ERC20 that reverts on transfer, causing the rental stop process to fail and locking the rented assets indefinitely.

reNFT

High
Access control

Blacklisted extensions can’t be disabled for rental safes

The protocol's guard contract checks the whitelist when a safe owner tries to disable a module, so if a module is later blacklisted, the owner cannot remove it. This leaves the safe permanently exposed to a vulnerable module, putting its assets at risk.

reNFT

Medium
Business logic

Blocklisting in payment ERC20 can cause rented NFT to be stuck in Safe

When a rental is stopped, the payment escrow contract attempts to transfer ERC20 payments to the renter or lender. If either party is blocklisted by the ERC20 token, the transfer reverts, preventing the rental from being stopped and leaving the rented NFT stuck in the renter's Safe.

reNFT

Medium
Business logic

Lender of a PAY order lending can grief renter of the payment

A malicious lender can make the NFT transfer back to their wallet fail during rental stop, causing the stop to revert and the renter's payment to remain stuck in escrow. The lender can later release the NFT and payment by changing their contract's callback behaviour, potentially holding the payment for ransom.

reNFT

Medium
Smart contracts

RentPayload ’s signature can be replayed

The RentPayload signature lacked a unique identifier, so a signature could be replayed across multiple PAY orders with identical metadata. An attacker could reuse their own valid signature to fulfil other lenders' orders and collect the rental earnings.

reNFT

Medium
Smart contracts

Protocol does not implement EIP712 correctly on multiple occasions

The protocol's EIP-712 hashing implementation was incorrect in three ways: a dynamic bytes field was not hashed before encoding, type strings were concatenated with abi.encode instead of abi.encodePacked, and the order metadata hash omitted fields declared in its type string. This could cause integrators using standard libraries to produce mismatched signatures and, for the metadata hash, prevent rental orders from being created, resulting in a denial of service.

reNFT

Medium
Business logic

Guard::checkTransaction restricts native ETH transfer from user’s safes

The Guard::checkTransaction function required transaction data to be at least 4 bytes long, which prevented native ETH transfers from a rental safe because such transfers have empty data. As a result, users could not transfer ETH out of their safes, leaving funds stuck.

reNFT

Medium
Business logic

Incorrect ordering for deletion allows to flash steal rented NFT’s

The stopRent function transfers the rented NFT before verifying that the rental order exists. An attacker can call stopRent with a non-existent order, receive the NFT in a callback, use it freely, then create and fill the order so the existence check passes.

reNFT

Medium
DoS

DOS possible while stopping a rental with erc777 tokens

When a rental order uses an ERC777 token as payment, the renter can implement a tokensReceived hook that reverts during the payment settlement in stopRent. This causes the transaction to fail, leaving the lender's assets stuck in the rental safe.

reNFT

Medium
DoS

DoS of Rental stopping mechanism

The Guard contract allows administrators to disable the onStop hook, but if this is done after a rental is created with that hook, the stopRent function will always revert because it checks the hook status. This locks the lender's assets and ERC20 payments in the renter's safe and escrow contract.

reNFT

Medium
DoS

Risk of DoS when stoping large rental orders due to block gas limit

The order validation policy did not cap the number of offers in a rental order, so an order could contain an arbitrary number of ERC-721 and ERC-1155 items. If a large enough order was created, stopping it could require more gas than the block gas limit allows, leaving the order permanently in a rental state and the escrowed tokens unreclaimable.

reNFT

Medium
Access control

A malicious borrower can hijack any NFT with permit() function he rents.

ReNFT does not account for rented ERC-721 tokens that implement the ERC-4494 permit() function, so a malicious borrower can sign a permit approval for their own address and have the rental safe (the token owner) validate it via EIP-1271. This lets the attacker approve themselves and transfer the rented NFT out of the safe, hijacking it from the lender.

reNFT

Medium
Business logic

A malicious lender can freeze borrower’s ERC1155 tokens indefinitely because the guard can’t differentiate between rented and non-rented ERC1155 tokens in the borrower’s safe.

The rental guard blocks transfers of any ERC1155 token with the same contract and token ID as an active rental, without distinguishing rented from non-rented tokens. A malicious lender can make the rental impossible to stop by reverting in their receive hook, so the borrower's own pre-existing tokens of that ID stay frozen indefinitely.

reNFT

Medium
Business logic

Attacker can lock lender NFTs and ERC20 in the safe if the offer is set to partial

When a lender creates a Seaport offer that allows partial fills, an attacker can fulfil it in several smaller pieces that all produce the same rental order hash. The rental storage only records one entry for that hash, so when the lender stops the rental only the amount from one piece is returned and the rest of the NFTs and ERC20 tokens stay locked in the attacker's safe.

reNFT

High
Access control

Malicious actor can steal any actively rented NFT and freeze the rental payments (of the affected rentals) in the escrow contract

The stopRent function does not validate that a rental order exists before transferring the rented NFT from the renter's safe back to the lender, and the order hash omits the rentalWallet field. An attacker can supply a fake order with the victim's rentalWallet and their own lender address, then create and fulfill a matching order during the NFT transfer callback, stealing the NFT and freezing the rental payment in escrow.

reNFT

High
Race condition

An attacker can hijack any ERC1155 token he rents due to a design issue in reNFT via reentrancy exploitation

reNFT registers a rental only after Seaport has already moved the lender's ERC1155 token into the borrower's Gnosis safe, and that transfer fires the safe's fallback handler. An attacker can use a custom fallback handler to forward the token out during that callback, before the rental exists, so the guard permits it and the rented token is stolen.

reNFT

High
Access control

An attacker is able to hijack any ERC721 / ERC1155 he borrows because guard is missing validation on the address supplied to function call setFallbackHandler()

The reNFT guard contract did not validate the handler address passed to setFallbackHandler, so a renter could point the safe's fallback handler at the rented NFT contract. By then calling transferFrom on the safe, the safe forwarded the call to the token contract and transferred the rented NFT to the attacker.

reNFT

High