increaseAllowance and decreaseAllowance have been deprecated in erc20.sol #320
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
low quality report
This report is of especially low quality
primary issue
Highest quality submission among a set of duplicates
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-09-centrifuge/blob/512e7a71ebd9ae76384f837204216f26380c9f91/src/token/ERC20.sol#L139
Vulnerability details
Impact
The increase and decrease allowance functions can add more bugs, These functions may allow for further phishing possibilities see the next discussion
Proof of Concept
After a lot disscussion The increase and decrease allowance functions have been deprecate for several erc20 repositorys.
see the next disccusions:
increase_allowance
anddecrease_allowance
fromERC20
andERC4626
pcaversaccio/snekmate#160increaseAllowance
anddecreaseAllowance
fromERC20
OpenZeppelin/openzeppelin-contracts#4583Tools Used
manual, x, github
Recommended Mitigation Steps
Consider remove increase and decrease allowance functions.
Assessed type
Other
The text was updated successfully, but these errors were encountered: