Skip to content
Access control Write-up Beginner

Authentication Bypass | Easy P1 in 10 minutes

A GitLab instance protected by SAML login allowed unauthenticated access to user and group pages, exposing source code and credentials. An attacker could read sensitive data such as SQL and LDAP credentials without logging in.

Anirudh Makkar Follow

Published on infosecwriteups.com

Hello there, I am Anirudh Makkar from India. This is my first write up and I hope you guys like it.

Anirudh Makkar, on infosecwriteups.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 GitLab instance did not enforce authentication on user and group pages, only on the main login flow.

Impact

An unauthenticated attacker could access private source code and extract SQL and LDAP credentials, potentially leading to further compromise.

What the attacker needed

Knowledge of a username or group name; no login required

How it was found

  1. Find the GitLab subdomain through subdomain enumeration.
  2. Notice it redirects to a SAML login page.
  3. Use a Google dork to find usernames and group names.
  4. Visit the user or group URL directly to bypass authentication.

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 company's code-hosting site was supposed to require a login through a single sign-on system. However, some pages like a user's profile or a group's page could be opened directly without logging in. This let anyone see private code and passwords stored in it.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.