Skip to content
Access control Disclosed report Beginner

Tokenless GUI Authentication

The Kubernetes Dashboard login could be bypassed by pasting the 401 authentication error text into the token field, granting access as an anonymous user. An attacker could then view the GUI with system:anonymous privileges.

seanland Follow

Originally disclosed on HackerOne

Medium 6.3 View original
  • Triaged in 5 days
  • Fixed in 20 days
  • Disclosed after 41 days

Report Submission Form

Summary:

A person has the ability to bypass the login screen using the 401 error code produced from a failed token login. The user is given the privileges of an system:anonymous user.

Kubernetes Version:

kubectl, kubeadm, kubelet 1.22.2 Ubuntu 20.04.3 - 64bit

Component Version:

Dashboard v2.3.1+0.g8d9f8e76c

Steps To Reproduce:

  1. Attempt to log in with a token (just put in gibberish)
  2. Cut and paste the entire 401 authentication error starting from the back, forwards.
  3. Paste the 401 error into the token password field
  4. Hit enter to Submit

Supporting Material/References:

Please refer to the demonstration.

Impact

The user is given the privileges of an system:anonymous user and access to the GUI.

Attachments

recording-1632518357039.webm From the original on HackerOne

The original report as published on HackerOne, by seanland. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 the dashboard's token validation logic incorrectly accepted the 401 error response as a valid token, possibly due to improper parsing or comparison.

Impact

The user is given the privileges of a system:anonymous user and access to the GUI.

What the attacker needed

Access to the Kubernetes Dashboard login page

How it was found

  1. Attempt to log in with a token by entering gibberish.
  2. Copy the entire 401 authentication error message, starting from the end and moving forwards.
  3. Paste the copied 401 error into the token password field.
  4. Submit the form to log in.

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.

The Kubernetes Dashboard is a web interface for managing a cluster. Normally you need a token to log in, but the login check could be tricked by entering the error message from a failed login instead of a real token. This let someone get into the dashboard with limited anonymous permissions.

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 from Kubernetes

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.