Skip to content
DoS Disclosed report Beginner

Denial of Service via "Change username".

A normal user could change their username to a value containing an invalid character, which caused the admin logs page to return a 500 error. This blocked the administrator from accessing that page.

GitLab

Originally disclosed on GitLab

  • Fixed in 15 months
  • Disclosed after 15 months

HackerOne report #482529 by sql00 on 2019-01-19, assigned to jritchey:

An attacker(normal user) can block access to "/admin/logs" page in Administration panel. In the result of this scenario the Administrator will not be able to open "Logs" page.

Steps To Reproduce:

  1. Create normal gitlab user via "Register" page.
  2. Go to Settings -> Account -> Change Username
  3. Click "Update Username" and intercept the request.

Request:

PUT /profile/update_username.json HTTP/1.1  
Host: 192.168.1.106  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:42.0) Gecko/20100101 Firefox/42.0  
Accept: application/json, text/plain, */*  
Accept-Language: en-US,en;q=0.5  
Accept-Encoding: gzip, deflate  
X-CSRF-Token: fo/jJTRUcYjKV46y1/mYnJzCtTu5otud5El0Y9PW+Wzu7o5dLCtsJ5WMbYLN1DEzFRqxgR2z4H7f6I2r/sliew==  
X-Requested-With: XMLHttpRequest  
Content-Type: application/json;charset=utf-8  
Referer: http://192.168.1.106/profile/account  
Content-Length: 30  
Cookie: _gitlab_session=fa5bbd5f02462cde2814d93489660c3f; sidebar_collapsed=false  
Connection: close

{"user":{"username":"test"}}  
  • Change username from "test" to "t�est." and send request. You will receive response "Something went wrong (500)".
  • Now, log in Administrator account(ex: root)
  • Go to "http://<gitlab-instance>/admin/logs"
  • Response from the back-end will be

"500 Whoops, something went wrong on our end."

Impact

An attacker is able to block access to important Administrative Page.

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 application did not validate or sanitise the username input, allowing an invalid character that later caused an error when rendering the admin logs page.

Impact

An attacker could block the administrator from accessing the admin logs page, causing a denial of service for that page.

What the attacker needed

A normal user account; ability to intercept HTTP requests

How it was found

  1. Create a normal user account via the Register page.
  2. Go to Settings -> Account -> Change Username.
  3. Intercept the update username request.
  4. Change the username to a value containing an invalid character and send the request, receiving a 500 error.
  5. Log in as an administrator.
  6. Navigate to /admin/logs and observe a 500 error 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 user changed their username to something with a strange character. The system did not check it properly, so later when the admin tried to view the logs page, it crashed. This meant the admin could not see the logs.

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.