The SantasList.onlySanta() is unprotected and can be called multiple times.
https://github.com/Cyfrin/2023-11-Santas-List/blob/6627a6387adab89ae2ba2e82b38296723261c08a/src/SantasList.sol#L99-L104
modifier onlySanta() {
if (msg.sender != i_santa) {
revert SantasList__NotSanta();
}
_;
}
The unprotected initializer usually involves failing to properly secure the contract's initialization function, allowing it to be called more than once.
Manual Code Review
Add the initializer modifier to the initialize() function and include an explicit test that every initialization function in the system can be called once and only once.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.