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.
- 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
- Create a post from Account A with comments enabled
- Post a comment from Account B on the post created by Account A
- Disable comments on the post through Account A's privacy settings
- Attempt to post additional comments from Account B on the same post
- Observe that Account B can still successfully post new comments despite the commenting restriction being in place
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
- Create a post from Account A with comments enabled
- Post a comment from Account B on the post created by Account A
- Disable comments on the post through Account A's privacy settings
- Attempt to post additional comments from Account B on the same post
- 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.