The DebtToken contract allows users to burn their debt tokens directly through transfer functions.
The _update() function implementation shows the transfer restriction so that borrowers can't burn their debt tokens directly.
But this function doesn't revert when to is address(0), allowing users to burn their debt tokens by transferring their debt tokens to address(0).
As a result, the borrowers will be treated as they have repaid their debt, which breaks the protocol's main functionality.
Users can burn their debt tokens directly without repaying their debt making the protocol insolvent.
Modify the _update() function to ensure only the lending pool can burn debt tokens.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.