Skip to content
Business logic Audit finding Intermediate

Rage quit modifications should be limited to provide stronger guarantees to party members

Party hosts can arbitrarily change the rage quit timestamp, overriding any previously set expiration date. This lets a host disable or shorten the window in which members can exit, breaking the guarantee members relied on.

adriro Follow with 0x52, d3e4 and 1 other

Originally disclosed on Code4rena

Submitted by adriro, also found by 0x52, d3e4, and gjaldon

Party hosts can arbitrarily change the rage quit settings overriding any existing preset.

Rage quit is implemented in the PartyGovernanceNFT contract by using a timestamp. Leaving aside the cases of permanent settings (which, of course, cannot be changed) this implementation allows a more flexible feature than a simple enable/disable toggle. The timestamp represents the time until rage quit is allowed. If the timestamp is still in the future, then rage quit is enabled. If it is in the past, the feature is disabled.

This setting can be changed at will by party hosts. At any moment and without any restriction (other than the permanent enabled or disabled, which cannot be modified), the party host is allowed to change the value to any arbitrary date. This means that an already scheduled setting that would allow rage quit until a certain future date, can be simply overridden and changed by the party host.

A party member can feel secure knowing it has the option to rage quit until the defined timestamp in rageQuitTimestamp. However, any party host can arbitrarily reduce or completely disable the feature, ignoring any preset.

This is particularly concerning, as it defeats the purpose of having a programmable expiration date of the rage quit feature. The allowed modifications should ensure members are covered at least until the agreed timestamp (i.e. extend it or leave it as it is to disable rage quit the moment the timestamp expires), or provide better guarantees against arbitrary changes.

Recommendation

Here are some alternatives that should be taken as ideas to be used individually or in some combination:

  1. Ensure rage quit cannot be disabled at least until the currently defined timestamp.
  2. Rage quit can only be reduced by a certain amount of time (for example, a percentage of the remaining time).
  3. Rage quit can only be changed once per period of time.
  4. If rage quit is currently enabled, then ensure the timestamp is not decreased below the latest proposal execution time.

0xble (Party) acknowledged


The original report as published on Code4rena, by adriro. 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 the contract allows the host to set the rage quit timestamp to any value without restricting decreases below the currently scheduled expiry.

What the attacker needed

Caller is a party host; rage quit not permanently set

The fix

The contract should be changed so that rage quit cannot be disabled or reduced before the currently defined timestamp, for example by only allowing extensions or limiting reductions.

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 'rage quit' is a way for a member to leave a group and take their share. The group's leader can change the deadline for leaving at any time, so a member who thought they had until a certain date may suddenly find they cannot leave. This breaks the promise that the deadline would stay fixed.

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 adriro

View all

57 more disclosed reports, best first.

More from Party Protocol

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.