Skip to content
Access control Disclosed report Beginner

Reddit talk promotion offers don't expire, allowing users to accept them after being demoted

Reddit Talk promotion offers (offerIds) do not expire after being accepted, so a demoted user can replay the acceptance request to regain speaker or host privileges. This allows a user to re-promote themselves at any time, potentially disrupting the talk.

ahacker1 Follow

Originally disclosed on HackerOne

Medium 5.0 View original
  • Triaged in 8 days
  • Fixed in 36 days
  • Paid in 18 days
  • Disclosed after 2 months

Description:

When promoting a user to a speaker/host, an offerId is created which can be accepted by the user. However, after accepting them the offerIds don't expire. This means that after the user is demoted back to a listener, they can still use the offerIds to go back to their previous promoted role.

Steps To Reproduce:

  1. Have 2 accounts ready UserAVictim and UserBAttacker.
  2. Create a new reddit talk as UserAVictim.
  3. As UserB join the talk.
  4. As UserA promote UserB to the speaker (works as well with host). This can be done by clicking their avatar and choosing invite to speak (to promote to speaker) or add as host (to promote to host).
  5. As UserB notice that a pop up appears saying "USER has invited you to speak". Monitor and save the request used when clicking accept.

The request should be to https://gql.reddit.com The body should be similar to {"variables":{"platformUserId":"PLATFORM_USER_ID","offerId":"UUID_OFFER_ID"},"id":"475c91dd4480"} 6. As UserA demote UserB to listener. (Click UserB's avatar and click Move to Audience) 7. As UserB repeat/re-send the request used in step 5. Notice that you will be promoted back to speaker/host.

This works even after you are demoted again.

Impact

This allows speakers/hosts of a talk to re-become a speaker/host at any time after being demoted. This could lead to interruptions to the reddit talk.

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

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 server does not invalidate or expire the offerId after it has been used or after the user's role is revoked.

Impact

A demoted speaker or host can regain their role at any time, which could lead to interruptions to the Reddit Talk.

What the attacker needed

Two Reddit accounts; One account hosts a Reddit Talk; The other account joins the talk

How it was found

  1. Create two accounts: one as the talk host (UserA) and one as a participant (UserB).
  2. UserA creates a new Reddit Talk.
  3. UserB joins the talk.
  4. UserA promotes UserB to speaker or host.
  5. UserB accepts the invitation and saves the network request.
  6. UserA demotes UserB to listener, then UserB replays the saved request to become speaker/host again.

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.

When a host invites someone to speak in a Reddit Talk, the system creates a special one-time code (an offerId) that the invitee uses to accept. The problem is that this code never stops working, so even after the host removes the person from speaking, they can reuse the old code to become a speaker again without permission.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by ahacker1

View all

17 more disclosed reports, best first.

More from Reddit

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.