Skip to content
DoS Disclosed report Beginner

DOS on WIKI pages (Creating uneditable pages)

A wiki page title containing a path traversal sequence created a page whose directory did not exist, making the page uneditable. An attacker could create such pages to cause a denial of service by preventing modification.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 days
  • Disclosed after 3 days

HackerOne report #815679 by newbiemole on 2020-03-10, assigned to @cmaxim:

Summary

As per the documentation on https://docs.gitlab.com/ee/user/project/wiki/

Create a new page by clicking the New page button that can be found in all wiki pages.
You will be asked to fill in a title for your new wiki page.
You can specify a full path for the wiki page by using ‘/’ in the title to indicate subdirectories. Any missing directories will be created automatically. For example, a title of docs/my-page will create a wiki page with a path /wikis/docs/my-page.

I tried to create a Wiki page without any subdirectories or even a directory.

Steps to reproduce

  1. Create a new WIKI page.
  2. In the title field, fill in dos/../.
  3. For Format, select any of the dropdown list. e.g Markdown
  4. For content anything you like. e.g [email protected]
git1.png
git1.png From the original on GitLab
  1. Click Create page.

You will be redirected to https://gitlab.com/ruralnet-v3/test/-/wikis/dos/...md.

git2.png
git2.png From the original on GitLab

Please check.

Best Regards,

newbiemole

Impact

You will notice that dos path is not created/not existing and the title of the wiki page is unknown.
You will not be able to modify the page since the directory doesn't exist.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 wiki page creation did not properly validate or normalise the title path, allowing directory traversal that resulted in an invalid page location.

What the attacker needed

Access to create wiki pages

How it was found

  1. Create a new wiki page.
  2. Enter a title containing a path traversal sequence.
  3. Select a format such as Markdown.
  4. Enter any content.
  5. Click Create page.

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 wiki page title can include slashes to create folders. By using a special sequence that goes up a folder level, the page was saved in a location that doesn't exist. This means the page can't be edited afterwards, which could be used to block changes.

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.