During market deployment borrowers are required to pay a originationFeeAsset by specifying an already listed originationFeeAsset.
however the protection to exclude flagged/blacklisted addresses from interacting with the protocol wont be effective if the originationFeeAsset is flagged and used to create/update the hooks template.
Impact
allows blacklisted assets interact with the protocol.
Lines of code
https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/HooksFactory.sol#L120
Vulnerability details
During market deployment borrowers are required to pay a
originationFeeAsset
by specifying an already listedoriginationFeeAsset
.however the protection to exclude flagged/blacklisted addresses from interacting with the protocol wont be effective if the
originationFeeAsset
is flagged and used to create/update the hooks template.Impact
allows blacklisted assets interact with the protocol.
Proof of Concept
https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/HooksFactory.sol#L120
https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/HooksFactory.sol#L176
https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/HooksFactory.sol#L153
_validateFees
do not consider black listed asset address.when the archController is setting/updating the hooks template the
originationAssetFee
is not checked if its blackListedTools Used
manual review
Recommended Mitigation Steps
validate
originationFeeAsset
is not blacklisted.Assessed type
Context