Platform: Code4rena
Start Date: 01/09/2023
Pot Size: $36,500 USDC
Total HM: 4
Participants: 70
Period: 6 days
Judge: kirk-baird
Id: 281
League: ETH
Rank: 40/70
Findings: 1
Award: $18.85
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: catellatech
Also found by: 0xAsen, 0xE1D, 0xStalin, 0xmystery, Breeje, Bube, DedOhWale, JayShreeRAM, K42, Krace, castle_chain, hals, hunter_w3b, kaveyjoe, m4ttm, mahdikarimi, nirlin, peanuts, sandy
18.8458 USDC - $18.85
allowlist
blocklist
sanctionsList
. The redemption price of USDY appreciates as time progresses.RWADynamicOracle.sol
is utilized to determine the current price of USDY. One rUSDY is one dollar.rUSDYFactory
is used to deploy an upgradable instance of rUSDY using the ProxyAdmin mode.
guardian
of rUSDYFactory
could execute arbitrary code.
guardian
has the ability to execute arbitrary code, which poses a risk to the contract.
Interest-bearing ERC20-like token. The balance of rUSDY
is calculated based on the price of USDY
and the share.
Anyone could call wrap
to save USDY
and get rUSDY
back. When the price of USDY
changes, your balance of rUSDY
will also change, but you still can get the same USDY
you deposited.
guardian
has all the permissions, can control the oracle, and can manipulate the price of USDY, which is highly dangerous.
Rug Pull: guardian
has the ability to burn
rUSDY
from any user and then obtain the corresponding USDY
.
RWADynamicOracle
is responsible for providing the current price of USDY
. ADMIN
can push a new Range
or modify the existing Range
.
Users can pay gas to burn tokens on the source Chain and call AxelarGateway contract to mint tokens on the destination chain.
The owner could set the contractAddress
by setDestinationChainContractAddress
, if the owner sets a malicious contract, users' funding could be at risk.
The Destination Brgdge contract coopreates with Source Bridge. Once a transaction has gotten enough approvers, it could be executed to mint token for txn.sender
, but, the MintedAmount cannot exceed a limit during a period of time.
In rUSDY
, the guardian
seems to have too much power. It can even directly burn any user's shares and obtain the corresponding amount of USDY
. This makes it susceptible to rug pull attacks. It is likely to make users suspicious of the contract, and this overly centralized design should be optimized.
SourceBridge
also gives Owenr too much power to execute arbitrary code.
There are three main parts in this project:
The potential risk is the Rug Pull attack, the owner of the contract seems to be too powerful, and can withdraw any account's funds.
20 hours
20 hours
#0 - c4-pre-sort
2023-09-08T14:42:00Z
raymondfam marked the issue as sufficient quality report
#1 - c4-judge
2023-09-24T07:17:19Z
kirk-baird marked the issue as grade-b