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.
Originally disclosed on HackerOne
- 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:
-
- Go to
https://try.discourse.org/and create a new account
- Go to
-
- Then go to your summary profile
https://try.discourse.org/u/{Your_Username}/summarymake sure to change{Your_Username}to your username, in my case my username istestBugsas you see in the below picture, and also observe on the below picture that you will have access to 5 tabs in your profile.
- Then go to your summary profile

-
- Then go to any other user's summary profile, for example go to this user
https://try.discourse.org/u/codinghorror/summaryand observe in the below picture that you will have access to only 3 tabs if it's any other user's profile.
- Then go to any other user's summary profile, for example go to this user

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:
-
- Here's my Notifications

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?
-
- Here's the attempt to access the notification bar of the user whose username is
codinghorror:
- Here's the attempt to access the notification bar of the user whose username is

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:

-
- /notifications/responses
-
- /notifications/likes-received
-
- /notifications/mentions
-
- /notifications/edits
-
- /notifications/reactions-received
let's do the same technique of changing the URL in an attempt to access other user notification functions:
-
- changing
https://try.discourse.org/u/testbugs/notifications/responsestohttps://try.discourse.org/u/codinghorror/notifications/responsesgives403 Forbidden
- changing
-
- changing
https://try.discourse.org/u/testbugs/notifications/likes-receivedtohttps://try.discourse.org/u/codinghorror/notifications/likes-receivedgives403 Forbidden
- changing
-
- changing
https://try.discourse.org/u/testbugs/notifications/mentionstohttps://try.discourse.org/u/codinghorror/notifications/mentionsgives403 Forbidden
- changing
-
- changing
https://try.discourse.org/u/testbugs/notifications/editstohttps://try.discourse.org/u/codinghorror/notifications/editsgives403 Forbidden
- changing
-
- changing
https://try.discourse.org/u/testbugs/notifications/reactions-receivedtohttps://try.discourse.org/u/codinghorror/notifications/reactions-receivedgives ==200 OK== :)
- changing
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
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
- Create an account on the site.
- Open your own summary profile and note the notification tabs.
- Open another user's summary profile and note the missing notification button.
- Try opening that user's notifications page and see it is blocked.
- 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.