Maia DAO - Ulysses - n1punp'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: 90/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 assets stored in VirtualAccount can get stole.

Proof of Concept

Virtual Account has a functionality payableCall to make arbitrary custom calls. However, the function is not correctly access-controlled. Anyone can initiate the function call, including transfers of tokens stored in the account, or any malicious actions.

Tools Used

Manual Review

  • Add requiresApprovedCaller modifier to the function (similar to how call function is modified)

Assessed type

Access Control

#0 - c4-pre-sort

2023-10-08T14:29:44Z

0xA5DF marked the issue as duplicate of #888

#1 - c4-pre-sort

2023-10-08T14:57:14Z

0xA5DF marked the issue as sufficient quality report

#2 - c4-judge

2023-10-26T11:31:08Z

alcueca marked the issue as satisfactory

Lines of code

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

Vulnerability details

Impact

ERC1155 can be stuck in VirtualAccount forever. This applies to any ERC1155 tokens that the virtual account owner may have used.

Proof of Concept

The VirtualAccount contract is designed to be able to receive ERC1155, as we've seen in the contract that the onERC1155Received and onERC1155BatchReceived is correctly implemented. However, withdrawals of ERC1155 tokens are not implemented. This means that the transferred ERC1155 will not be able to be retrieved and will be stuck forever.

Tools Used

Manual Review

  • Add withdrawERC1155 functionality, OR
  • Remove the support for ERC1155 receive.

Assessed type

Token-Transfer

#0 - c4-pre-sort

2023-10-09T07:03:35Z

0xA5DF marked the issue as duplicate of #408

#1 - c4-pre-sort

2023-10-09T10:45:53Z

0xA5DF marked the issue as sufficient quality report

#2 - c4-judge

2023-10-24T14:25:54Z

alcueca changed the severity to QA (Quality Assurance)

#3 - c4-judge

2023-10-24T14:26:57Z

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