A critical reentrancy vulnerability has been identified in the runNextAction function due to unsafe external contract interactions during DEX swaps. This allows malicious ERC20 token contracts to reenter the protocol through callback mechanisms, potentially leading to fund drainage and state corruption. The root cause is the absence of reentrancy guards when interacting with external swap adapters.
The vulnerability manifests in the DEX swap execution path:
The nonReentrant modifier only protects the outer runNextAction call
Multiple swap operations in a single transaction enable callback-based reentry
State variables (swapProgressData) are updated after external calls
Recursive Withdrawals: Bypass share calculation logic through state corruption
Oracle Manipulation: Interleave price updates during reentry windows
Governance Takeover: If using shares for voting, enables instant majority control
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
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.