Skip to content
DoS Disclosed report Beginner

Admin Audit Log DoS via crafted malicious Audit Log Entry

An ordinary user could create a release with an attached milestone, which generated a malformed audit log entry. When an admin visited the audit log page, it returned a 500 error, making the page unavailable.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

HackerOne report #776984 by xanbanx on 2020-01-17, assigned to @vdesousa:

Hi GitLab Security Team,

Summary

This time, I found an interesting DOS vulnerability. Any user of the GitLab instance can craft a malicious audit event, such that the audit event page for admins is not available anymore and will return a 500 error for any subsequent requests.

Steps to reproduce

  1. As an ordinary user, create a new project, create a milestone, push some code
  2. Create a release on that project with an attached milestone.
Bash
curl -X POST -H "Private-Token: <Private-Token>" https://example.gitlab.com/api/v4/projects/<project-id>/releases?tag_name=<v1.0>\&description=Public-release\&milestones[]=My-Milestone  
  1. As an admin user, visit https://example.gitlab.com/admin/audit_log

This now returns a 500 error, this the audit event log page is not available anymore. Creating a release with an attached milestone crafts a malicious audit event log entry, which is preventing the audit page to load.

Impact

Any user of the instance can DOS the audit event log page of the admin by creating a malicious event log entry.

What is the current bug behavior?

A malicious audit event entry can DOS the audit event log page.

What is the expected correct behavior?

It should not be possible to craft a malicious event log entry.

Output of checks

Tested on a local installation of GitLab Enterprise Edition 12.7.0-pre ecfa56a4ab6

Results of GitLab environment info

System information  
System:         Ubuntu 16.04  
Proxy:          no  
Current User:   git  
Using RVM:      no  
Ruby Version:   2.6.5p114  
Gem Version:    2.7.10  
Bundler Version:1.17.3  
Rake Version:   12.3.3  
Redis Version:  5.0.7  
Git Version:    2.24.1  
Sidekiq Version:5.2.7  
Go Version:     go1.6.2 linux/amd64

GitLab information  
Version:        12.7.0-pre  
Revision:       ecfa56a4ab6  
Directory:      /opt/gitlab/embedded/service/gitlab-rails  
DB Adapter:     PostgreSQL  
DB Version:     10.9  
URL:            https://example.gitlab.com  
HTTP Clone URL: https://example.gitlab.com/some-group/some-project.git  
SSH Clone URL:  [email protected]:some-group/some-project.git  
Elasticsearch:  no  
Geo:            no  
Using LDAP:     no  
Using Omniauth: yes  
Omniauth Providers:

GitLab Shell  
Version:        11.0.0  
Repository storage paths:  
- default:      /var/opt/gitlab/git-data/repositories  
GitLab Shell path:              /opt/gitlab/embedded/service/gitlab-shell  
Git:            /opt/gitlab/embedded/bin/git  

Best regards,
Xanbanx

Impact

See above.

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 audit log page did not handle a release with an attached milestone correctly, causing an error when rendering the entry.

Impact

Any user of the instance could cause the admin audit log page to return a 500 error, making it unavailable.

What the attacker needed

A free account on the GitLab instance; admin visits the audit log page

How it was found

  1. As an ordinary user, create a new project, create a milestone, and push some code.
  2. Create a release on that project with an attached milestone.
  3. As an admin user, visit the audit log page.
  4. The audit log page returns a 500 error and is no longer available.

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.

An audit log is a record of actions taken on a system, often used by administrators to review activity. Here, a regular user could add a special kind of entry that broke the page showing these logs, so the admin could no longer view them.

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.