CVE-2024-51493: API key access in settings without reauthentication in OctoPrint
Impact
OctoPrint versions up until and including 1.10.2 contain a vulnerability that allows an attacker that has gained temporary control over an authenticated victim's OctoPrint browser session to retrieve/recreate/delete the user's or - if the victim has admin permissions - the global API key without having to reauthenticate by re-entering the user account's password.
An attacker could use a stolen API key to access OctoPrint through its API, or disrupt workflows depending on the API key they deleted.
Patches
The vulnerability will be patched in version 1.10.3.
Credits
This vulnerability was discovered and responsibly disclosed to OctoPrint by Jacopo Tediosi.
Other sources
OctoPrint provides a web interface for controlling consumer 3D printers. OctoPrint versions up until and including 1.10.2 contain a vulnerability that allows an attacker that has gained temporary control over an authenticated victim's OctoPrint browser session to retrieve/recreate/delete the user's or - if the victim has admin permissions - the global API key without having to reauthenticate by re-entering the user account's password. An attacker could use a stolen API key to access OctoPrint through its API, or disrupt workflows depending on the API key they deleted. This vulnerability will be patched in version 1.10.3 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-51493?
CVE-2024-51493 has a moderate severity level due to its impact on user session security.
How do I fix CVE-2024-51493?
To fix CVE-2024-51493, upgrade OctoPrint to version 1.10.3 or later.
What versions of OctoPrint are affected by CVE-2024-51493?
OctoPrint versions up to and including 1.10.2 are affected by CVE-2024-51493.
What type of vulnerability is CVE-2024-51493?
CVE-2024-51493 is a vulnerability that allows session hijacking via an authenticated user's browser session.
Who is impacted by CVE-2024-51493?
Users of OctoPrint with versions up to 1.10.2, particularly those with administrative privileges, are impacted by CVE-2024-51493.