RealFevr has 1 public audit report from CertiK; dated 1 Mar 2024; no critical findings reported. It also holds 4 deployed contracts on 4 chains.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| RealFevr - bridge | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 3 high · 5 medium · 21 low 13 fixed · 3 acknowledged · 13 open | skynet.certik.com ↗ |
29 findings in 1 report: 13 fixed, 3 acknowledged (the team chose not to change the code), 13 open.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 3 | 0 |
| Medium | 3 | 0 | 2 |
| Low | 10 | 0 | 11 |
## ERC20BridgeImpl.sol In the contract `ERC20BridgeImpl` the role `DEFAULT_ADMIN_ROLE` has authority over the functions shown in the diagram below. Any compromise to the `DEFAULT_ADMIN_ROLE` account may allow the hacker to take advantage of this authority and - change the implementation logic used by the proxy to malicious code - give any role used within the contract to an address they control - remove the role privilege from a legitimate account - remove all available ERC20 tokens in the contract and send to an account they control - deposit any amount of an ERC20 approved to be bridged in the contract, potentially preventing others from depositing that token if the daily maximum is exceeded - create new ERC20 tokens to be used maliciously with the bridge protocol - burn all ERC20 tokens currently held in the contract - mint any amount of any ERC20 token for which the contract is the owner of  In the contract `ERC20BridgeImpl` the role `BRIDGE` has authority over the functions shown in the diagram below. Any compromise to the `BRIDGE` account may allow the hacker to take advantage of this authority and - withdraw all available ERC20 tokens in the contract and send to an account they control, as long as the amount does not cause the daily maximum to be exceeded for that token - burn all ERC20 tokens currently held in the contract, as long as the amount does not cause the daily maximum to be exceeded for that token - mint any amount of any ERC20 token for which the contract is the owner of, as long as the amount does not cause the daily mint maximum to be exceeded for that token  In the contract `ERC20BridgeImpl` the role `OPERATOR` has authority over the functions shown in the diagram below. Any compromise to the `OPERATOR` account may allow the hacker to take advantage of this authority and - update the bridge status in order to use or prevent the use of bridge functionality during a time-sensitive period. - change the `feeReceiver` address to an account they control, and update fees to collect a maximal amount from deposits and withdrawals - update supported chains to allow unintended chains, or to prevent legitimate chains from being used - create new ERC20 tokens to be used maliciously with the bridge protocol - change the 24 hour maximum values for deposit, withdrawal, minting and burning to either prevent these actions or allow an unintended amount to pass for their own gain - set `burnOnDeposit` to false for a token in order to remove the tokens through withdrawal and re-use within the bridge or other protocols for gain. This can be done if the account possesses both the `OPERATOR` role and either the `DEFAULT_ADMIN_ROLE` or the `BRIDGE` role - set up a malicious ERC20 token contract for use with the bridge  --- ## ERC721BridgeImpl.sol In the contract `ERC721BridgeImpl` the role `DEFAULT_ADMIN_ROLE` has authority over the functions shown in the diagram below. Any compromise to the `DEFAULT_ADMIN_ROLE` account may allow the hacker to take advantage of this authority and - change the implementation logic used by the proxy to malicious code - give any role used within the contract to an address they control - remove the role privilege from a legitimate account  In the contract `ERC721BridgeImpl` the role `BRIDGE` has authority over the functions shown in the diagram below. Any compromise to the `BRIDGE` account may allow the hacker to take advantage of this authority and - withdraw all available ERC721 tokens in the contract and send to an account they control - mint any amount of any ERC721 tokens for which the bridge contract is the owner - update any NFT's market distributions to include any address and any uint rate, as long as the bridge contract is the owner of the ERC721 contract  In the contract `ERC721BridgeImpl` the role `OPERATOR` has authority over the functions shown in the diagram below. Any compromise to the `OPERATOR` account may allow the hacker to take advantage of this authority and - update the bridge status in order to use or prevent the use of bridge functionality during a time-sensitive period. - change the `feeReceiver` address to an account t
Report ↗In contracts `ERC20BridgeImpl` and `ERC721BridgeImpl`, the role `DEFAULT_ADMIN_ROLE` has the authority to update the implementation contract behind each contract. Any compromise to the `DEFAULT_ADMIN_ROLE` account may allow a hacker to take advantage of this authority and change the implementation contract pointed by proxy and execute potential malicious functionality in the implementation contract.
Report ↗In contracts `base_erc721` and `base_erc20`, the role `_owner` has the authority to mint tokens to arbitrary addresses. Any compromise to the `_owner` account may allow a hacker to take advantage of this authority and mint tokens to an address they control.
Report ↗Function `depositERC20()` counts a deposit by a `DEFAULT_ADMIN_ROLE` account as part of the `dailyDeposits`, even though a `DEFAULT_ADMIN_ROLE` account can bypass the check that the `token.max24hDeposits` is not exceeded. This is different from the behavior of minting and burning, where the `DEFAULT_ADMIN_ROLE` account's mints and burns are not included in the daily tracking (unless the `DEFAULT_ADMIN_ROLE` account also has the `BRIDGE` role). As a result, if a `DEFAULT_ADMIN_ROLE` account deposits an amount causing the `token.max24hDeposits` to be exceeded, other users are prevented from depositing for that 24 hour period. Function `withdrawERC20()` checks that `currentWithdrawalAmount + amount` does not exceed `token.max24hWithdraws`, but `dailyWithdraws[tokenAddress][currentDay]` is never updated within the function.
Report ↗Please specify whether an account given the `BRIDGE` role is expected to be an externally-owned account or a contract. If it is a contract, are actions triggered by user interaction? The current assumption is that an account given this role is a contract that is part of the protocol, but which is out-of-scope for this audit report. There is an out-of-scope dependency on such a contract, since it is assumed that the contract given `BRIDGE` privilege for each contract performs proper validation on the provided input for each function that can be called. Specifically, there is an assumption that the contract given `BRIDGE` privilege performs proper validation on the keys used to permit withdrawing and minting in each bridge. The checks performed on the `uniqueKey` string input within each in-scope bridge contract are not enough to ensure that the string corresponds to the other input information. Moreover, since the minting and withdrawing functions of each bridge use the same input types, there is no prevention of the re-use of a `uniqueKey` across these functions. If a contract given `BRIDGE` privilege does not perform the proper validation on the input before it is provided, then the lack of validation could result in loss of funds through possible replay attacks, invalid user-provided input, or other means. If the account given `BRIDGE` privilege is an externally owned account, then the use of the `uniqueKey` string while lacking proper validation renders the `uniqueKey` ineffective as a mechanic. Namely, the externally owned account calling the minting and withdrawal functions can input any string not previously used in the function as a means to recover any desired tokens from the bridge. There is no validation performed to ensure the uniqueKey provided in some way corresponds to the mint or withdrawal execution, and there is no way to validate that the call corresponds to other actions performed within the bridge.
Report ↗There are no upper boundaries for the deposit and withdraw token fees, or for the ETH deposit fees, of either bridge contract. It is possible to set the total fee rate up to any arbitrary amount.
Report ↗Access control roles `OPERATOR` and `BRIDGE` should be initialized inline as constants. Constants are tracked by upgradeable contracts because their values are explicitly recorded in the bytecode.
Report ↗### ERC20BridgeImpl.sol - In function `depositERC20()`, - a low-level call to `feeReceiver` is performed before updates to state and event emissions - Token transfers and burns are performed before event emission - In function `withdrawERC20()`, token transfers are performed before event emission - In function `mintToken()`, token minting is performed before event emission ### ERC721BridgeImpl.sol - In function `depositSingleERC721()`, - a low-level call to `feeReceiver` is performed before updates to state and event emissions - ERC20 and ERC721 token transfers are performed before updates to state and event emission - In function `depositMultipleERC721()` a low-level call to `feeReceiver` is performed before updates to state and event emission - In function `withdrawSingleERC721()`, ERC721 token transfers are performed before event emission - In function `takeFees()`, ERC20 token transfer is performed before event emission - In function `mintERC721()`, ERC721 token minting and other external calls are performed before event emission
Report ↗Function `withdrawERC20()` always uses the fee associated with `block.chainid`, so this fee can be expressed as its own `uint` type state variable for the whole contract, rather than using a withdrawal fee corresponding to the chain id and token withdrawn.
Report ↗When transferring standard ERC20 deflationary tokens, the input amount may not be equal to the received amount due to the charged transaction fee. As a result, an inconsistency in the amount will occur and the transaction may fail due to the validation checks. For example, if a user sends 100 deflationary tokens (with a 10% transaction fee) to the target contract, only 90 tokens actually arrive to the contract.
Report ↗In `ERC721BridgeImpl.sol`, the reentrancy guard `nonReentrant` is applied to function `depositMultipleERC721()`. Applying the `nonReentrant` modifier to only one of the user-facing functions limits its effectiveness and use as reentrancy protection. This only prevents reentrancy that starts and iterates through function `depositMultipleERC721()` and does not prevent cross-function reentrancy that may start in other functions and reenter through `depositMultipleERC721()`, or start in `depositMultipleERC721()` and reenter through other functions. The following functions remain open to potential cross-function reentrancy combinations: - `depositSingleERC721()` - `withdrawSingleERC721()` - `mintERC721()` Adding a `nonReentrant` modifier to the functions above will increase the effectiveness of the reentrancy guard. --- In `ERC20BridgeImpl.sol`, the reentrancy guard `nonReentrant` is applied to functions `depositERC20()` and `withdrawERC20()`. Applying the `nonReentrant` modifier to only some of the user-facing functions limits its effectiveness and use as reentrancy protection. This only prevents reentrancy that starts and iterates through combinations of functions `depositERC20()` and `withdrawERC20()` and does not prevent cross-function reentrancy that may start in other functions and reenter through these functions, or start from `depositERC20()` or `withdrawERC20()` and reenter through other functions. The following functions remain open to potential cross-function reentrancy combinations: - `mintToken()`
Report ↗### base_erc20.sol - Function `airdropD()` is missing a check ensuring `usr` and `amounts` are the same length. ### base_erc721.sol - Function `setMarketplaceDistributions()` is missing validation on its input. Without proper documentation of what these values are used for, reasonable validation cannot be recommended. ### ERC721BridgeImpl.sol - Function `depositMultipleERC721()` is missing a check ensuring `nftAddress` and `tokenIds` are the same length. - Function `withdrawMultipleERC721()` is missing a check ensuring `tokenIds` and `uniqueKeys` are the same length. ### ERC20BridgeImpl.sol - Function `depositERC20()` is missing a check ensuring `amount` is nonzero. - Function `withdrawERC20()` is missing a check ensuring `amount` is nonzero.
Report ↗Functions that update state variables and are privileged should emit relevant events as notifications. Additionally: - event `NFTDetailsSet` emitted in `setNFTDetails()` of `ERC721BridgeImpl` does not detail the update to `nft.feeWithdrawAmount`. - event `ERC20DetailsSet` emitted in `setERC20Details()` of `ERC20BridgeImpl` does not detail the update to `token.burnOnDeposit`.
Report ↗The cited address input is missing a check that it is not `address(0)`.
Report ↗### ERC721BridgeImpl.sol - Function `withdrawMultipleERC721()` checks that the `msg.sender` has the role `BRIDGE` more than once, since it calls function `withdrawSingleERC721()`. - Function `mintERC721()` checks that the `mg.sender` has role `BRIDGE` more than once, since it calls function `setMarketplaceDistributions()`.
Report ↗`storage` only needs to be specified when the state of the variable referenced is to be updated. Otherwise, `memory` can be used to read the state.
Report ↗| Address | Chain | Source code |
|---|---|---|
| 0x8203…49cc0x82030cdbd9e4b7c5bb0b811a61da6360d69449cc | Chain: BNB Chain | Source code: Verified source |
| 0x7317…4a680x73178fceb736a9d6c1a9ef1fe413f09cba2d4a68 | Chain: Avalanche | |
| 0x9fb8…2e8d0x9fb83c0635de2e815fd1c21b3a292277540c2e8d | Chain: Ethereum | Source code: Verified source |
| 0xe6b9…57460xe6b9d092223f39013656702a40dbe6b7decc5746 | Chain: Polygon (POS) | Source code: Verified source |
Trustblock holds 1 public audit report for RealFevr, dated 1 Mar 2024. The latest is by CertiK (“RealFevr - bridge”).
CertiK wrote the report Trustblock holds for RealFevr.
16 findings are still open or acknowledged in the firms’ reports: 3 high, 3 medium, 10 low (13 open, 3 acknowledged). No critical finding is reported. Statuses are the security firms’ own.
Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us