Skip to content
Access control Disclosed report Intermediate

Can use the Reddit android app as usual even though revoking the access of it from reddit.com

Revoking the Reddit Android app's access from the web did not permanently log the app out; after roughly 20 hours the app could access the account again. An attacker with a stolen or borrowed device could regain access to a revoked account.

sateeshn Follow

Originally disclosed on HackerOne

Critical View original
  • Disclosed after 7 days

Summary:

Hi Team,

For the last 4 days, I kept testing reddit web. That time, I revoked app access from the old.reddit.com and i checked my app and as expected i was not able to use the account in my app.

After 2 days I was checking the chat invites feature on the web and after some time I turned on the internet on my mobile and got a Reddit "invitation accept" notification. I clicked on that and I was surprised that I was able to use the previously revoked user account again in the Reddit app.

After I tried to reproduce the scenario again. I thought the revoked account get access again after clicking on the app "chat invite" notification.

  • I again revoked the app access from the old.reddit.com
  • I sent a chat invitation link to another test account and replied with the test account so that I get a "chat accept" notification in the mobile
  • After several tries from several test accounts, Finally, I received the "chat accept" invitation, only one time on the mobile (Note: this is also an issue)
  • I clicked on the notification and I was not able to access anything in the app (it was showing some error)
  • I tried to reproduce the issue again, I don't know the reason But this time I was not able to view the chat invite links from any accounts. (it was showing some error)
  • It took my whole day and I stopped testing.

The next day again I got a post notification on my mobile. I clicked on that and again I see that the app was working as usual with a previous logged-in user!!!

Finally, I came to the conclusion that whenever we revoke the app access, it works fine. But if you check the app approximately after 20+ hours you can reuse the previously logged-in account again.

Steps To Reproduce:

  1. log in to your account from both the android mobile app and from the web(reddit.com or old.reddit.com)
  2. On the Reddit web go to https://www.reddit.com/account-activity
  3. Navigate to the "Apps you have authorized" section
  4. Find "Reddit on Android" click the revoke access and confirm
  5. Now open the Reddit app where you have logged in step 1
  6. You are no more able to access any info about the user and it will show errors like "Let's try that again" or "uh oh something went wrong but we're not sure what"
  7. Open the app approximately after 20+ hours and see that you can reuse the previously logged-in account without any issue.

Supporting Material/References:

I see that I got the latest app update and trying to reproduce the issue again on the latest version i.e 2022.25.1 I will update you on it again. I assume previously my Reddit app version was 2022.25.0 or 2022.24.1 Device and version info

app-version.jpg
app-version.jpg From the original on HackerOne

The account/username used for testing is: sateeshn_1

Impact

Unauthorized access to account even though revoking the access.

The original report as published on HackerOne, by sateeshn. 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 app kept a long-lived credential that was not invalidated by the revoke action, or the revoke only affected a short-lived token that the app could refresh later.

Impact

An attacker with access to a device where the app was previously logged in could regain access to the account after the owner revoked the app's permissions, though the report does not show this happening on a device the attacker does not control.

What the attacker needed

Reddit account; Reddit Android app logged in; Web access to revoke app permissions; Wait about 20 hours

How it was found

  1. Log in to the same account on both the Android app and the web.
  2. On the web, open the account activity page and find the authorised apps section.
  3. Revoke access for the Reddit on Android app and confirm.
  4. Open the app and observe that it shows errors and cannot access the account.
  5. Wait approximately 20 or more hours, then open the app again and see that the account is usable.

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 you revoke an app's access, you expect it to be logged out for good. Here the app seemed to log out at first, but later it could use the account again without asking for a password. This means someone who had the phone could still get into the account after the owner tried to cut it off.

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 sateeshn

View all

1 more disclosed report, 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.