Skip to content
Access control Disclosed report Intermediate

Generate new Test token

A user who was not an administrator or even a member of a community could generate an administrative API token for that community. This let the attacker use the API to view and control everything in the community.

alblandino_ Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • Triaged in 22 hours
  • Fixed in 35 hours
  • Paid in 35 hours
  • Disclosed after 3 months

Summary by the researcher

A hacker can get a token XOXP administrator without being the administrator of the community even without being a member of the same.

Bug Fixed.

The report

We can generate a token test in any community that we are to use the API in the community (although we are not community managers)

In the attached video, I show you how to generate a token in a community in which I am not administrator and I can check absolutely everything and even make use of the API.

Note: talk to the administrator of the community to make this test getbootstrap.

Attachments

Screen_Shot_2016-06-26_at_5.14.46_PM.png
Screen_Shot_2016-06-26_at_5.14.46_PM.png From the original on HackerOne

The original report as published on HackerOne, by alblandino_. 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 token-generation endpoint did not check that the requester was an administrator or member of the target community before issuing an administrative token.

Impact

An unprivileged outsider could obtain an administrative token and use the API to view and change everything in a community they had no rights to.

What the attacker needed

No membership of target community; no admin rights needed

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.

Many services give out special access tokens, which are like digital keys, so programs can talk to their API. Here, a normal user could ask for an administrator-level key for a community they did not belong to, and the system handed it over. That key then opened up everything in that community.

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 from Slack

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.