Skip to content

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.

Back to the lesson 1 to 9 of 9
  1. Browser UI should derive its displayed state directly from the underlying security and page state so the two cannot diverge.

    Seen in 25 reports
  2. Escape user text before reflecting it into the page.

    Seen in 13 reports
  3. Interactive browser UI should not be reachable by page content, and framing should be blocked where it is not needed.

    Seen in 8 reports
  4. Send an X-Frame-Options header or a frame-ancestors policy that browsers enforce.

    Seen in 5 reports
  5. Fullscreen notifications and permission dialogs should not be allowed to overlap, and the notification should stay visible above other surfaces.

    Seen in 3 reports
  6. Set the attribute that ignores touches passing through an overlaying window on the OAuth consent button.

    Seen in 1 report
  7. Remove the id from the authorise button so a URL fragment cannot auto-select it.

    Seen in 1 report
  8. Correctly handle backslash-escaped characters in the CSS parser so custom CSS stays in scope.

    Seen in 1 report
  9. Contain positioning directives so rendered elements cannot be placed outside the intended area.

    Seen in 1 report