Skip to content
IDOR Disclosed report Beginner

IDOR at 'media_code' when addings media to questions

The media_code parameter when saving a survey question was vulnerable to IDOR, allowing an attacker to change it to any sequential media ID and view another user's media content.

bugra Follow

Originally disclosed on HackerOne

  • Triaged in 27 days
  • Fixed in 52 days
  • Paid in 52 days
  • Disclosed after 5 months

Summary:

Hi team, When you add a question to your survey and click Save, it sends this request :

request.PNG
request.PNG From the original on HackerOne

In this request, media_code is vulnerable for IDOR. If you change it to any media ID, you will see it on your question. And these IDs are sequential. So you can access to any user's media contents.

Steps To Reproduce:

  1. Create a survey
  2. Add any question like Free Text and open your proxy program
  3. Click to question and click Save
  4. Your proxy program will catch the request
  5. Change the media_code parameter's value to a 7 digit number. Like 2013124 (my media content)
  6. Send the request, you will see the victim's media.

Impact

Access to user's media contents

Thanks, Bugra

The original report as published on HackerOne, by bugra. 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 did not verify that the media_code belonged to the authenticated user before attaching it to the question.

Impact

An attacker could access other users' media contents by guessing sequential IDs.

What the attacker needed

A user account; ability to create a survey; a proxy tool to intercept requests

How it was found

  1. Create a survey.
  2. Add a question and open a proxy program.
  3. Click the question and click Save.
  4. The proxy catches the request.
  5. Change the media_code parameter to a 7-digit number.
  6. Send the request and see the victim's media.

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.

An IDOR (Insecure Direct Object Reference) happens when a website uses a simple identifier, like a number, to refer to something you own, but does not check that you actually own it. Here, the media_code number could be changed to someone else's number, and the site would show their media without asking for permission.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by bugra

View all

21 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.