Skip to content
Business logic Audit finding Intermediate

ArbitrumCoreBranchRouter.executeNoSettlement can’t handle 0x07 function

The ArbitrumCoreBranchRouter contract's executeNoSettlement function cannot handle the 0x07 function (setCoreBranchRouter), unlike its parent CoreBranchRouter. This means calls to set the core branch router on Arbitrum would fail, potentially preventing configuration updates.

rvierdiiev Follow

Originally disclosed on Code4rena

Submitted by rvierdiiev

ArbitrumCoreBranchRouter.executeNoSettlement can’t handle the setCoreBranchRouter function.

Proof of Concept

ArbitrumCoreBranchRouter extends CoreBranchRouter and overrides its executeNoSettlement function. CoreBranchRouter.executeNoSettlement can handle the 0x07 function, but ArbitrumCoreBranchRouter.executeNoSettlement can’t.

I believe this is because previously CoreBranchRouter.executeNoSettlement also didn’t handle 0x07 function and when support for it was added, ArbitrumCoreBranchRouter was not updated with new function.

Tools Used

VsCode

Recommended Mitigation Steps

Add support of 0x07 function.

Assessed type

Error

0xBugsy (Maia) confirmed

0xBugsy (Maia) commented:

Addressed here.


The original report as published on Code4rena, by rvierdiiev. 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.

How it worked

Root cause

Likely, when support for the 0x07 function was added to CoreBranchRouter, the overridden executeNoSettlement in ArbitrumCoreBranchRouter was not updated to include the same handling.

What the attacker needed

None

The fix

Support for the 0x07 function should be added to ArbitrumCoreBranchRouter.executeNoSettlement; the report notes it was addressed in a later commit.

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.

This is a smart contract bug where a specialised router on Arbitrum is missing support for a specific operation (identified by the code 0x07) that its parent contract supports. As a result, trying to use that operation through the Arbitrum router would not work, which could block an important setup step.

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 rvierdiiev

View all

72 more disclosed reports, best first.

More from Maia DAO - Ulysses

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.