Skip to content
SSRF Disclosed report Intermediate

SSSRF in Gitlab observability (o11y) clickhouse that lacks configuration for url() function allowing it to access local services

The ClickHouse instance behind GitLab's observability platform lacked a remote_url_allow_hosts configuration, so any user with access to the SigNoz dashboard could run SQL that uses the url() table function to make the server fetch arbitrary internal URLs. This allowed reading internal services such as the pprof debug endpoints, leaking system information and potentially causing denial of service.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #3406738 by joaxcar on 2025-10-31, assigned to GitLab Team:

Report | How To Reproduce

Original Report

Summary

When using the new o11y observability platform on gitlab.com, you will get access to your own sigNoz server on a domain looking like https://85989919.gitlab-o11y.com, where the number in the subdomain is the ID of the group on GitLab that has this enabled.

When navigating the observability features in GitLab UI, it looks like this:

{F4952506}

Where the underlying Signoz platform renders in an iframe inside of GitLab, this is accessible for all developers in the organization.

The underlying Clickhouse can be queried in the SigNoz UI. The Clickhouse that is running is lacking any host configuration for outgoing requests which allow users to use (for example) the url() function to fetch data from any host, including localhost

in the docker config for clickhouse there exists this part that is commented out

    <!-- The list of hosts allowed to use in URL-related storage engines and table functions.  
        If this section is not present in configuration, all hosts are allowed.  
    -->  
    <!--<remote_url_allow_hosts>-->  
        <!-- Host should be specified exactly as in URL. The name is checked before DNS resolution.  
            Example: "clickhouse.com", "clickhouse.com." and "www.clickhouse.com" are different hosts.  
                    If port is explicitly specified in URL, the host:port is checked as a whole.  
                    If host specified here without port, any port with this host allowed.  
                    "clickhouse.com" -> "clickhouse.com:443", "clickhouse.com:80" etc. is allowed, but "clickhouse.com:80" -> only "clickhouse.com:80" is allowed.  
            If the host is specified as IP address, it is checked as specified in URL. Example: "[2a02:6b8:a::a]".  
            If there are redirects and support for redirects is enabled, every redirect (the Location field) is checked.  
            Host should be specified using the host xml tag:  
                    <host>clickhouse.com</host>  
        -->

        <!-- Regular expression can be specified. RE2 engine is used for regexps.  
            Regexps are not aligned: don't forget to add ^ and $. Also don't forget to escape dot (.) metacharacter  
            (forgetting to do so is a common source of error).  
        -->  
    <!--</remote_url_allow_hosts>-->

as stated here If this section is not present in configuration, all hosts are allowed.

As an example an attacker can abuse this to gain acces to the internal pprof endpoints that will leak internal system info as well act as a DOS vector due to the high system impact of multiple heap requests to pprof

Steps to reproduce
  1. Create a new group and start an Ultimate trial in it. (take a note of the group ID)
  2. Go to the group page and click on Obervability in the left menu bar or go to https://gitlab.com/groups/YOURGROUPNAME/-/observability/setup

See this page for full instructions:

https://docs.gitlab.com/operations/observability/
3. Go to https://gitlab.com/groups/YOUR_GROUP_NAME/-/observability/dashboard
4. Create a new dashboard
5. Click configure then variables then new variable. In this page you have a SQL query input that we can use to read any data
6. Enter this in the query field and click "test query"

SELECT * FROM url('http://o11y:6060/debug/pprof/heap?debug=1', 'LineAsString')  
  1. Send the test request and you should see the heap output in the response window.
What is the current bug behavior?

The ClickHouse used by GitLab observability lacks any remote_url_allow_hosts configuration, which allows sending requests to internal services.

What is the expected correct behavior?

There should be a remote_url_allow_hosts configuration that blocks internal requests.

Output of checks

This bug happens on GitLab.com

Impact

Full read SSRF that allow attackers to access internal services like pprof that can leak sensitive data and cause DOS issues.

How To Reproduce

Please add reproducibility information to this section:

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

The ClickHouse configuration omitted the remote_url_allow_hosts section, and per ClickHouse documentation that means all hosts are allowed for URL-related functions.

Impact

A full-read SSRF could expose sensitive internal data through pprof and may cause denial of service by repeatedly requesting heap profiles.

What the attacker needed

A GitLab group with Ultimate trial; observability enabled for the group; developer access to the group

The fix

A remote_url_allow_hosts configuration should be added to block requests to internal hosts.

How it was found

  1. Create a group and start an Ultimate trial, noting the group ID.
  2. Open the group's Observability setup page from the left menu.
  3. Go to the observability dashboard page and create a new dashboard.
  4. Open configure, then variables, then new variable to reach a SQL query input.
  5. Enter a query using the url() function against an internal address and click test query.
  6. Observe the internal heap output returned in the response window.

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.

GitLab's observability feature gives each group a dashboard backed by a database called ClickHouse. That database can be told to fetch a web address as part of a query, and because no allow-list was set, it would fetch addresses inside GitLab's own network that users should not reach. An attacker with a normal account could therefore read internal debug pages and possibly overload the service.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.