Skip to content
Business logic Audit finding Intermediate

Lack of Redeem Feature

The smart contract implementation lacks a redeem function that the whitepaper says should allow users to redeem USSD for DAI. This missing feature could prevent the protocol from reducing supply and recovering the stablecoin's price in negative scenarios.

0xMosh Follow with 0xRobocop, BugBusters and 9 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2023-05-USSD-judging/issues/958

Found by

0xMosh, 0xRobocop, BugBusters, WATCHPUG, ast3ros, ctf_sec, juancito, sashik_eth, shealtielanz, shogoki, the_endless_sea, ustas

Summary

Vulnerability Detail

The whitepaper mentions a redeeming feature that allows the user to redeem USSD for DAI (see section 4 "Mint and redeem"), but it is currently missing from the implementation.

Although there is a "redeem" boolean in the collateral settings, there is no corresponding feature that enables the redemption of USSD to any of the underlying collateral assets.

Impact

Code Snippet

https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/interfaces/IUSSDRebalancer.sol#L13-L21

Tool used

Manual Review

Recommendation

Revise the whitepaper and docs to reflect the fact that there is no redeem function or add a redeem function.

Discussion

securitygrid

Escalate for 10 USDC This is valid low/info. So far, lacking redeem is no impact.

sherlock-admin

Escalate for 10 USDC This is valid low/info. So far, lacking redeem is no impact.

You've created a valid escalation for 10 USDC!

To remove the escalation from consideration: Delete your comment.

You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.

0xJuancito

Escalate for 10 USDC

This is a valid High.


Escalating the comment:

This is valid low/info. So far, lacking redeem is no impact.


The impact is explained on the whitepaper and quoted on the "Vulnerability Detail" section from issue https://github.com/sherlock-audit/2023-05-USSD-judging/issues/218:

As per the USSD whitepaper:

If there is positive DAI balance in the collateral, USSD contract can provide DAI for equal amount of USSD in return (that would be burned, contracting supply).

The importance of this is said here:

Ability to mint and redeem USSD for DAI could serve as incentives to rebalance the coin when this is economically viable

And the most important feature is to have a mechanism to "help USSD recover in negative scenarios":

These methods also could be used to help USSD recover in negative scenarios: if USSD value falls below 1 DAI and there are less than 1 DAI reserves per USSD to refill the reserves allowing the USSD to recover it’s price by reducing supply

sherlock-admin

Escalate for 10 USDC

This is a valid High.


Escalating the comment:

This is valid low/info. So far, lacking redeem is no impact.


The impact is explained on the whitepaper and quoted on the "Vulnerability Detail" section from issue https://github.com/sherlock-audit/2023-05-USSD-judging/issues/218:

As per the USSD whitepaper:

If there is positive DAI balance in the collateral, USSD contract can provide DAI for equal amount of USSD in return (that would be burned, contracting supply).

The importance of this is said here:

Ability to mint and redeem USSD for DAI could serve as incentives to rebalance the coin when this is economically viable

And the most important feature is to have a mechanism to "help USSD recover in negative scenarios":

These methods also could be used to help USSD recover in negative scenarios: if USSD value falls below 1 DAI and there are less than 1 DAI reserves per USSD to refill the reserves allowing the USSD to recover it’s price by reducing supply

You've created a valid escalation for 10 USDC!

To remove the escalation from consideration: Delete your comment.

You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.

abhishekvispute

well this is what protocol team said that time regarding redeem that it is intentional

ctf-sec

well this is what protocol team said that time regarding redeem that it is intentional

valid low based on the sponsor's feedback

hrishibhat

Result: Medium Has duplicates This issue can be considered a valid medium based on the Whitepaper description of the importance of having a the redeem function.

sherlock-admin

Escalations have been resolved successfully!

Escalation status:

The original report as published on Sherlock, by 0xMosh. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the development team did not implement the redeem function described in the whitepaper, leaving a gap between documentation and code.

Impact

The missing redeem function could prevent the protocol from reducing supply and helping USSD recover its price in negative scenarios, as the whitepaper describes.

What the attacker needed

None

The fix

The whitepaper and docs should be revised to reflect that there is no redeem function, or a redeem function should be added.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A stablecoin is a cryptocurrency designed to stay at a fixed value, like 1 DAI. The project's whitepaper promised that users could always swap the stablecoin back for DAI, but the code does not include that swap feature. Without it, the stablecoin may not be able to recover if its price drops.

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.

More by 0xMosh

View all

4 more disclosed reports, best first.

More from USSD - Autonomous Secure Dollar

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.