Skip to content
Business logic Audit finding Intermediate

Incorrect use of _addTribute instead of _addGovernanceTribute

FairSide contest

Originally disclosed on Code4rena

As part of the purchaseMembership() function, the addRegistrationTributeGovernance() function is called by the FSD network to update tribute when 7.5% is contributed towards governance. However, this function incorrectly calls _addTribute() (as is also done in addRegistrationTribute) instead of _addGovernanceTribute().

The impact of this is that governanceTributes never gets updated, rendering all of the tribute accounting logic incorrect.

Recommend using _addGovernanceTribute() instead of _addTribute on L140 of FSD.sol

fairside-core (FairSide) confirmed:

The second of the two easter eggs!

fairside-core (FairSide) commented:

Fixed in PR#20.

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

What is known

A medium-severity business logic bug in FairSide contest. Code4rena made it public on 7 July 2021. Found in the 2021-05-fairside audit contest (finding M-01).

About Business logic

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

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

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 from FairSide contest

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.