This is a special rendition of CodeHawks First Flights, as this contract is a simplified version of a real contract which was audited by Cyfrin in a private audit and contained the same bug! Thanks to Dacian for creating this First Flight! Your mission, should you choose to accept it, is to find that bug!
High - 100xp
Medium - 20xp
Low - 2xp
Starts: December 15, Noon UTC
Ends: December 22, Noon UTC
This is a special rendition of CodeHawks First Flights, as this contract is a simplified version of a real contract which was audited by Cyfrin in a private audit and contained the same bug! Thanks to Dacian for creating this First Flight!
Your mission, should you choose to accept it, is to find that bug!
This contract allows the creator to invite a select group of people to vote on something and provides an eth reward to the for
voters if the proposal passes, otherwise refunds the reward to the creator. The creator of the contract is considered "Trusted".
This contract has been intentionally simplified to remove much of the extra complexity in order to help you find the particular bug without other distractions. Please read the comments carefully as they note specific findings that are excluded as the implementation has been purposefully kept simple to help you focus on finding the harder to find and more interesting bug.
This contract intentionally has no time-out period for the voting to complete; lack of a time-out period resulting in voting never completing is not a valid finding as this has been intentionally omitted to simplify the codebase.
Cats are fuzzy.
git --version
and you see a response like git version x.x.x
forge --version
and you see a response like forge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)
git clone https://github.com/Cyfrin/2023-12-Voting-Booth
cd 2023-12-Voting-Booth
make
Or optionally, you can run:
forge install
forge build
forge test
forge coverage
and for coverage based testing:
forge coverage --report debug
./src/
#-- VotingBooth.sol
creator
- Deployer of the protocol, they are a trusted used who will receive the funds if a vote fails.AllowedVoters
- A list of addresses that are allowed to vote on proposals.Rank | Username | ||||
1 | t t0x1c | 286 | 1 (0) | 0 (0) | 1 |
2 | s | 256 | 1 (0) | 1 (0) | 0 |
3 | I | 244 | 1 (0) | 1 (0) | 1 |
4 | w wafflemakr | 244 | 1 (0) | 1 (0) | 1 |
5 | X XORs33r | 244 | 1 (0) | 1 (0) | 1 |
6 | R RSecurity | 240 | 1 (0) | 1 (0) | 0 |
7 | 0 | 240 | 1 (0) | 1 (0) | 0 |
8 | K | 240 | 1 (0) | 1 (0) | 0 |
9 | 0 0xnightfall | 240 | 1 (0) | 1 (0) | 0 |
10 | n | 240 | 1 (0) | 1 (0) | 0 |
11 | B | 240 | 1 (0) | 1 (0) | 0 |
12 | L | 240 | 1 (0) | 1 (0) | 0 |
13 | p pacelliv | 240 | 1 (0) | 1 (0) | 0 |
14 | r rngaza | 204 | 1 (0) | 0 (0) | 1 |
15 | M Mikea | 204 | 1 (0) | 0 (0) | 1 |
16 | y y0ng0p3 | 200 | 1 (0) | 0 (0) | 0 |
17 | 0 0x0bserver | 200 | 1 (0) | 0 (0) | 0 |
18 | D Dots | 200 | 0 (0) | 0 (0) | 0 |
19 | A AzmaeenGH | 200 | 1 (0) | 0 (0) | 0 |
20 | v valentin2304 | 200 | 0 (0) | 0 (0) | 0 |
21 | L Leogold | 200 | 1 (0) | 0 (0) | 0 |
22 | Y Y403L | 200 | 1 (0) | 0 (0) | 0 |
23 | F FrostBurnXI | 200 | 1 (0) | 0 (0) | 0 |
24 | v vannibas | 200 | 1 (0) | 0 (0) | 0 |
25 | P Poor4ever | 200 | 1 (0) | 0 (0) | 0 |
26 | w wallebach | 200 | 1 (0) | 0 (0) | 0 |
27 | 0 0xloscar01 | 200 | 1 (0) | 0 (0) | 0 |
28 | A Aitor | 200 | 1 (0) | 0 (0) | 0 |
29 | D DeFiesta | 200 | 1 (0) | 0 (0) | 0 |
30 | H Heba | 200 | 1 (0) | 0 (0) | 0 |
31 | k ke1caM | 200 | 1 (0) | 0 (0) | 0 |
32 | L L9xd | 200 | 1 (0) | 0 (0) | 0 |
33 | C Coffee | 200 | 1 (0) | 0 (0) | 0 |
34 | P PratRed | 200 | 1 (0) | 0 (0) | 0 |
35 | 0 0xk3y | 200 | 1 (0) | 0 (0) | 0 |
36 | 0 0xMaurice | 200 | 1 (0) | 0 (0) | 0 |
37 | 0 | 200 | 1 (0) | 0 (0) | 0 |
38 | r rapstyle | 200 | 1 (0) | 0 (0) | 0 |
39 | K Kethic | 200 | 1 (0) | 0 (0) | 0 |
40 | I | 200 | 1 (0) | 0 (0) | 0 |
41 | r rocknet | 200 | 1 (0) | 0 (0) | 0 |
42 | N Nocturnus | 200 | 1 (0) | 0 (0) | 0 |
43 | i ishtagy | 200 | 1 (0) | 0 (0) | 0 |
44 | i innertia | 200 | 1 (0) | 0 (0) | 0 |
45 | 0 0xRolko | 200 | 1 (0) | 0 (0) | 0 |
46 | f f3d0ss | 200 | 1 (0) | 0 (0) | 0 |
47 | a adamn000 | 200 | 1 (0) | 0 (0) | 0 |
48 | E EloiManuel | 200 | 1 (0) | 0 (0) | 0 |
49 | E EmanHerawy | 200 | 1 (0) | 0 (0) | 0 |
50 | d dougo | 200 | 1 (0) | 0 (0) | 0 |
51 | z zhuying | 200 | 1 (0) | 0 (0) | 0 |
52 | a atlanticbase | 200 | 1 (0) | 0 (0) | 0 |
53 | h haxatron | 200 | 1 (0) | 0 (0) | 0 |
54 | C CryptoKook | 200 | 1 (0) | 0 (0) | 0 |
55 | 0 0xfuluz | 200 | 1 (0) | 0 (0) | 0 |
56 | i israeladelaja | 200 | 1 (0) | 0 (0) | 0 |
57 | c cem | 200 | 1 (0) | 0 (0) | 0 |
58 | J Joshuajee | 200 | 1 (0) | 0 (0) | 0 |
59 | M Mahmudsudo | 200 | 1 (0) | 0 (0) | 0 |
60 | k karthick | 200 | 1 (0) | 0 (0) | 0 |
61 | r richuak | 200 | 1 (0) | 0 (0) | 0 |
62 | m mahivasisth | 200 | 1 (0) | 0 (0) | 0 |
63 | 0 | 200 | 1 (0) | 0 (0) | 0 |
64 | l | 200 | 1 (0) | 0 (0) | 0 |
65 | a alsirang | 200 | 1 (0) | 0 (0) | 0 |
66 | A Astha0211 | 200 | 1 (0) | 0 (0) | 0 |
67 | e emacab98 | 200 | 1 (0) | 0 (0) | 0 |
68 | o oxcabe | 200 | 1 (0) | 0 (0) | 0 |
69 | a abhishekthakur | 200 | 1 (0) | 0 (0) | 0 |
70 | A AyoEth | 200 | 1 (0) | 0 (0) | 0 |
71 | R Ryonen | 200 | 1 (0) | 0 (0) | 0 |
72 | V Voyager666 | 200 | 1 (0) | 0 (0) | 0 |
73 | 0 0x6a70 | 200 | 1 (0) | 0 (0) | 0 |
74 | S Sovni | 200 | 1 (0) | 0 (0) | 0 |
75 | R Ritos | 200 | 1 (0) | 0 (0) | 0 |
76 | I IvanFitro | 200 | 1 (0) | 0 (0) | 0 |
77 | V VicRdev | 200 | 1 (0) | 0 (0) | 0 |
78 | a akhoronko | 200 | 1 (0) | 0 (0) | 0 |
79 | k k3ySk1lls | 200 | 1 (0) | 0 (0) | 0 |
80 | S SkyHunter | 200 | 1 (0) | 0 (0) | 0 |
81 | 0 0xbjorn | 200 | 1 (0) | 0 (0) | 0 |
82 | D DenSosnovskyi | 200 | 1 (0) | 0 (0) | 0 |
83 | O Oba | 200 | 1 (0) | 0 (0) | 0 |
84 | D DenTonylifer | 200 | 1 (0) | 0 (0) | 0 |
85 | k kryptonomousB | 200 | 1 (0) | 0 (0) | 0 |
86 | n | 200 | 1 (0) | 0 (0) | 0 |
87 | M MikeDougherty | 200 | 1 (0) | 0 (0) | 0 |
88 | E Ericselvig | 200 | 1 (0) | 0 (0) | 0 |
89 | C C0D30 | 200 | 1 (0) | 0 (0) | 0 |
90 | K Kaiziron | 40 | 0 (0) | 1 (0) | 0 |
91 | T TrillionX | 40 | 0 (0) | 1 (0) | 0 |
92 | T ThomasHeim | 40 | 0 (0) | 1 (0) | 0 |
93 | p pclaesen | 40 | 0 (0) | 1 (0) | 0 |
94 | R Ryan | 4 | 0 (0) | 0 (0) | 1 |
95 | t tk3 | 4 | 0 (0) | 0 (0) | 1 |
96 | D Davos | 4 | 0 (0) | 0 (0) | 1 |
97 | b bra0xit | 4 | 0 (0) | 0 (0) | 1 |