logo
Home/CWEs/CWE-1021/

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

  • Abstraction:Base
  • Structure:Simple
  • Status:Incomplete
  • Release Date:2017-11-08
  • Latest Modification Date:2023-06-29

Weakness Name

Improper Restriction of Rendered UI Layers or Frames

Description

The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain, which can lead to user confusion about which interface the user is interacting with.

A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements. Without the restrictions, users can be tricked into interacting with the application when they were not intending to.

Common Consequences

Scope: Access Control

Impact: Gain Privileges or Assume Identity, Bypass Protection Mechanism, Read Application Data, Modify Application Data

Notes: An attacker can trick a user into performing actions that are masked and hidden from the user's view. The impact varies widely, depending on the functionality of the underlying application. For example, in a social media application, clickjacking could be used to trik the user into changing privacy settings.

Related Weaknesses

CWE-441Unintended Proxy or Intermediary ('Confused Deputy')

CWE-451User Interface (UI) Misrepresentation of Critical Information

CWE-610Externally Controlled Reference to a Resource in Another Sphere

Related Alerts

X-Frame-Options Setting MalformedMedium

Missing Anti-clickjacking HeaderMedium

Multiple X-Frame-Options Header EntriesMedium

X-Frame-Options Defined via META (Non-compliant with Spec)Medium