Hunt prep
Before you test Nibiru
What 16 disclosed reports say about Nibiru: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 10 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Vesting account preemption attack preventing future contract deployment
The built-in auth/vesting module functionality was disabled as a mitigation.
Disclosed
-
Unlimited Nibi could be minted because evm and bank balance are not synced when staking
The vulnerability was fixed by adding additional missing bank keeper method overrides to sync with StateDB.
Disclosed
-
Gas used mismatch in failed contract calls can lead to wrong gas deductions
The issue was mitigated by removing the BlockGasUsed gas meter and changing the model so each EVM message adds to the gas meter directly.
Disclosed
-
Non-deterministic gas consumption due to shared StateDB pointer in bank keeper affecting consensus
The issue was mitigated by ensuring only one copy of StateDB exists when executing Ethereum transactions, and the sponsor confirmed the mitigation.
Disclosed
-
ERC20 transfer fails with non-compliant tokens missing return values
The transfer function should treat a transfer as successful if the token returns true or if it returns no value and the transfer did not revert.
Disclosed
-
Double fee application breaks supply invariant for fee-on-transfer ERC20s
The code should burn the full input amount of bank coins, not just the amount after fees, to maintain the supply invariant.
Disclosed
-
Gas refunds use block gas instead of transaction gas, leading to incorrect refund amounts
The refund calculation should be based on each transaction's individual gas usage rather than the block gas, and the project mitigated this in PR-2132.
Disclosed
-
Inconsistent fee denomination handling in transaction validation and building
The issue was fixed by converting wei to unibi using a conversion function in both locations.
Disclosed
-
RPC DOS via TraceTx
The maintainers acknowledged the issue but have not fixed it; suggested mitigations include limiting the number of predecessors, enforcing a total gas limit, and adding a timeout.
Disclosed
-
The bankBalance function failed to handle errors correctly
The code was fixed by adding an error check after parsing arguments and returning an invalid-args error if parsing fails.
Disclosed
-
IOracle.queryExchangeRate returns incorrect blockTimeMs
The issue was fixed by adding the block timestamp as a field in the price storage and returning that timestamp.
Disclosed
-
Nonce can be manipulated by inserting a contract creation EthereumTx message first in an SDK TX with multiple EthereumTX messages
The sender's nonce should be set to msg.Nonce() + 1 when contractCreation is false, and the project mitigated the issue with a pull request for proper nonce management.
Disclosed
-
Nibiru’s bank coin to EVM balance tracking logic is completely broken for rebasing tokens and would lead to leakage/loss of funds when converting
The project should either not support rebasing tokens or provide a mechanism to handle balance changes in the escrow/EVM module.
Disclosed