missing nonreentrant modfier #166
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
Handle
certora
Vulnerability details
https://github.com/code-423n4/2021-12-sublime/blob/main/contracts/Pool/Pool.sol
missing non reentrant modifier in terminatePool and requestMarginCall and initialize.
all of the other functions of the contract have nonreentrant modifier therefore it's inconsistent.
Impact
There's a possibility for re-entrancy. Even though I did not find a way to exploit it, it seems like this function should have the nonReentrant modifier as the other pool functions have it as well.
Recommended Mitigation Steps
Add nonReentrant
A similar issue by cmichel was approved:
code-423n4/2021-10-union-findings#67
The text was updated successfully, but these errors were encountered: