An attacker can preemptively create a permanent locked vesting account at a deterministic future contract address, causing any subsequent contract deployment to that address to store bytecode without a codeHash, making the contract and any funds sent to it permanently inaccessible.
The EVM state database was not synchronised with bank balances for certain operations like staking, allowing an attacker to mint unlimited Nibi tokens by exploiting the discrepancy. An attacker could create a Wasm contract to delegate tokens and an EVM contract to trigger the delegation, causing the EVM to mint tokens equal to the delegated amount.
Precompile methods in Nibiru's EVM did not consume gas when they failed, allowing an attacker to repeatedly trigger failures and consume computational resources without paying the corresponding gas. This could lead to a denial-of-service attack by exhausting block gas limits.
The StateDB used during Ethereum transactions could overwrite state changes made by precompiles, allowing an attacker to double-spend FunToken balances by converting ERC20 tokens to bank coins while the StateDB still believed the original balance remained.
In the Nibiru EVM module, failed contract calls did not add their gas usage to the block gas meter, unlike successful calls. This could cause the block gas meter to undercount gas when a failed call was the last in a block, potentially leading to incorrect gas accounting.
The bank keeper holds a shared pointer to the EVM StateDB that is set during read-only operations like gas estimation, and its presence changes gas computation for later bank transactions. This can cause different nodes to compute different gas amounts for the same transaction, leading to consensus failure.
The ERC20 transfer function in erc20.go assumes all tokens return a boolean, causing transfers of non-compliant tokens like USDT to fail. An attacker could not exploit this directly, but users cannot transfer such tokens through the system.
The EVM module incorrectly handles fee-on-transfer tokens when converting bank coins back to ERC20s, burning only the amount after fees instead of the full input. This leaves unbacked bank coins in circulation, breaking the 1:1 supply invariant between ERC20 tokens and their bank coin representations.
The gas refund calculation used cumulative block gas instead of the transaction's own gas usage, so users received smaller refunds than they should. An attacker could not directly exploit this, but users would lose funds when multiple transactions were included in a block.
The Nibiru EVM module incorrectly handled fee denominations during transaction validation and building, using wei amounts directly as unibi without conversion. This could cause fees to be undervalued by a factor of 10^12, potentially allowing users to pay far fewer fees than intended.
The TraceTx gRPC query simulates all predecessor transactions without a limit on their number, so an attacker can supply a huge list and force the node to perform excessive computation. This can lead to a denial of service by consuming node resources.
The bankBalance function in a precompile did not check the error returned when decoding call arguments, so it proceeded to call GetBalance with invalid data. This could cause an unexpected panic that is not caught by the out-of-gas handler, potentially crashing the program.
The IOracle.queryExchangeRate precompile returns the current block time instead of the time when the price was last updated. An attacker could exploit this to make stale prices appear fresh, bypassing staleness checks in downstream contracts.
The nonce handling for Ethereum transactions in Nibiru allowed a user to include multiple EVM messages in one SDK transaction, where a contract creation message would reset the account nonce, enabling replay of subsequent messages. An attacker could reuse nonces to replay their own transactions.
The Nibiru EVM module assumes a static 1:1 relationship between escrowed ERC20 tokens and bank coins, which breaks for rebasing tokens whose balances change outside transfers. This can cause either stuck funds (positive rebases) or failed conversions due to insufficient escrow balance (negative rebases).
NI
Nibiru
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.