Skip to content
DoS Audit finding Intermediate

Deprecated variables may cause DoS

The smart contract retains deprecated variables that an admin can set to make transactions revert for specific users, preventing them from buying. This could be abused to deny service to chosen users.

GimelSec Follow

Originally disclosed on Code4rena

Submitted by GimelSec

A malicious admin can set the deprecated variables AqueductDistributionLive and AqueductAddress to deny specific users to buy.

Proof of Concept

https://github.com/code-423n4/2022-05-rubicon/blob/main/contracts/RubiconMarket.sol#L664-L669

        if (AqueductDistributionLive) {
            IAqueduct(AqueductAddress).distributeToMakerAndTaker(
                getOwner(id),
                msg.sender
            );
        }

Admin can set the deprecated variables AqueductDistributionLive, AqueductAddress to check specific users and revert transactions to deny them.

Recommended Mitigation Steps

Delete deprecated code, but reserve variable declaration for slots if using upgradable contracts.

bghughes (Rubicon) acknowledged, but disagreed with severity and commented:

Acknowledged centralization risk #344 #314 #133

HickupHH3 (judge) commented:

Less so about centralization risk, more about deprecated functions. Not sure why they’re kept. Makes sense to remove them (except for the storage variables of course)

A bit of a stretch, but warden’s hypothetical scenario checks out. Hence, leaving it as is.


The original report as published on Code4rena, by GimelSec. 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

Likely, deprecated code that allows an admin to conditionally revert transactions based on user identity was left in the contract.

Impact

A malicious admin could deny specific users the ability to buy, causing a denial of service for those users.

What the attacker needed

Admin privileges

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 smart contract has some old settings that are no longer needed but still affect transactions. An admin can change these settings so that certain users' purchases fail, effectively blocking them from using the service.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by GimelSec

View all

18 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.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.