Skip to content
Access control Write-up Intermediate

Exploits Explained: 5 Unusual Authentication Bypass Techniques

Five separate authentication bypasses were found: a token refresh endpoint that issued tokens for any username without an Authorization header, an SSO redirect that leaked internal responses allowing header tampering, a CMS portlet that exposed self-registration, a JWT validation that accepted any validly signed token regardless of audience, and an XML login that accepted an empty password when a type attribute was set to zero. An attacker could generate tokens for arbitrary users, access internal applications without authentication, or take over accounts using an empty password.

Ozgur Alp Follow

Published on synack.com

Taxonomy Authentication & Access Control

Ozgur Alp (@ozgur_bbh), on synack.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 business logic and configuration flaws: trusting client-supplied values (username, redirect headers, portlet IDs, JWT audience, parameter types) without proper server-side validation.

Impact

An attacker could generate authentication tokens for arbitrary users, gain unauthenticated access to internal applications, self-register to access internal systems, leak company data via JWT misuse, and take over any account using an empty password.

What the attacker needed

Valid credentials for initial login (example 1); ability to intercept and modify HTTP responses (example 2); access to the internal application URL (example 2); knowledge of the portlet ID (example 3)

The fix

Authentication decisions should be validated entirely on the server side, including token issuance, SSO redirect handling, and every parameter type or edge case, rather than trusting client-supplied values or defaults.

How it was found

  1. Log in with valid credentials to obtain a Bearer token.
  2. Send a request to the token refresh endpoint with the Authorization header removed and a different username in the body.
  3. Receive a new valid token for the supplied username.
  4. Visit the internal URL and observe the redirect to the SSO system.
  5. Tamper with the redirect response by changing the 302 status to 200 and deleting the Location header.
  6. Access the application without 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.

Authentication is how a system checks who you are. These bugs let attackers skip that check in different ways, such as asking for a token for someone else, tricking the login page into showing internal content, or sending an empty password that the system wrongly accepts. The common thread is that the server trusted something it should have verified itself.

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.

More by Ozgur Alp

View all

6 more disclosed reports, best first.

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.