BaseIncomplete
CWE-1021Improper Restriction of Rendered UI Layers or Frames
Category: other
Description
The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.
Common consequences· 1
- Access Control — Gain Privileges or Assume Identity, Bypass Protection Mechanism, Read Application Data, Modify Application DataAn 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 trick the user into changing privacy settings.
Potential mitigations· 4
- [Implementation]
- [Implementation]
- [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.
Related CAPEC attack patterns· 7
References
Exploits (incoming)7
| Type | Target | Confidence | Tier |
|---|---|---|---|
| AttackPattern | Task Impersonationcapec-504 | 100% | live |
| AttackPattern | Cross Frame Scripting (XFS)capec-587 | 100% | live |
| AttackPattern | iFrame Overlaycapec-222 | 100% | live |
| AttackPattern | Flash File Overlaycapec-181 | 100% | live |
| AttackPattern | Credential Prompt Impersonationcapec-654 | 100% | live |
| AttackPattern | Tapjackingcapec-506 | 100% | live |
| AttackPattern | Clickjackingcapec-103 | 100% | live |
(incoming)2
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2026-0007cve-2026-0007 | 0% | live |
| Vulnerability | CVE-2026-22918cve-2026-22918 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.