CVE-2024-28237: XSS via the "Snapshot Test" feature in Classic Webcam plugin settings

CVE-2024-28237 · Severity: low · CVSS 3.1 · Published 2024-03-18

OctoPrint provides a web interface for controlling consumer 3D printers. OctoPrint versions up until and including 1.9.3 contain a vulnerability that allows malicious admins to configure or talk a victim with administrator rights into configuring a webcam snapshot URL which when tested through the "Test" button included in the web interface will execute JavaScript code in the victims browser when attempting to render the snapshot image. An attacker who successfully talked a victim with admin rights into performing a snapshot test with such a crafted URL could use this to retrieve or modify sensitive configuration settings, interrupt prints or otherwise interact with the OctoPrint instance in a malicious way. The vulnerability is patched in version 1.10.0rc3. OctoPrint administrators are strongly advised to thoroughly vet who has admin access to their installation and what settings they modify based on instructions by strangers.

Technologies: OctoPrint (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-28237 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-28237 being exploited in the wild.
How severe is CVE-2024-28237?
Low severity, with a CVSS score of 3.1, published 18 March 2024.
Which products and versions are affected?
OctoPrint (PyPI) ECOSYSTEM:introduced=0,fixed=1.10.0rc3, GIT:introduced=0,fixed=779894c1bc6478332d14bc9ed1006df1354eb517|ECOSYSTEM:introduced=0,fixed=1.10.0.
Is there a fix for CVE-2024-28237?
Yes. OctoPrint (PyPI): upgrade to 1.10.0, 1.10.0rc3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-28237?
Check whether you run OctoPrint (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • OctoPrint (PyPI): upgrade to 1.10.0, 1.10.0rc3 or later
    pip install "OctoPrint>=1.10.0rc3"

Affected products

  • OctoPrint (PyPI) ECOSYSTEM:introduced=0,fixed=1.10.0rc3, GIT:introduced=0,fixed=779894c1bc6478332d14bc9ed1006df1354eb517|ECOSYSTEM:introduced=0,fixed=1.10.0

Identifiers

  • CVE-2024-28237
  • GHSA-x7mf-wrh9-r76c
  • PYSEC-2024-179

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.