Race condition in approve() 收件箱 #134
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 acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
cccz
Vulnerability details
Impact
Using approve() to manage allowances opens yourself and users of the token up to frontrunning.
https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/edit#heading=h.b32yfk54vyg9
Proof of Concept
https://github.com/code-423n4/2021-12-nftx/blob/main/nftx-protocol-v2/contracts/solidity/token/ERC20Upgradeable.sol#L141-L144
Tools Used
Manual analysis
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: