Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Albort - Logical Error in migrateToNewHSG Function #53

Open
sherlock-admin3 opened this issue Nov 23, 2024 · 0 comments
Open

Albort - Logical Error in migrateToNewHSG Function #53

sherlock-admin3 opened this issue Nov 23, 2024 · 0 comments

Comments

@sherlock-admin3
Copy link

sherlock-admin3 commented Nov 23, 2024

Albort

High

Logical Error in migrateToNewHSG Function

Summary

The migrateToNewHSG function incorrectly disables the new HatsSignerGate (HSG) module instead of the existing one. This can lead to unintended behavior where the new HSG is disabled immediately after being attached, leaving the old HSG still enabled.
https://github.com/sherlock-audit/2024-11-hats-protocol/blob/49de29508904e95b3cfaaf27d2e76c527429c019/hats-zodiac/src/HatsSignerGate.sol#L353

Root Cause

No response

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

No response

PoC

No response

Mitigation

Replace s.execDisableHSGAsModule(_newHSG); with s.execDisableHSGAsModule(address(this)); to correctly disable the existing HSG.

@sherlock-admin2 sherlock-admin2 changed the title Uneven Pine Sheep - Logical Error in migrateToNewHSG Function Albort - Logical Error in migrateToNewHSG Function Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant