Closed Bug 506008 Opened 15 years ago Closed 10 years ago

"Warning: Contains unauthenticated content" appears even though page is fully secure

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 947079

People

(Reporter: d.reade, Unassigned)

References

()

Details

(Keywords: regression, Whiteboard: [psm-padlock])

Attachments

(2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) Since the release of Firefox 3.5, some secure pages are detected as containing unauthenticated content, even though Page Info states all media is secure. Refreshing the page makes the message disappear. Reproducible: Always Steps to Reproduce: We use Apache to redirect users automatically to pages that require the connection to be secure. When the user is redirected from a non-secure to secure page, this is when the error appears. However, click a link on the page which links to a secure page, i.e. not using redirects, and it loads first time no problem. This suggests Firefox is reading the last request (which was in-secure), thinking this is still the case. Refreshing the page of course means the last connection wasn't a redirect - technically a direct link (refresh) and it sees this as secure. Just my opinion of what it's doing. Please use http://www.readesresidential.com/ as an example. Clicking Sign In which uses a redirect, causes Firefox to display the error. Whereas link directly to another secure page, such as https://www.readesresidential.com/register/ and it works no problem. Once you have refreshed the page and Firefox says the page is secure, sometimes the issue doesn't reoccur when clicking on to a non-secure page and then back on to the secure page (via the redirect), but sometimes it does. This issue has the potential to make people think the page they're looking at is not secure. I cannot replicate this issue in any other browser, the issue was first noticed with FF 3.5. Upgrading to FF 3.5.1 hasn't resolved the problem. Let me know if you need any further details.
Do you mean bug 477118 ? I have no issue if I don't login and get no mixed content warning.
Oops, didn't see that one. I posted this a few weeks back but that bug got closed because it was a separate issue to this one, but they told me to recreate it if it was still a problem. I couldn't replicate it on the sign in/register pages, bad example, try this one instead... http://www.readesresidential.com/pitmans-lane-hawarden-flintshire-ch5-3ee-p1028/ then click "arrange viewing" on the left. For me the page redirects to secure, but the warning icon appears at the bottom.
I can confirm this issue with SM trunk and FF3.5
Assignee: nobody → kaie
Component: Security → Security: PSM
Product: Firefox → Core
QA Contact: firefox → psm
Version: unspecified → 1.9.1 Branch
Nice one. Also if there are any UK devs or testers on here who are on Be Unlimited broadband, try logging in to the forums and you'll notice every forum page, has the same issue as mine. Even a refresh doesn't resolve the issue on the Be forums. Their software is phpBB, so not sure if it happens with other phpBB communities that operate under a secure connection.
There is apparently a problem. Going to take a look at this.
Assignee: kaie → honzab.moz
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Regression from bug 135007. Apparently we are taking into account image loads that are loaded for button face in onmouseover events. The bug is that it should be target to the current document and not the page newly loading (after you click the "arrange viewing" button). This won't be an easy fix at the first sight. Dave, thanks for this report and the test environment.
Keywords: regression
No worries mate.
In reality: - we do request for http://www.readesresidential.com/pitmans-lane-hawarden-flintshire-ch5-3ee-p1028/arrange-viewing/ - we get redirect 301 to https://www.readesresidential.com/pitmans-lane-hawarden-flintshire-ch5-3ee-p1028/arrange-viewing/; at that moment security UI gets onStateChange and we reset all subrequest security counters and set security state to SECURE (4) in this callback - then, when user moves mouse over buttons, onmouseover reloads background of a button and we get onStateChange with http:// image reference that counts as INSECURE subrequest (the original page still processes events) - then we get onLocationChange callback after server returned 200 and security UI changes the state from 0 to 2 (there are already those INSECURE subrequests encountered) I'm not sure of the onLocationChange callback implementation and the true meaning but a simple fix for this bug would be to reset the subrequest counters (in case of a top level document). I have to check this solution is correct. Btw, onLocationChange callback implementation probably already suffers from other missing checks and code.
Just thought I'd provide you with a new URL since we've upgraded our site and moved to EV SSL certificates. https://secure.readespassport.com/pitmans-lane-hawarden-flintshire-ch5-3ee-p1028/arrange-viewing/
(In reply to comment #9) > Just thought I'd provide you with a new URL since we've upgraded our site and > moved to EV SSL certificates. Thanks, now I have an automated test for this, there is no need to keep any testing code now.
Attached patch v1 (obsolete) — Splinter Review
First version of the fix including the test. We must reset sub-request counters in onLocationChange callback that indicates start of load of the new URI (after we got finally 200 from the server as a response to the redirect URI). Jeff: please review the changes to httpd.js and head_utils.js Kaie: please review the rest, including the tests
Attachment #393489 - Flags: review?(kaie)
Attachment #393489 - Flags: review?(jwalden+bmo)
Blocks: lockicon
Why isn't is sufficient to simply hand-roll the delay as demonstrated in the "Advanced dynamic response creation" section of this document: https://developer.mozilla.org/En/HTTP_server_for_unit_tests I don't see a particular reason why this code needs to be in-server rather than defined by the SJS pages themselves.
Attached patch v1.1 (obsolete) — Splinter Review
(In reply to comment #12) > I don't see a particular reason why this code needs to be in-server rather than > defined by the SJS pages themselves. Oh, I didn't know this is possible. Test fixed.
Attachment #393489 - Attachment is obsolete: true
Attachment #393733 - Flags: review?(kaie)
Attachment #393489 - Flags: review?(kaie)
Attachment #393489 - Flags: review?(jwalden+bmo)
Comment on attachment 393733 [details] [diff] [review] v1.1 This patch is wrong. It breaks fix (full) for bug 329869, I have to investigate further.
Attachment #393733 - Attachment is obsolete: true
Attachment #393733 - Flags: review?(kaie)
(In reply to comment #13) > Oh, I didn't know this is possible. Test fixed. Do note that you need to keep a reference to the timer until it fires; just a local variable like that could, conceivably, not be such a reference because a GC could end up not keeping the reference. That's why the example I had on that page stored the timer in a global variable, although it seems I didn't make that clear in the docs (thought I had at one time, seems not).
Just wondered if you know when this bug will be fixed? Thanks.
Blocks: 492358
Hello all. Similar to bug 552789 reported in March 2010. https://bugzilla.mozilla.org/show_bug.cgi?id=552789
Whiteboard: [psm-padlock]
IMPORTANT QUESTION THAT NEEDS TO BE ANSWERED: If this is happening with a page like Gmail, is your password being sent over an unencrypted connection or is it secure? Thanks.
It does happen on Gmail: sign into a gmail account, then sign out: you are taken to the sign-in page again but it is displayed as insecure.
Has anyone got a resolution date for this? It's really old and should have been fixed by now! Every other browser seems to handle this type of thing correctly but FireFox and it's seriously affecting our business. http://www.prestigecarservicing.com/ Click on Book Now Takes you to our secure booking page https://www.prestigecarservicing.com/contactus.html Connection partially encrypted Refresh page Connection Encrypted. Can someone get back to those of us who have been very patient and are probably now getting seriously annoyed, with either a workaround or an estimated date for when we can expect a fix please?
Releasing for now but still on my radar.
Assignee: honzab.moz → nobody
Status: ASSIGNED → NEW
Ended up here from bug 723580. I still can reproduce what's described in comment #0 on Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:13.0) Gecko/20120224 Firefox/13.0a1 ID:20120224031039. Changing version and platform accordingly FWIW
OS: Windows XP → All
Hardware: x86 → All
Version: 1.9.1 Branch → Trunk
Blocks: 812760
FWIW: I'm able to consistently reproducing this bug using Firefox 18.0.2 on Mac OSX Mountain Lion, Software OS X 10.8.2 (12C60) If someone needs steps how to reproduce, please contact me. Best, J.A. Slurink
Hi Dave, I see that the webpage and signin has been moved from www.readesresidential.com/ to www.reades.co.uk. The sign in and register pages are now over HTTP, and trying HTTPS gives me a cert error. Did you move login off of HTTPS because of this bug? It should be fixed in Firefox 39 (bug 947079).
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: