Vulnerability found in function ThePredicter::cancelRegistration
where reentrancy attack could occur resulting fund fees get drained.
Function ThePredicter::cancelRegistration
allows users who are not chosen as player to cancel their registration and withdraw their paid entrance fees.
However, the function implements an external call to withdraw entrance fee before doing a global state update on the playerStatus, thus creating a reentrancy attack possibility
Reentrancy attack that could result the loss of fund fees
Manual review
To update global state of playerStatus before making external call
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.