Unable to change token approval when tokenAddress changed #215
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
gzeon
Vulnerability details
Impact
Lock manager and beneficiary can call
approveBeneficiary
to set the allowance oftokenAddress
. However, iftokenAddress
is changed byupdateKeyPricing
, they will not be able to revoke the token approval set previously.Proof of Concept
https://github.com/unlock-protocol/unlock/blob/025ed6ab14c10cc41d7fe14ab49a051647211adb/smart-contracts/contracts/mixins/MixinLockCore.sol#L226
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: