Alchemix Access Control Bug Fix Review
The setWhitelist() function in AlchemistEth.sol lacked access control, allowing any user to whitelist addresses to call harvest() and flush(). An attacker could front-run the intended keepers to block these calls, causing a denial of service, though losses were limited to about $300 due to yearn vault safeguards.
immunefi.com
Published on immunefi.com
Whitehat Ashiq Amien, security researcher at the auditing firm iosiro, discovered a vulnerability in Alchemix on June 16, which consisted of an access control issue. The vulnerability was given a severity rating of “high.” Alchemix rewarded Ashiq a bounty of $7,500, paid to iosiro at request.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could front-run the intended keeper addresses to block harvest() and flush(), causing a denial of service, but estimated losses were approximately $300 due to yearn vault safeguards.
What the attacker needed
None
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A smart contract had a function that anyone could call to change who is allowed to perform certain actions. This let an attacker block the legitimate operators from doing their job, causing a denial of service. The damage was small because other safeguards limited losses.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.