Viewer Can Trigger DoS on Project via Malformed Comment Type
A Viewer role could submit comments despite being read-only, and by changing the comment type to an unexpected value the server returned a 500 error that left the project permanently loading and unusable for all users. This allowed a low-privileged user to cause a denial of service and delete existing comments.
medium.com
Published on medium.com
The platform is based on a role-based permission system that includes the following user roles:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server did not enforce role-based restrictions on comment submission and did not validate the 'type' field, causing an unhandled error when an unexpected value was sent.
Impact
A Viewer could cause a denial of service, making the project permanently unusable for all users including the owner, and previously submitted comments were deleted.
What the attacker needed
A Viewer role account; ability to intercept HTTP requests
How it was found
- Log in as a Viewer and intercept the request used to submit a comment.
- Modify the JSON body field 'type' from 'comment' to 'test'.
- Send the modified request and observe a 500 Internal Server Error.
- Attempt to access the project as any user and see it stuck in a permanent loading state.
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 write-up has not been written yet. The Original tab links to the source.
A Viewer is meant to only look at a project, not change anything. But the system let a Viewer post a comment, and by altering a hidden field in that request they could crash the project so nobody could use it. This is like a read-only guest being able to flip a switch that breaks the whole building.
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.