Closed c4-submissions closed 1 year ago
msg.value is never used except for flashloans which would revert on a second call
Leaving up but pretty sure this is wrong
0xfoobar (sponsor) disputed
GalloDaSballo marked the issue as unsatisfactory: Insufficient proof
Lines of code
https://github.com/delegatexyz/delegate-registry/blob/6d1254de793ccc40134f9bec0b7cb3d9c3632bc1/src/DelegateRegistry.sol#L31-L41
Vulnerability details
Impact
DelegateCall using unsafe manner and caller contract modified by logic inside of this contract and produce accounting errors.(msg.data) influenced by the caller without signature verification it leads to massive multiple accounting errors while delegately calling inside of this loop.
Proof of Concept
Tools Used
1.Manual Audit with Solidity visual developer.
Recommended Mitigation Steps
1.By using (encodeWithSignature) with in (delegateCall) and using (require) to confirm state. 2.Executing an excessive number of delegatecalls in a single transaction may exceed the block gas limit and leading to transaction failures.
Assessed type
call/delegatecall