Low
The contract lacks any emergency pause or circuit breaker mechanism, making it impossible to stop operations if a security vulnerability or critical bug is discovered. This forces the system to continue operating even under adverse conditions, potentially putting funds at risk.
Circuit breakers or emergency pause functions are security best practices for DeFi protocols and financial systems. They provide a way to temporarily halt operations when unexpected behaviors or security issues arise, limiting potential damage.
The Hawk High School contract provides no mechanism to pause operations, leaving the principal with only two options in case of an emergency:
Let the vulnerable system continue operating, risking user funds
Attempt an emergency upgrade, which might not be possible or safe depending on the situation
The contract has funds controlled by business logic, making it a prime candidate for including safety measures like circuit breakers.
Manual code review
Implement a pause mechanism using OpenZeppelin's Pausable contract:
This ensures that if a vulnerability is discovered, the principal can immediately pause the contract to prevent exploitation, while still allowing critical operations like fund withdrawals to proceed.
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.