Maia DAO - Ulysses - alexweb3's results

Harnessing the power of Arbitrum, Ulysses Omnichain specializes in Virtualized Liquidity Management.

General Information

Platform: Code4rena

Start Date: 22/09/2023

Pot Size: $100,000 USDC

Total HM: 15

Participants: 175

Period: 14 days

Judge: alcueca

Total Solo HM: 4

Id: 287

League: ETH

Maia DAO

Findings Distribution

Researcher Performance

Rank: 84/175

Findings: 2

Award: $25.79

QA:
grade-a

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2023-09-maia/blob/main/src/VirtualAccount.sol#L85

Vulnerability details

Impact

All the non-view and non-pure functions in the VirtualAccount contract have the requiresApprovedCaller modifier, except the payableCall function. This would allow anyone to make arbitrary calls and steal the user's funds.

Tools Used

Manual Review

Add the requiresApprovedCaller modifier to the payableCall function as well.

Assessed type

Access Control

#0 - c4-pre-sort

2023-10-08T14:03:42Z

0xA5DF marked the issue as duplicate of #888

#1 - c4-pre-sort

2023-10-08T14:37:08Z

0xA5DF marked the issue as sufficient quality report

#2 - c4-judge

2023-10-26T11:29:08Z

alcueca marked the issue as satisfactory

Lines of code

https://github.com/code-423n4/2023-09-maia/blob/main/src/CoreBranchRouter.sol#L62-L79

Vulnerability details

Impact

The EIP20 standard, in regard to the decimals() function states "OPTIONAL - This method can be used to improve usability, but interfaces and other contracts MUST NOT expect these values to be present."

If an underlying token does not implement the decimals method, the line "uint8 decimals = ERC20(_underlyingAddress).decimals();" will cause the transaction to revert.

Tools Used

Manual Review

Add a try/catch block, and in catch block set the decimals to a default value, maybe 18.

Assessed type

DoS

#0 - c4-pre-sort

2023-10-09T10:55:14Z

0xA5DF marked the issue as duplicate of #649

#1 - c4-pre-sort

2023-10-09T10:56:04Z

0xA5DF marked the issue as sufficient quality report

#2 - c4-judge

2023-10-23T05:37:07Z

alcueca changed the severity to QA (Quality Assurance)

#3 - c4-judge

2023-10-23T05:38:09Z

alcueca marked the issue as grade-a

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter