Skip to content
Access control Disclosed report Beginner

Previous commentor on post can still comment even after comment permission is changed to disabled

A logic error in LinkedIn's comment permission system allowed users who had previously commented on a post to keep posting new comments after the post owner disabled commenting. An attacker could bypass the owner's moderation control and continue adding comments.

allenjo Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 40 days
  • Paid in 11 days
  • Disclosed after 9 months

Summary by the program

A logic error existed in LinkedIn's comment permission system that allows users who have previously commented on a post to continue posting additional comments even after the post owner disables commenting functionality. The vulnerability occurs when an account creates a post with comments enabled, another account posts a comment, and then the original poster disables comments. Users who commented before the restriction was applied retain the ability to add new comments, bypassing the intended access control mechanism.

This represents an improper access control vulnerability where the system fails to properly enforce updated permission settings. The issue affects the moderation controls that post owners rely on to manage interactions on their content.

Steps to Reproduce

  1. Create a post from Account A with comments enabled
  2. Post a comment from Account B on the post created by Account A
  3. Disable comments on the post through Account A's privacy settings
  4. Attempt to post additional comments from Account B on the same post
  5. Observe that Account B can still successfully post new comments despite the commenting restriction being in place

The original report as published on HackerOne, by allenjo. 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 permission check only applied to users who had not yet commented, rather than re-checking the current setting for every new comment.

What the attacker needed

Two accounts; one account posts and enables comments; second account comments before disable

How it was found

  1. Create a post from Account A with comments enabled
  2. Post a comment from Account B on the post created by Account A
  3. Disable comments on the post through Account A's privacy settings
  4. Attempt to post additional comments from Account B on the same post
  5. Observe that Account B can still successfully post new comments despite the commenting restriction being in place

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.

When you turn off comments on a post, the site should stop everyone from commenting. Here, anyone who had already left a comment could still post more, so the off switch did not fully work.

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 LinkedIn

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.