Malicious comment makes loading fails for all other comments
A comment containing a malformed image reference with a null byte in the upload path caused the page to fail loading all other comments when refreshed. An attacker could post such a comment to break comment loading for anyone viewing the issue.
GitLab
Originally disclosed on GitLab
- Fixed in 2 months
- Disclosed after 2 months
This is a manual import of https://hackerone.com/reports/860559 as this vulnerability makes the automated import https://gitlab.com/gitlab-org/gitlab/-/issues/215974 fail
@gweaver @johnhope When commenting an issue with the following payload it makes loading of all the other comments fail when refreshing the page:
{{media:0}}
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 application did not properly validate or sanitise the file path in image references, allowing a null byte to break the comment rendering process.
Impact
A single comment can make loading of all other comments fail when the page is refreshed.
What the attacker needed
Ability to comment on an issue
How it was found
- Post a comment on an issue containing a malformed image reference with a null byte in the path.
- Refresh the page to view the comments.
- Observe that loading of all other comments fails.
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 comment can include an image link. If that link contains a special character that the system cannot handle, the whole page that shows comments may stop working. This means one bad comment can hide all the other comments from view.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.