onRepay hook can be bypassed #84
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-61
grade-b
Q-14
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_117_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/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/market/WildcatMarket.sol#L168
Vulnerability details
Proof of Concept
The onRepay hook only triggers if someone pokes the repay function. This means anyone can bypass it by transferring tokens directly to the market.
Recommended Mitigation Steps
Unsure what's the best way to fix
Assessed type
Other
The text was updated successfully, but these errors were encountered: