Skip to content

Mixed Content iframes on localhost #73

@mozfreddyb

Description

@mozfreddyb

It has come to our attention that none of the 3 manor browser engines block insecure iframes on websites hosted on localhost. While this was reported as a private security bug, we have decided to talk about this in public because all browsers behave the same. Firstly, because the impact is relatively low and secondly to foster better conversations. (We are working on making the above report public).

The test case is as simple as putting http://example.com in an <iframe> on a page hosted at localhost.

As per the [spec section §4.3 "Does settings prohibig mixed security contexts?"], mixed-content should kick in is based off of whether an origin is potentially trustworthy, which http://localhost definitely is.

We have prototyped a patch in Gecko but do not want to make a unilateral change without cross-browser alignment.

I can see these options:

  • Admit that all browsers behave the same and write it into the standard.
  • Agree on this being fixed across multiple browsers and collaborate.
  • Fix this but provide some sort of opt-out e.g. in DevTools.

CC @estark37, @annevk, @dveditz

(Edit: Credit belongs to Khiem Tran)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions