Skip to content
Business logic Audit finding Intermediate

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.

Aymen0909 Follow with ether_sky, hash and 4 others

Originally disclosed on Sherlock

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.

Solidity
 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

Solidity
    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

https://github.com/sherlock-audit/2024-03-axis-finance/blob/cadf331f12b485bac184111cdc9ba1344d9fbf01/moonraker/src/blast/modules/BlastGas.sol#L11

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.

Solidity
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.

The original report as published on Sherlock, by Aymen0909. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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.

More by Aymen0909

View all

22 more disclosed reports, best first.

More from Axis Finance

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.