Skip to content
DoS Disclosed report Beginner

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}}

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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

  1. Post a comment on an issue containing a malformed image reference with a null byte in the path.
  2. Refresh the page to view the comments.
  3. 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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.