Cds depositor profit is never taxed as the tax is only applied on the option fees
0x37 Follow with 0x73696d616f, John44 and 1 other
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2024-11-autonomint-judging/issues/744
Found by
0x37, 0x73696d616f, John44, valuevalk
Summary
Cds depositor generates upside from borrows up to the strike price increase, but calculates the profit on the difference between the deposited and returned amounts, which only differ by the option fees.
Root Cause
In CDSLib.sol:801, the profit should be calculated on the initial deposited amount without considering the extra profit for the price increase.
Internal pre-conditions
None.
External pre-conditions
None.
Attack Path
- Price increases 5% since a borrower/cds depositor deposited.
- Cds depositor withdraws, not paying any tax on the 5% price increase.
Impact
Protocol suffers huge losses by not taxing 10% of the profit.
PoC
See the links above.
Mitigation
Calculated the profit on the price increase since the cds deposit and the option fees.
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 high-severity business logic bug in Autonomint Colored Dollar V1. Sherlock made it public on 19 January 2025. Found in the 569 audit contest (finding H-14), also found by 3 other wardens.
About Business logic
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.