Skip to content

Code4rena

Megapot

Every publicly disclosed report for Megapot and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
4
first disclosure
2026
Find Megapot on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Megapot chose to make public.

Business logic

Changing Payout Calculator During Active Drawing Causes Loss of Unclaimed Winnings

The jackpot contract reads mutable configuration values such as the payout calculator, entropy provider, protocol fee and referral fee at settlement time rather than snapshotting them when a drawing starts. An admin (or a compromised admin key) could change these mid-drawing so that winnings, fees or refunds are calculated differently from what players expected.

Megapot

Medium
Business logic

Changing Entropy Provider During Active Drawing Causes Permanent Protocol Lock and Callback Failure

The jackpot contract reads its entropy provider, LP manager, payout calculator, protocol fee and referral fee at settlement time rather than snapshotting them when a drawing starts. An admin (or a malicious/compromised one) could swap these mid-drawing so the randomness callback reverts, permanently stalling the drawing, or alter the fees and payouts applied at settlement.

Megapot

Medium
Business logic

LP pool cap may be exceeded on drawing settlement

The LP pool cap is not enforced when a drawing settles, so the LP pool total can exceed the governance pool cap. This can make the maximum bonus ball exceed the safe bit-packing limit, causing ticket purchases with that bonus ball to revert and disrupting betting.

Megapot

High
Business logic

lpEarnings generated in emergency mode become stuck on the contract

When the jackpot enters emergency mode, the runJackpot function is blocked, so lpEarnings for the current drawing are never moved to the accumulator. However, claimWinnings can still be called for previous drawings and credits referral win shares to lpEarnings of the current drawing, leaving those funds permanently stuck in the contract.

Megapot

Medium
Access control

Attacker can steal JackpotTicketNFT ’s from JackpotBridgeManager.sol

The JackpotBridgeManager contract makes an external call to a user-supplied address and data when bridging funds, allowing an attacker to call the ticket NFT contract and transfer a victim's NFT to themselves. The attacker then uses the NFT transfer callback to pull the approved USDC, satisfying the balance check and completing the theft.

Megapot

High
Business logic

Global Variable Manipulation During Active Draw Alters End Result

The jackpot contract lets the owner change global settings such as fees, the payout calculator, the entropy provider and the LP manager while a draw is still active. Because settlement reads these values afterwards, the owner could shift payouts, alter fees or block settlement entirely.

Megapot

Medium
Smart contracts

Randomness can be exploited in some cases

The contract uses the same random seed to generate both the normal balls and the bonus ball, so when the maximum numbers are equal the bonus ball is always one of the normal balls. This reduces the effective number of combinations and lets an attacker buy all possible tickets to guarantee a profit.

Megapot

Medium