Skip to content
IDOR Disclosed report Beginner

Access and see `reactions recieved` on the notification of any user

Most notification sub-pages on a user's profile correctly returned 403 when another user tried to open them, but the reactions-received page did not check ownership. An attacker could change the username in the URL and read any user's received reactions.

todayisnew- Follow

Originally disclosed on HackerOne

High 7.5 View original
  • Triaged in 9 days
  • Fixed in 53 days
  • Paid in 53 days
  • Disclosed after 3.0 years

Hi Team, Hope all is good!

Summary:

While Conducting my research I discovered that I'm able to see anyone's reactions received on the notification bar of his account.

==for the seek of your valuable time, I think if you watched the POC Video first before reading the report, things will be easier and then you can read the report for the details.==

Steps To Reproduce:

    1. Go to https://try.discourse.org/ and create a new account
    1. Then go to your summary profile https://try.discourse.org/u/{Your_Username}/summary make sure to change {Your_Username} to your username, in my case my username is testBugs as you see in the below picture, and also observe on the below picture that you will have access to 5 tabs in your profile.
My_account.png
My_account.png From the original on HackerOne
    1. Then go to any other user's summary profile, for example go to this user https://try.discourse.org/u/codinghorror/summary and observe in the below picture that you will have access to only 3 tabs if it's any other user's profile.
other_user_account.png
other_user_account.png From the original on HackerOne

So basically from the above pictures you observed that you can't access the notifications bar of any other user on the browser cause there's no notification button to click on.

So the notification bar itself is indeed accessible to only the user of the account.

POC:

    1. Here's my Notifications
My_Notifications.png
My_Notifications.png From the original on HackerOne

My notification looks good and accessible, nice, but what if we change the username on the URL https://try.discourse.org/u/testbugs/notifications to https://try.discourse.org/u/codinghorror/notifications to access his notification bar?

    1. Here's the attempt to access the notification bar of the user whose username is codinghorror:
other_user_notification.png
other_user_notification.png From the original on HackerOne

nice To this point it looks good and secure and the server-side checks with the Tokens properly and restricts access to the notification bar if I'm not the owner of the account.

but while digging deep and deep into the notification bar I discovered that there are multiple endpoints on the notification bar:

five_functions.png
five_functions.png From the original on HackerOne
    1. /notifications/responses
    1. /notifications/likes-received
    1. /notifications/mentions
    1. /notifications/edits
    1. /notifications/reactions-received

let's do the same technique of changing the URL in an attempt to access other user notification functions:

    1. changing https://try.discourse.org/u/testbugs/notifications/responses to https://try.discourse.org/u/codinghorror/notifications/responses gives 403 Forbidden
    1. changing https://try.discourse.org/u/testbugs/notifications/likes-received to https://try.discourse.org/u/codinghorror/notifications/likes-received gives 403 Forbidden
    1. changing https://try.discourse.org/u/testbugs/notifications/mentions to https://try.discourse.org/u/codinghorror/notifications/mentions gives 403 Forbidden
    1. changing https://try.discourse.org/u/testbugs/notifications/edits to https://try.discourse.org/u/codinghorror/notifications/edits gives 403 Forbidden
    1. changing https://try.discourse.org/u/testbugs/notifications/reactions-received to https://try.discourse.org/u/codinghorror/notifications/reactions-received gives ==200 OK== :)

so yeah the last endpoint which is /notifications/reactions-received is accessible to anyone to see, just all he needs is to change the URL and he will be able to see any user's reactions-received on their notifications bar.

POC:

Impact

Attackers can see any user's reactions received on the website, all they need to do is craft the URL as I demonstrated.

Best, @smile_for_bugs

The original report as published on HackerOne, by todayisnew-. 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 reactions-received endpoint was missing the same ownership authorisation check applied to the other notification endpoints.

Impact

An attacker could view any user's received reactions by crafting a URL.

What the attacker needed

A free account; knowing the target username

How it was found

  1. Create an account on the site.
  2. Open your own summary profile and note the notification tabs.
  3. Open another user's summary profile and note the missing notification button.
  4. Try opening that user's notifications page and see it is blocked.
  5. Try each notification sub-endpoint for that user; all return 403 except reactions-received, which returns 200.

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 website should check that you are the owner before showing your private pages. Here, one page listing reactions other people gave a user skipped that check, so anyone who edited the address bar could view it.

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 todayisnew-

View all

2 more disclosed reports, best first.

More from Discourse

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.