Competitive Audits
First Flights
Leaderboard
Docs
Toggle theme
Sign up
Log in
All First Flights
Puppy Raffle
Submissions
AI First Flight
Puppy Raffle
AI First Flight #1
Beginner Friendly
Foundry
Solidity
NFT
EXP
AI First Flight
EXP
Sep 16th, 2026 → Sep 16th, 2026
View repo
View results
9 / 9
Submissions
Severity
Validity
Tags
Author
#1
Reentrancy in refund() (CEI violation) allows draining ETH deposited by other players
High
Valid
[H-02] Reentrancy Vulnerabi...
comphygxp
#2
refund() leaves an address(0) hole in players[] that breaks prize accounting, duplicate-check, and winner minting
High
Valid
[H-04] `PuppyRaffle::refund...
comphygxp
#3
Unchecked uint64 narrowing cast in totalFees silently wraps around, permanently bricking withdrawFees()
High
Valid
[H-05] Typecasting from uin...
comphygxp
#4
selectWinner() "randomness" is fully attacker-grindable via msg.sender/block.timestamp/block.difficulty
High
Valid
[H-03] Randomness can be gamed
comphygxp
#5
withdrawFees() strict balance==totalFees equality can be permanently broken by selfdestruct force-feed or normal next-round entry
Medium
Valid
[M-02] Slightly increasing ...
comphygxp
#6
enterRaffle() duplicate-check is O(n^2) over the full players array, causing gas cost to blow up and eventually exceed the block gas limit
Medium
Valid
[M-01] `PuppyRaffle: enterR...
comphygxp
#7
selectWinner() pushes ETH and mints NFT atomically - one bad-receiver entrant bricks the round
Medium
Valid
[M-03] Impossible to win ra...
comphygxp
#8
tokenURI() emits syntactically invalid JSON - rarity value is not wrapped in double quotes
Low
Invalid
comphygxp
#9
Off-by-one in rarity tier boundaries (<= instead of <) skews NFT rarity odds away from the documented 70/25/5 split
Low
Valid
[L-03] Participants are mis...
comphygxp
Previous
1
Next
Support
FAQs
Can't find an answer? Chat with us on Discord, Twitter or Linkedin.
What is Cyfrin CodeHawks?
What is a competitive audit?
How can I host a competition on CodeHawks?
How is a contest prize pool determined?
How do I get rewarded?
What is a First Flight?
Give us feedback!