Reentrancy vulnerability in ThePredicter::cancelRegistration
The ThePredicter::cancelRegistration
function allows users who have registered but have not been approved by the organizer to withdraw their registration fee. But the function does not follow CEI(checks, interaction, and effect), it performs a state change after the ETH(registration fee) has been sent to the user.
Add code to test file
This opens the function up to a reentrancy attack as a contract can continuously call the function draining all the funds in ThePredicter
contract.
Static Analysis (Slither) and Manual Analysis
Follow CEI
Reentrancy of ThePredicter::cancelRegistration allows a maliciour user to drain all funds.
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.