No any external functions in HooksFactory
are protected by SphereX
#42
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
edited-by-warden
grade-a
primary issue
Highest quality submission among a set of duplicates
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_primary
AI based primary recommendation
🤖_38_group
AI based duplicate group recommendation
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-08-wildcat/blob/main/src/HooksFactory.sol#L34
https://github.com/code-423n4/2024-08-wildcat/blob/main/src/market/WildcatMarket.sol#L37-L42
Vulnerability details
Impact
The Wildcat team can not manage any external functions in
HooksFactory
with SphereXProof of Concept
The Wildcat protocol states that all external functions are under SphereX protection:
While
HooksFactory
is inherited fromSphereXProtectedRegisteredBase
, it does not use the modifiersphereXGuardExternal
for any external functions.The modifier
sphereXGuardExternal
is also missed onWildcatMarket#rescueTokens()
.Tools Used
Manual review
Recommended Mitigation Steps
Introduce the modifier
sphereXGuardExternal
forWildcatMarket#rescueTokens()
and all external functions inHooksFactory
.Assessed type
Context
The text was updated successfully, but these errors were encountered: