69146 sc low readme states migration permission can be revoked at any time but revocation becomes impossible after migrator role is removed
Description
Vulnerability description
function setMigrationPermit(address _migrator, bool _isMigrationPermitted) external {
if (!hasRole(MIGRATOR_ROLE, _migrator)) revert MigratorNotFound(_migrator);
migrationPermits[_migrator][msg.sender] = _isMigrationPermitted;
emit MigrationPermitUpdated(_migrator, msg.sender, _isMigrationPermitted);
}Recommended mitigation steps
Proof of Concept
1. Revocation becomes impossible after role revocation
2. The stale approval becomes usable again if the role is re-granted
Previous69382 sc low irrevocable migration permit users cannot revoke permit after migrator role revocationNext68879 sc insight essential function declarations missing from istakingv1
Was this helpful?