Status DataClose notification
Bug bounty Triaged by HackenProof New

RedStone Settle Smart Contracts, API, Webapp: Program info

RedStone Settle Smart Contracts, API, Webapp

Company: RedStone Finance

Scope Review:
141
Submissions:
0
Total rewards:
$0
Reputation
150 points required
PoC
Required
Submission fee
$10

Program is: active now

Live

Settle is RedStone's instant-liquidity venue for tokenized real-world assets. A holder sells a supported token to a SNAP contract in one transaction and receives USDC at NAV minus a fixed discount, paid from capital held in a Morpho vault. Every sale is bounded by feed freshness, a price ceiling, an exposure cap, a USDC depeg check, a sanctions check and a pause.

The question for researchers: assuming the privileged roles act in good faith, is there a path in the deployed code, correctly configured, to take funds out of a SNAP contract or from users who approved it?

Scope

In scope
TargetTypeSeverity

address: link code: link

Smart ContractCritical

address: link code: link

Smart ContractCritical
  • RedeemingSnap.sol: link
  • SettleNativeAtomicProvider.sol: link
  • SettleNativeAtomicProviderStorageV1.sol: link
Smart ContractCritical

Url: https://settle.redstone.finance

WebHigh

Url: https://api.settle.redstone.finance

APILow

Focus Area

Reward Structure

A valid finding's level follows its worst impact:

  • Critical: a vulnerability that could result in a theft in a single transaction exceeding 50% of funds and at least $10,000; ownership of a SNAP proxy passing to anyone the owner did not nominate, or an upgrade the owner did not approve, whatever the funds
  • High: a vulnerability that could result in a theft in a single transaction exceeding 25% of funds and at least $5,000
  • Medium: a vulnerability that could result in a theft exceeding 10% of funds and at least $2,000; unpausing by anyone other than the owner; a sale past a safeguard listed below; freezing over 10% of funds and at least $2,000 for more than 24 hours
  • Low: a smaller theft or freeze over 24 hours; pausing by anyone other than the pauser or the owner

Funds are what the affected SNAP contracts hold on mainnet at submission: USDC, vault shares and supported tokens. Tokens sent to an issuer for redemption are not held by the contract and do not count. A contract is affected if the PoC takes or freezes its funds. For a theft from users, through their approvals or a web finding, funds are the tokens they would lose. A sale that pays more than the feed price minus the discount is a theft of the amount overpaid. A theft must be profitable after gas and counts only up to these funds; funds no one can recover count as stolen, profit or not.

In-scope vulnerabilities

  • Theft of USDC or tokens from a SNAP contract, or of users' tokens through their approvals
  • A sale that pays more than the feed price minus the discount, or pays without receiving the tokens
  • Ownership passing to anyone the owner did not nominate; an upgrade or unpause the owner did not approve; pausing by anyone other than the pauser or the owner
  • A sale that gets past the pause, depeg check, maxAge, maxPrice or maxExposure
  • Freezing of contract funds for more than 24 hours: funds the owner cannot move out with the contract's existing functions, withdrawERC20 included, without an upgrade
  • On settle.redstone.finance or the Settle API: a flaw that can take users' funds or tokens

Out of scope

  • Theoretical vulnerabilities without any proof or demonstration
  • Old or unlocked compiler version
  • Vulnerabilities in imported contracts
  • Code style, redundant code, gas optimizations, best practices
  • Vulnerabilities exploitable through front-running only
  • A malicious or compromised owner Safe, pauser, redeemer or filler, upgrades to faulty code, and impacts possible only because of a wrong owner setting
  • sellReceived: no filler is set on mainnet
  • Price feed, oracle and issuer NAV data and contracts
  • Midas, OpenEden, Morpho, USDC, Safe and sanctions-list contracts
  • Sales at the configured discount, and sales or redemptions that revert or wait by design (e.g. paused, limit reached, vault liquidity too low, issuer processing time)
  • Blocking or delaying sales or redemptions without a loss of funds (e.g. using up maxExposure or the vault's liquidity)
  • Ways to sell for a sanctioned address (e.g. through a forwarding contract or a relayer). The sanctions check screens only msg.sender and tx.origin.
  • Effects caused only by tokens the reporter sent to a contract
  • STAR and SnapSolver (phase 2), testnet deployments, tests and scripts
  • Web: missing security headers, self-XSS, clickjacking, rate limiting, DNS and email configuration, and third-party infrastructure (e.g. AWS, CloudFront)
  • Known issues (https://github.com/redstone-finance/redstone-public-contracts/tree/main/packages/redstone-oev/audits) listed at the time of submission
  • Exotic contracts with weird internal balance logic (vulnerabilities limited to Low)

Program Rules

  • Run the PoC on a mainnet fork at a stated block, against the deployed addresses. Besides any unprivileged account, it may simulate only what the privileged roles, issuers and price feeds do in normal operation, at realistic values: e.g. funding the vault, configuring a contract or asset as RedStone announced it, pausing and unpausing a contract, redeemer calls, issuer allowlisting, processing or cancelling redemptions, and time passing with feeds at values they have reported on mainnet. Owner correction functions (bookRedemption, reduceExposure, writeOff, lowerQueued) never count. Neither do the owner's withdrawERC20, removeAsset and setDepegCheckDisabled. For SnapOpenEden, the PoC may assume the seller is KYC'd by OpenEden and the contract unpaused and funded.
  • Do not exploit or test a vulnerability on mainnet.
  • Do not damage or restrict the availability of products, services or infrastructure, compromise personal data, or access or modify other users' data.
  • Do not use automated scanners that generate heavy traffic. No DoS, social engineering or spam.
  • Test only within scope and on your own accounts, and do not break any law.
  • Chained vulnerabilities, and one root cause in several SNAP contracts, are paid once, on their combined impact.
  • All communication regarding the program must take place exclusively through the HackenProof platform. Contacting the project team directly through support channels, social media, or any other external communication channels is strictly prohibited. Researchers who violate this rule may be disqualified from the program and may face account suspension.

Eligibility and Coordinated Disclosure

• Be the first to report a qualifying vulnerability. • Report within 24 hours of discovery, only through hackenproof.com. • Include clear reproduction steps and a working PoC; AI-generated reports without a runnable PoC are not accepted. • Use the email registered with your HackenProof account; otherwise no bounty can be awarded. • Do not be a current or former employee or contractor of RedStone.

Disclosure Guidelines

• No disclosure, including partial and of resolved vulnerabilities, without RedStone's consent. • Disclosure requests are at RedStone's discretion and need mutual agreement; disclosure happens only through HackenProof's Disclosure function.