The maximumLoss parameter in YieldTokenConfig can be configured with dangerously high values, allowing excessive losses during harvest operations.
In IAlchemist.sol, the YieldTokenConfig structure is used to define maximumLoss with no upper limit:
POC
Potential loss of up to 95% of funds during harvest operations
Risk of manipulation by malicious admins
No protection against dangerous configurations
Foundry
Manual Review
Add an upper limit to maximumLoss :
Implement multi-signature governance for changes to these parameters
Add additional controls to addYieldToken
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.