Skip to content

GHSA-gm7m-rqf8-jx4m CVE-2023-0780

Improper Restriction of Rendered UI Layers or Frames in cockpit-hq/cockpit

Medium Packagist
Severity
5.4 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
0.37%
Chance of exploitation in the next 30 days. Higher than 31.33% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-1021 Improper Restriction of Rendered UI Layers or Frames
Fix
2.3.9
Upgrade cockpit-hq/cockpit to this version or later

Description

Improper Restriction of Rendered UI Layers or Frames in GitHub repository cockpit-hq/cockpit prior to 2.3.9.

Affected versions

Packagist

PackageVulnerableFixed in
cockpit-hq/cockpit
< 2.3.9
2.3.9

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

cockpit-hq/cockpit Packagist → 2.3.9

composer
composer require cockpit-hq/cockpit:^2.3.9

Severity breakdown

CVSS 3.1 5.4

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Weakness

CWE-1021: Improper Restriction of Rendered UI Layers or Frames

The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.

How to prevent it
  • Implementation: The use of X-Frame-Options allows developers of web content to restrict the usage of their application within the form of overlays, frames, or iFrames. The developer can indicate from which domains can frame the content. The concept of X-Frame-Options is well documented, but implementation of this protection mechanism is in development to cover gaps. There is a need for allowing frames from multiple domains.
  • Implementation: A developer can use a "frame-breaker" script in each page that should not be framed. This is very helpful for legacy browsers that do not support X-Frame-Options security feature previously mentioned. It is also important to note that this tactic has been circumvented or bypassed. Improper usage of frames can persist in the web application through nested frames. The "frame-breaking" script does not intuitively account for multiple nested frames that can be presented to the user.
  • Implementation: This defense-in-depth technique can be used to prevent the improper usage of frames in web applications. It prioritizes the valid sources of data to be loaded into the application through the usage of declarative policies. Based on which implementation of Content Security Policy is in use, the developer should use the "frame-ancestors" directive or the "frame-src" directive to mitigate this weakness. Both directives allow for the placement of restrictions when it comes to allowing embedded content.
  • Implementation: In addition to frames or iframes as previously mentioned, the web application is expected to place restrictions on whether it is allowed to be rendered within objects, embed, or applet elements.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-ch4j-vcf5-58x5
Cockpit CMS: Stored cross-site scripting vulnerability in the Set field type's Display template option
Medium Also affects cockpit-hq/cockpit
GHSA-p46p-7pmj-m34f
Cockpit is vulnerable to directory traversal
Medium Also affects cockpit-hq/cockpit
GHSA-j2rx-4jg9-79mw
Cockpit Vulnerable to Unrestricted Upload of File with Dangerous Type
High Also affects cockpit-hq/cockpit
GHSA-fm6c-rhcf-7439
Cockpit is vulnerable to arbitrary code execution
Critical Also affects cockpit-hq/cockpit
GHSA-5pv2-86qj-5jf9
Cockpit has NoSQL Injection Through Content Aggregation Pipelines
Medium Also affects cockpit-hq/cockpit
GHSA-7x5c-vfhj-9628
Cockpit CMS has SQL Injection in MongoLite Aggregation Optimizer via toJsonExtractRaw()
Medium Also affects cockpit-hq/cockpit
GHSA-j4rj-fgcq-wmqp
Cockpit - Content Platform vulnerable to XSS through name or email argument names
Medium Also affects cockpit-hq/cockpit
GHSA-wp68-xrfg-xvq4
Cockpit Arbitrary File Upload
High Also affects cockpit-hq/cockpit
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor