57473 sc low inverted comparison operator allows operators admin level allocation privileges
Description
Summary
Description
Key Differences
Function
Operator Check
Result
Current State vs Future Impact
Impact
Access Control Bypass
Mitigation
Proof of Concept
Proof of Concept
1.paste the following test in AllchemistAllocator.t.sol
AllchemistAllocator.t.sol2. run it via forge test --mt testInvertedComparisonBug -vvv
forge test --mt testInvertedComparisonBug -vvvLogs
Previous56368 sc insight alchemisttokenvault deposit should use safetransferfrom instead of transferfrom alchemisttokenvault withdraw should use safetransfer instead of transfer Next58749 sc low incorrect balance snapshot
Was this helpful?