Skip to content
Access control Advisory Beginner CVE-2022-23554

GHSL-2021-1010: Authentication bypass in Alpine - CVE-2022-23554

The AuthenticationFilter in Alpine checks if the request URI contains '/api/swagger' and if so, skips authentication. An attacker could craft a URL with a path like '/api/foo;%2fapi%2fswagger' to bypass authentication for other endpoints, though without impersonating a user.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

1.10.2

pwntester, 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

Impact

The issue may lead to authentication bypass, but the principal object is not assigned, so user impersonation is not possible.

What the attacker needed

None

The fix

The issue was fixed in version 1.10.4.

How it was found

  1. Craft a URL with a path that contains '/api/swagger' as a substring, such as '/api/foo;%2fapi%2fswagger'.
  2. Send a request to that URL.
  3. The AuthenticationFilter sees the substring and returns without aborting the request, allowing access to the requested resource 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 report has not been written yet. The Original tab links to the source.

A security filter is supposed to check if you are logged in before letting you access certain parts of a website. It mistakenly lets you through if the web address contains a specific text, even if that text is just part of a trick address. This means you could reach pages that should require login, but you would not be logged in as anyone.

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 Alvaro Muñoz

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.

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.