Immunefi Audit Competitions
Vechain | Stargate Hayabusa

59411 sc insight inconsistency in migratetokenmanager in terms of the permitted caller

Description

Brief / Intro

There is an inconsistency between the NatSpec in IStargateNFT and the StargateNFT implementation regarding who is allowed to call the migrateTokenManager function.

  • IStargateNFT states that "this function is only callable by the DEFAULT_ADMIN_ROLE".
  • The implementation in StargateNFT instead restricts the call to TOKEN_MANAGER_MIGRATOR_ROLE:
function migrateTokenManager(
    uint256 _tokenId,
    address _manager
) external onlyRole(TOKEN_MANAGER_MIGRATOR_ROLE) {
    ...
}

This mismatch between interface documentation and contract implementation can lead to confusion or incorrect assumptions about access control.

References

Proof of Concept

No additional PoC provided.