The contract used an incorrect function signature when calling Blast's configure function, so the call would fail if the contract's token balance exceeded 2. An attacker could donate a tiny amount of ETH to the contract to make the configure call revert, preventing yield from being set to claimable.
This can be exploited by attacker by donating a very little amount of eth to the magicLP, blastOnBoarding and now the blastOnBoarding can’t make yeild claimable when the following function is invoked.
Downgrade to M because the problematic function will be called when deployed. An attacker can just exploit it to prevent the contract from being deployed. And if the attacker wants to exploit it after the contract is deployed, since the mode is fixed to YieldMode.CLAIMABLE, it will just return even if it is called again by the Owner.
function enableTokenClaimable(address token) internal {
if (IERC20Rebasing(token).getConfiguration(address(this)) == YieldMode.CLAIMABLE) {
return;
}
This is the deployment script for blastOnboarding.sol, which shows that setTokenSupported will be called immediately after deployment.
Also, even without the deployment script, I think this is a DOS of M severity and there is no loss of funds because the user cannot deposit tokens until setTokenSupported is called.
The original report as published on Code4rena, by hassanshakeel13. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Generating the AI write-up for this report.
This usually takes about 30 seconds. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
How it worked
Root cause
Likely the contract declared and called the external configure function with an incorrect return type (no return value instead of uint256), causing the call to revert when the contract's balance is above 2.
Impact
An attacker could prevent the contract from configuring yield to be claimable, causing a denial of service for that setup step; the judge noted the impact is limited because the function is called during deployment and the mode is fixed to CLAIMABLE, so no funds are lost.
What the attacker needed
Attacker can send tokens to the contract; contract balance above 2
The fix
The issue was fixed by using the correct function signature in the interface and mock contract.
How it was found
Attacker donates a very small amount of ETH to the magicLP or blastOnBoarding contract.
The contract's balance becomes greater than 2.
When the configure function is invoked, it fails because the incorrect signature expects no return value but the real function returns a uint256.
As a result, yield cannot be set to claimable.
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 report has not been written yet. The Original tab links to the source.
Generating the AI write-up for this report.
This usually takes about 30 seconds. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
A smart contract tried to call a function on another contract but used the wrong definition of that function. Because the real function returns a number, the call fails if the contract already holds more than a tiny amount of tokens. An attacker can send a small amount of tokens to the contract to trigger this failure and block a setup step.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.