Skip to content
Misconfiguration Disclosed report Beginner CVE-2024-31392

Firefox on iOS incorrectly shows pages with Mixed Content as secure

chaykin.artem Follow

Originally disclosed on Mozilla

  • Fixed in 10 days
  • Paid in 15 days
  • Disclosed after 10 days
Text
Created attachment 9375871
Simulator Screenshot - iPhone 15 Pro - 2024-01-22 at 21.40.05.png

Firefox on iOS shows that the connection is not secure if a page has mixed content. For example HTTPS page that loads HTTP images or has an HTTP form. This is achieved by checking `webView.hasOnlySecureContent` flag.
Both examples can be observed on https://stoletheminerals.github.io/mixedcontent.html and https://stoletheminerals.github.io/mixedform.html
However, if the page dynamically add this content with a delay (I found that 1 second is enough to reproduce it), either an image or a form, or both, the URL bar icon will not update correctly and will show the page as secure, even though it isn't. 
The PoC is here: https://stoletheminerals.github.io/mixedynamic.html
'''<html>
<body>
<script>
  setTimeout(function() {
      var image = document.createElement("img");
          image.setAttribute("src", "http://very.badssl.com/image.jpg");
          document.body.appendChild(image);
      const form = `
        <form action="http://stoletheminerals.github.io/mixedform.html" method="post">
          <label for="message">Message:</label><br>
          <textarea id="message" name="message"></textarea><br>
          <input type="submit" value="Submit">
        </form>
      `;
      document.body.innerHTML += form;
    }, 1000);
</script>
</body>
</html>
'''
If you click on the lock icon in the URL bar the pop up will show that the page is insecure, but the main icon still shows this as secure (see screenshot attached).

The original report as published on Mozilla's Bugzilla, by chaykin.artem. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A low-severity misconfiguration bug in General. Mozilla made it public on 1 February 2024 as CVE-2024-31392.

About Misconfiguration

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.