wrong operator used in checking the fees, adminfee, withdrawfee #254
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
JMukesh
Vulnerability details
Impact
wrong operator used in checking the fees, adminfee, withdrawfee instead of
require(_fee < SwapUtils.MAX_SWAP_FEE, "_fee exceeds maximum");
Proof of Concept
https://github.com/code-423n4/2021-11-bootfinance/blob/b4ebd0a5ebcbc24f3d15836cdb9759243fc85868/customswap/contracts/Swap.sol#L192
Tools Used
manual review
Recommended Mitigation Steps
use correct operator to check the value
The text was updated successfully, but these errors were encountered: