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.
- 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:
- Attempt to log in with a token (just put in gibberish)
- Cut and paste the entire 401 authentication error starting from the back, forwards.
- Paste the 401 error into the token password field
- 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
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
- Attempt to log in with a token by entering gibberish.
- Copy the entire 401 authentication error message, starting from the end and moving forwards.
- Paste the copied 401 error into the token password field.
- 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.