Open sherlock-admin2 opened 7 months ago
Attaching LSW comments for consideration:
invalid, it is fixed within the market contract, where there's a max fee param that markets can set.
Can't seem to find logic relating to above and don't see it as per here
The protocol team fixed this issue in the following PRs/commits: https://github.com/teller-protocol/teller-protocol-v2-audit-2024/pull/38/files
The Lead Senior Watson signed off on the fix.
0x73696d616f
medium
Issue #497 'Add parameter to lender accept bid for MaxMarketFee' from previous audit is still present
Summary
Issue #497 from the previous Sherlock audit was not fixed in the current code and is still present.
Vulnerability Detail
The vulnerability is well explain in the mentionedl link above, essentially any market owner may change the marketplace fee while frontrunning a borrower and getting more funds in return.
A PR with the fix was mentioned in the comments but it was never merged.
From the docs, the issue is valid as long as there is not a
won't fix
label.Impact
Borrower pays more marketplace fees than expected due to malicious market owner.
Code Snippet
TellerV2::lenderAcceptBid()
Tool used
Manual Review
Vscode
Recommendation
The recommendation from issue #497 are good: