Non whitelisted user can also create agent by calling createAgentWithNFT instead of createAgentWithWhitelistUsers affecting the motive of protocol to only allow whitelisted user to create agent
0x41head Follow with 0xgee, Darinrikusham and 7 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-03-crestal-network-judging/issues/576
Found by
0x41head, 0xgee, Darinrikusham, Ryonen, dreamcoder, eLSeR17, hrmneffdii, jprod15, oualidpro, patitonar
Summary
Non whitelisted user can also create agent by calling createAgentWithNFT instead of createAgentWithWhitelistUsers affecting the motive of protocol to only allow whitelisted user to create agent
Root Cause
createAgentWithWhitelistUsers function is designed by protocol with motive to only allow a particular amount of whitelisted users to create agent but this motive can be bypassed by anyone by calling createAgentWithNFT function instead.
Internal Pre-conditions
NA
External Pre-conditions
NA
Attack Path
- Non whitelisted user can call
createAgentWithNFTfunction instead ofcreateAgentWithWhitelistUsersfunction and can create agent breaking the whitelist check
Impact
Non whitelisted user can also create agent breaking the motive of protocol to only allow whitelisted users to create agent.
PoC
No response
Mitigation
- Implement pausability feature in createAgentWithNFT function so that admin can pause the access of it until whitelist period for creation of agent and later can enable it.
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/crestalnetwork/crestal-omni-contracts/pull/24/files
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity access control bug in Crestal Network. Sherlock made it public on 26 March 2025. Found in the 755 audit contest (finding M-6), also found by 9 other wardens.
About Access control
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.