Hunt prep
Before you test Megapot
What 11 disclosed reports say about Megapot: 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 | 7 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control 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.
-
Incorrect ticket price reference in JackpotBridgeManager causes user overpayment after price updates
The bridge manager should fetch the ticket price from the current drawing state instead of the global ticket price.
Disclosed
-
Changing Entropy Provider During Active Drawing Causes Permanent Protocol Lock and Callback Failure
The contract should snapshot the entropy provider, LP manager, payout calculator and fee parameters when a drawing is requested and use those stored values at callback time.
Disclosed
-
LP pool cap may be exceeded on drawing settlement
The same cap should be enforced when calculating the new LP value during settlement.
Disclosed
-
lpEarnings generated in emergency mode become stuck on the contract
Add a dedicated function that allows withdrawing the stuck funds while the protocol is in emergency mode.
Disclosed
-
Attacker can steal JackpotTicketNFT ’s from JackpotBridgeManager.sol
Validate RelayTxData before performing the external call or perform external calls only on whitelisted addresses.
Disclosed
-
Unoptimized subset matches counting implementation will exceed tx gas limit on base chain
The subsets should be cached outside the bonusball loop, and a hardcoded limit on bonusballMax should be defined.
Disclosed
-
Global Variable Manipulation During Active Draw Alters End Result
Configuration-changing functions should be restricted so they can only be called when no draw is active, for example by locking sensitive parameters between draw initialisation and settlement.
Disclosed
-
Deliberately increasing liquidity can DoS updates to the protocol’s governance parameters.
Make governance parameter updates less dependent on LP behavior, for example by allowing the cap to be set lower than the current pool or by using a different mechanism.
Disclosed
-
Randomness can be exploited in some cases
Use a different seed for the bonus ball when generating random numbers.
Disclosed
-
Changes to Pyth entropy provider used by ScaledEntropyProvider allow attacker to fix jackpot result
The pending requests should be stored in a nested mapping keyed by both entropy provider address and sequence number.
Disclosed