Skip to content
Business logic Audit finding Intermediate

Consider introducing the ability to change requ

The multisig wallet contract lets owners be added but never adjusts the number of required confirmations upward, so the ratio of required signers to total owners can become very low. The reporter frames this as a design weakness rather than an exploitable vulnerability.

Another Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

26519 - [SC - Insight] Consider introducing the ability to change requ...

Submitted on Dec 4th 2023 at 12:21:59 UTC by @Another for Boost | DeGate

Report ID: #26519

Report type: Smart Contract

Report severity: Insight

Target: https://etherscan.io/address/0x2028834B2c0A36A918c10937EeA71BE4f932da52#code

Impacts:

  • Consider introducing the ability to change required while adding owners

Description

Bug Description

Take a look at MultiSigWallet#L125-156

Solidity
    /// @dev Allows to add a new owner. Transaction has to be sent by wallet.
    /// @param owner Address of new owner.
    function addOwner(address owner)
        public
        onlyWallet
        ownerDoesNotExist(owner)
        notNull(owner)
        validRequirement(owners.length + 1, required)
    {
        isOwner[owner] = true;
        owners.push(owner);
        OwnerAddition(owner);

      /// @dev Allows to remove an owner. Transaction has to be sent by wallet.
    /// @param owner Address of owner.
    function removeOwner(address owner)
        public
        onlyWallet
        ownerExists(owner)
    {
        isOwner[owner] = false;
        for (uint i=0; i<owners.length - 1; i++)
            if (owners[i] == owner) {
                owners[i] = owners[owners.length - 1];
                break;
            }
        owners.length -= 1;
        if (required > owners.length)
            changeRequirement(owners.length);
        OwnerRemoval(owner);
    }

At present implementation even if wallet adds ten more owners required would be stuck with the value it was initialized with, where as it would be good to note that while removing the owners the requirement could be reduced, this still seems like a downside to protocol logic.

Impact

Borderline low/info, since if addressews are only ever added, i.e the logic still being the same that previous owners are still owners but new owners need to be added, therre is obviously a need to rearrrange the ration between the amount of owners and the valid signers that are needed to pass a decision, but this is not available.

Risk Breakdown

Difficulty to Exploit: Easy Weakness: CVSS2 Score:

Recommendation

Currently the value for required only changes if the owner array decreases, which means that if 10 people get added as new owners the ratio of the requirement and the amount of owners would be massively deflated.

References

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

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

Likely the addOwner function does not update the required confirmation count when owners are added, only removeOwner lowers it when needed.

Impact

The approval threshold could become disproportionately low compared with the number of owners, weakening the wallet's security posture; the reporter rates this as borderline low/informational.

What the attacker needed

Owner adds new owners over time

The fix

The contract should allow the required confirmation count to be changed when owners are added, so the ratio stays sensible.

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.

A multisig wallet needs a certain number of owners to approve a transaction before it goes through. This contract lets new owners be added, but the approval threshold stays the same, so over time fewer people are needed relative to the total owner count. The reporter says this is a design concern, not a direct attack.

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 Another

View all

24 more disclosed reports, best first.

More from DeGate

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.