The deposit function credits the user with the full amount requested, but fee-on-transfer tokens cause the contract to receive less than that amount. An attacker could deposit such a token and receive an inflated balance, potentially withdrawing more than they deposited.
The marketWhitelist variable in RCTreasury.sol is never initialised, so marketWhitelistCheck() always returns true and does not enforce any whitelist restriction. An attacker could bypass intended access controls on restricted markets.
The Uber Owner role in the Reality Cards protocol has excessive power, allowing it to change core contract functionality and potentially reprogram the entire system. If the Uber Owner address is compromised, an attacker could take full control of the protocol.
Several setter functions in the RCFactory and RCTreasury contracts update only their own state variables and do not propagate the new addresses or values to other contracts that rely on them. This could cause unpredictable behaviour if the parameters are changed while contracts are active.
The findNewOwner function in RCOrderbook uses a loop counter to decide whether processing is complete, but when the loop ends exactly at the deletion limit, it incorrectly treats a valid new owner as invalid. This can cause a legitimate owner to be skipped and later deleted without receiving ownership, impacting availability.
The deposit function records the requested token amount rather than the amount actually received, so fee-on-transfer tokens leave the contract's internal accounting out of step with its real token balance. An attacker could exploit this mismatch to withdraw more than they deposited.
The treasury contract enforces a maximum balance limit in its deposit function, which can be exploited by a whale who front-runs a user's deposit with a large deposit to hit the limit, causing the user's deposit to fail. This blocks users from depositing and renting cards, allowing an attacker to manipulate market outcomes.
The treasury contract's foreclosure-time calculation mixed the user's last rent calculation timestamp with a deposit-derived duration, so the resulting foreclosure time was earlier than it should be. This could cause incorrect determination of the new owner of a card when foreclosure is evaluated.
The market creation function does not enforce that the opening time is before the locking and resolution times, allowing a market to be created where locking and resolution occur before opening. An attacker could create such a market, potentially disrupting the intended sequence of events.
The RCOrderbook contract has a payable function that can receive native currency but lacks a way to withdraw it, potentially locking funds. An attacker could send funds to the contract, and they would be stuck.
The minimum rental day divisor can be updated in the treasury but not in already deployed markets, causing the treasury and markets to use different values. This could lead to unexpected results when calculating minimum rent time.
The rentAllCards function's _maxSumOfPrices check does not account for the mandatory 10% price increase applied to each bid, so the total cost can exceed the user's specified limit. This could lead to insufficient funds, foreclosure, or unintended impacts on other bids.
The pause mechanism in the Reality Cards contracts only blocks some token flows, leaving other public functions such as topping up a market balance callable while markets are paused. An attacker could change contract state during an emergency pause, which the reporter says could make it hard or impossible to restart the contracts correctly.
The functions `ownerOf` and `onlyTokenOwner` in `RCMarket.sol` do not check that the card ID is less than the total number of cards, allowing a user to supply a larger ID and access cards belonging to other markets. This can be exploited in `upgradeCard` to circumvent the market approval check and potentially steal NFTs.
The NFT Hub contract overrides transfer functions but ignores approved addresses, so transfers initiated by approved addresses fail. This breaks compatibility with ERC721 and may cause issues with NFT platforms.
The safeTransferFrom function in RCNftHubL2 does not check whether the recipient contract implements IERC721Receiver, so tokens can be sent to contracts that cannot handle them. This violates the ERC721 specification and could result in tokens being stuck.
The treasury contract only checked its global pause flag, not the market-specific pause flag, when processing sponsorships. An attacker could sponsor a paused market, bypassing the intended pause restriction.
The contracts allow the current uberOwner to change the uberOwner address in a single step without validating that the new address is correct. If the current uberOwner mistakenly sets an address they do not control, the system becomes permanently locked because the uberOwner cannot be corrected and all uberOwner-only functions become uncallable.
The sponsor function in a smart contract lacked access control, allowing anyone to call it with an arbitrary address and transfer tokens from that address if they had a positive allowance to the contract. An attacker could steal tokens from any user who had approved the contract.
The payout function in RCTreasury.sol does not clear a user's isForeclosed status, even though receiving funds should allow them to lose that status. An attacker could remain foreclosed and be unable to place new bids without calling another function.
The balancedBooks modifier, which checks that funds have not gone missing during a function call, was missing from the refundUser() and topupMarketBalance() functions. Any miscalculations in these functions could lead to the system becoming insolvent.
The withdrawDeposit function in the Treasury contract did not call removeOldBids, so closed market bids remained counted in the user's bidRate, potentially causing an incorrect foreclosure. An attacker could exploit this to cause a user to be foreclosed upon when they should not be.
The contract's topupMarketBalance function does not check the return value of an ERC20 transferFrom call, so if the token returns false instead of reverting on failure, the internal marketBalance can be inflated without actual tokens being transferred. This can cause other functions to fail with 'Books are unbalanced', locking up deposits and withdrawals.
The public collectRentUser function allowed anyone to mark any user as foreclosed by passing a far-future timestamp. An attacker could foreclose all bidders for a token and then become its owner cheaply via newRental.
The Treasury deposit function enforces a deposit whitelist on the msg.sender address rather than the user address credited. A user whose msg.sender is blacklisted can still deposit from another whitelisted msg.sender while keeping their user address for leaderboards and NFTs.
The smart contract function `_collectRentAction` incorrectly calculates a refund time using the current block timestamp instead of the user's foreclosure time. This miscalculation could allow an attacker to drain funds.
RC
Reality Cards (round 2)
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.