Wrong revert message #171
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
Czar102
Vulnerability details
Impact
Wrong revert messages might lead to confusion.
Proof of Concept
In line 52 of XDEFIDistribution, the reason for a fail of a reentrant call is
"LOCKED"
. In DeFi, it usually means that contract's functionality is temporarily limited. This is not true in this case.Recommended Mitigation Steps
Consider changing the revert string to
"REENTRY_NOT_ALLOWED"
.The text was updated successfully, but these errors were encountered: