In-depth lesson · UI spoofing
Typical fixes
Every point the UI spoofing reports back under this heading, best-backed first, each with the reports it is seen in.
-
Browser UI should derive its displayed state directly from the underlying security and page state so the two cannot diverge.
Seen in 25 reports
-
Escape user text before reflecting it into the page.
Seen in 13 reports
-
Interactive browser UI should not be reachable by page content, and framing should be blocked where it is not needed.
Seen in 8 reports
-
Send an X-Frame-Options header or a frame-ancestors policy that browsers enforce.
Seen in 5 reports
-
Fullscreen notifications and permission dialogs should not be allowed to overlap, and the notification should stay visible above other surfaces.
Seen in 3 reports
-
Set the attribute that ignores touches passing through an overlaying window on the OAuth consent button.
Seen in 1 report
-
Remove the id from the authorise button so a URL fragment cannot auto-select it.
-
Correctly handle backslash-escaped characters in the CSS parser so custom CSS stays in scope.
-
Contain positioning directives so rendered elements cannot be placed outside the intended area.
Seen in 1 report