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.
Using delegatecall
with untrusted data can lead to arbitrary code execution, potentially compromising the contract's security.
manual code review
Avoid using delegatecall
with untrusted data. If delegatecall
is necessary, ensure that the data is thoroughly validated and sanitized before use.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.