The IBlockHashRetain.vyi
interface lacks a mandatory time delay between commit and apply operations,which requires protection against get-or-create pattern vulnerabilities.
The current implementation allows immediate application after commitment:
Critical issues:
No minimum waiting period between commit and apply
Both operations can occur in the same block
No timestamp validation
Allows instant finalization of potentially manipulated data
Manipulation of oracle data through rapid commit-apply sequences
No time for validators to verify committed values
Potential price manipulation in dependent protocols
Bypass of intended security checks
Manual Review
Implement mandatory timelock:
Add emergency pause mechanism:
This ensures adequate time for validation and prevents rapid manipulation attempts while maintaining protocol security.
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.