# Improper Restriction of Rendered UI Layers or Frames (CWE-1021) 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. - Prevalence: Media Sin reglas de Shoulder - Impact: Alto OWASP Top 10 #1 - Prevention: Ver MITRE Referencia externa **OWASP:** Broken Access Control (A01:2021-Broken Access Control) - #1 ## Description A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, or objects. Without these restrictions, the application could be embedded in malicious sites that use clickjacking techniques to trick users into performing unintended actions. ## Prevention ## Consequences - Eludir mecanismo de protección - Obtener privilegios - Modificar datos de la aplicación ## Mitigations - Establece la cabecera X-Frame-Options en DENY o SAMEORIGIN - Usa la directiva frame-ancestors de Content-Security-Policy - Implementa código JavaScript frame-busting como respaldo