# 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: Moyenne Aucune règle Shoulder - Impact: Élevé OWASP Top 10 #1 - Prevention: Voir MITRE Référence externe **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 - Contourner le mécanisme de protection - Obtenir des privilèges - Modification des données de l'application ## Mitigations - Définissez l'en-tête X-Frame-Options sur DENY ou SAMEORIGIN - Utilisez la directive frame-ancestors de Content-Security-Policy - Mettez en place du code JavaScript frame-busting en repli