Skip to content
SSRF Advisory Advanced CVE-2023-25557CVE-2022-39366CVE-2023-25559CVE-2023-25560CVE-2023-25561CVE-2023-25562CVE-2023-25558CVE-2023-25580

GHSL-2022-076_GHSL-2022-083: Multiple vulnerabilities in DataHub - CVE-2023-25557, CVE-2022-39366, CVE-2023-25559, CVE-2023-25560, CVE-2023-25561, CVE-2023-25562, CVE-2023-25558, CVE-2023-25580

DataHub contained multiple vulnerabilities across its frontend proxy and metadata service, including an SSRF/XSS via URL parsing in the proxy, a missing JWT signature check, header case-sensitivity impersonation, JSON injection, and a fail-open JAAS login. An attacker could reroute requests to arbitrary hosts, forge tokens to act as any user, or create system admin accounts, in some cases leading to full compromise.

ghsecuritylab Follow

Originally disclosed on GitHub Security Lab

DataHub Frontend Proxy is a user-facing component of DataHub that performs authentication and forwards HTTP requests to DataHub GMS. We discovered that the controllers.Application#proxy method of DataHub Frontend Proxy does not adequately construct the URL when forwarding data to GMS, allowing external users to…

ghsecuritylab, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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 a mix of trusting user-controlled input when building URLs and JSON, skipping cryptographic verification of tokens, and inconsistent case handling of a header, each allowing identity or destination to be influenced by the attacker.

Impact

The issues could allow SSRF to internal servers, XSS in the application origin, authentication and authorisation bypass, and creation of system admin accounts, though the SSRF normally requires a valid cookie unless metadata authentication is enabled.

What the attacker needed

Network access to DataHub frontend; valid session cookie for SSRF (unless auth enabled); metadata service authentication enabled for JWT bypass; Reader role account for impersonation

The fix

The maintainers published fixes in the v0.8.45 release and advisories were issued.

How it was found

  1. Send a request to the frontend proxy path beginning with the GMS prefix followed by an at-sign and an attacker host.
  2. Observe the proxy forwards the request to the attacker-controlled host and returns its response.
  3. For the JWT issue, craft a token with the algorithm set to none and send it in the Authorization header.
  4. Observe the backend accepts the token and returns data for the impersonated user.
  5. For impersonation, send a request with a differently-cased actor header to the GraphQL endpoint.
  6. Observe the request is authorised as the system user and an invite token is returned.

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.

DataHub is a data catalogue with a web frontend that passes requests to a backend service. Several mistakes in how it checked identity and built URLs meant a user could pretend to be someone else, or make the server fetch pages from other machines. The worst cases let an attacker act as the built-in system administrator.

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 by ghsecuritylab

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

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.