Skip to content
IDOR Write-up Beginner

Unauthenticated IDOR on NASA’s GitLab Instance — From Recon t

A self-hosted GitLab instance intended to be private allowed unauthenticated access to user data through the /users API endpoint when a username filter was applied, and also exposed SSH key metadata via the /users/:id/keys endpoint. An attacker could enumerate usernames, obtain internal user IDs, and collect SSH key titles containing internal hostnames and contractor email addresses.

ghaddarittoo Follow

Published on medium.com

When a bug hunter sees a third-party hosted platform — GitLab, Jira, Confluence, whatever — the instinct is to move on. “It’s managed software, it’s already been hardened by the vendor.” That instinct is wrong, and this finding is a good example of why.

Ghaddarittoo, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the access control was applied only to the base API route and not uniformly to all variations of the endpoint, such as those with query parameters or path parameters.

Impact

An unauthenticated attacker could enumerate all accounts, collect internal user IDs, and obtain SSH key metadata that may reveal internal workstation names, server hostnames, FQDNs, and contractor email addresses, enabling targeted reconnaissance.

What the attacker needed

None

The fix

The proper fix was applied at the authorization layer to enforce authentication uniformly on all API endpoints, and the bypass was confirmed as no longer reproducible.

How it was found

  1. Request the base users API endpoint and observe a 403 Forbidden response.
  2. Request the same endpoint with a username filter parameter and observe a successful response containing user data.
  3. Obtain usernames from the publicly accessible group members page.
  4. Use the exposed user ID to request the user's SSH keys endpoint and retrieve key metadata.

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 write-up has not been written yet. The Original tab links to the source.

A private GitLab server was supposed to block anyone not logged in, but a specific way of asking for user information slipped past the block. This let anyone list usernames and see details about their SSH keys, which often include the names of internal computers.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by ghaddarittoo

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.