Skip to content
Business logic Audit finding Intermediate

Strategist can transfer user funds to themselves

A strategist can create a sell offer at a very low price and then accept it from their own wallet, effectively transferring user funds to themselves. This is possible because the strategist has access to user funds to trade on the market.

Ruhum Follow

Originally disclosed on Code4rena

Submitted by Ruhum

The strategist is able to use user funds to trade on the RubiconMarket. They can abuse this to transfer user funds to themselves.

A strategist having access to user funds seems to be a deliberate design choice. But, I believe it’s important to note how dangerous that is.

Proof of Concept

  1. Strategist opens up an offer through placeMarketMakingTrades() where a token is sold for very cheap
  2. Strategist accepts the offer within the same transaction using their private wallet

Recommended Mitigation Steps

There’s no easy way to fix this since it’s a big part of the protocol. You’d have to overhaul the whole thing.

You could minimize the dmg by limiting the amount of funds a strategist has access to.

bghughes (Rubicon) acknowledged and marked as duplicate:

Duplicate of #344

HickupHH3 (judge) commented:

Unique strategist rug-pull vector


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

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

The design gives the strategist full access to user funds without sufficient limits or oversight, allowing them to trade against the users' interests.

Impact

The strategist can transfer user funds to themselves, causing financial loss to users.

What the attacker needed

Strategist role; user funds deposited

The fix

There is no easy fix; the protocol would need an overhaul, but limiting the amount of funds a strategist can access could reduce the damage.

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 strategist is someone trusted to trade on behalf of users. Here, the strategist can set up a trade that sells user tokens cheaply and then buy them themselves, taking the users' money. This is like a shopkeeper selling their own stock to themselves at a low price.

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 Ruhum

View all

55 more disclosed reports, best first.

More from Rubicon v2

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.