Module's gas yield can never be claimed and all yield will be lost
The protocol's modules on Blast never set their gas yield mode to claimable, leaving it at the default VOID, so the auction house cannot claim any gas yield. As a result, all gas yield that would have accrued is permanently lost.
Source: https://github.com/sherlock-audit/2024-03-axis-finance-judging/issues/26
Found by
Aymen0909, ether_sky, hash, irresponsible, merlin, no, sl1
Summary
Module's gas yield can never be claimed
Vulnerability Detail
The protocol is meant to be deployed on blast, meaning that the gas and ether balance accrue yield.
By default these yield settings for both ETH and GAS yields are set to VOID as default, meaning that unless we configure the yield mode to claimable, we will be unable to recieve the yield. The protocol never sets gas to claimable for the modules, and the governor of the contract is the auction house, the auction house also does not implement any function to set the modules gas yield to claimable.
constructor(address auctionHouse_) LinearVesting(auctionHouse_) BlastGas(auctionHouse_) {}
The constructor of both BlastLinearVesting and BlastEMPAM set the auction house here
BlastGas(auctionHouse_) if we look at this contract we can observe the above.
BlastGas.sol
constructor(address parent_) {
// Configure governor to claim gas fees
IBlast(0x4300000000000000000000000000000000000002).configureGovernor(parent_);
}
As we can see above, the governor is set in constructor, but we never set gas to claimable. Gas yield mode will be in its default mode which is VOID, the modules will not accue gas yields. Since these modules never set gas yield mode to claimable, the auction house cannot claim any gas yield for either of the contracts. Additionally the auction house includes no function to configure yield mode, the auction house contract only has a function to claim the gas yield but this will revert since the yield mode for these module contracts will be VOID.
Impact
Gas yields will never acrue and the yield will forever be lost
Code Snippet
Tool used
Manual Review
Recommendation
change the following in BlastGas contract, this will set the gas yield of the modules to claimable in the constructor and allowing the auction house to claim gas yield.
interface IBlast {
function configureGovernor(address governor_) external;
function configureClaimableGas() external;
}
abstract contract BlastGas {
// ========== CONSTRUCTOR ========== //
constructor(address parent_) {
// Configure governor to claim gas fees
IBlast(0x4300000000000000000000000000000000000002).configureClaimableGas();
IBlast(0x4300000000000000000000000000000000000002).configureGovernor(parent_);
}
}
Discussion
nevillehuang
Valid, due to this comment within the contract indicating interest in claiming gas yield but it can never be claimed
sherlock-admin4
The protocol team fixed this issue in the following PRs/commits: https://github.com/Axis-Fi/moonraker/pull/144
10xhash
The protocol team fixed this issue in the following PRs/commits: Axis-Fi/moonraker#144
Fixed
Now configureClaimableGa() is invoked inside constructor
sherlock-admin4
The Lead Senior Watson signed off on the fix.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The BlastGas constructor sets the governor but never calls configureClaimableGas, so the gas yield mode remains at its default VOID.
What the attacker needed
Protocol deployed on Blast; gas yield mode left at default VOID
The fix
The issue was fixed by calling configureClaimableGas inside the constructor.
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.
On the Blast network, contracts can earn yield on the gas they spend, but only if they explicitly turn on that feature. The protocol's modules forgot to turn it on, so the yield was never earned and is lost forever.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.