code-423n4 / 2021-11-unlock-findings

0 stars 0 forks source link

Lock template versions can be overwritten #154

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

cmichel

Vulnerability details

The Unlock.addLockTemplate function allows modifying an already existing version.

Impact

Recommended Mitigation Steps

Disallow updating existing template versions. Ensure that the versions that are deployed work and create a new version for each iteration.

julien51 commented 2 years ago

We actually decided against this to keep some flexibility for the "owner" of the Unlock contact (DAO) to push a new version with no storage change at no risk for users.