DeFiFoundry
60,000 USDC
View results
Submission Details
Severity: low
Invalid

Delegatecall to Untrusted Data

Vulnerability Details

https://github.com/Cyfrin/2024-07-zaros/blob/main/src/perpetuals/branches/TradingAccountBranch.sol

The createTradingAccountAndMulticall function uses delegatecall with user-provided data. This can lead to arbitrary code execution if the data is malicious.

Impact

Using delegatecall with untrusted data can lead to arbitrary code execution, potentially compromising the contract's security.

Tools Used

manual code review

Recommendations

Avoid using delegatecall with untrusted data. If delegatecall is necessary, ensure that the data is thoroughly validated and sanitized before use.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.