Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368170 - Websites accessed via HTTPS show security warning
Summary: Websites accessed via HTTPS show security warning
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Website (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: phoenix.ui CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 10:10 EST by Wayne Beaton CLA
Modified: 2012-01-10 09:53 EST (History)
0 users

See Also:


Attachments
Screenshot of the problem indicator in the address bar on Chrome (28.17 KB, image/png)
2012-01-09 10:10 EST, Wayne Beaton CLA
no flags Details
Patch (3.71 KB, patch)
2012-01-09 10:48 EST, Denis Roy CLA
no flags Details | Diff
Patch v2 (3.74 KB, patch)
2012-01-09 12:08 EST, Denis Roy CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wayne Beaton CLA 2012-01-09 10:10:29 EST
Created attachment 209214 [details]
Screenshot of the problem indicator in the address bar on Chrome

At least some (maybe all) of our pages display warnings when accessed by HTTPS. The problem, I believe, is that several images are rendered using HTTP. Some of these images come from the theme. The Nova header, for example, includes the "other site" icons using "http://..." src values.

Maybe it's just me, but I find this off-putting. I assume that others might as well.

Reported by Google Chrome:

"Your connection to dev.eclipse.org is encrypted with 256-bit encryption. However, this page includes other resources which are not secure. These resources can be viewed by others while in transit, and can be modified by an attacker to change the behavior of the page."

I'll submit a patch for consideration.
Comment 1 Denis Roy CLA 2012-01-09 10:48:49 EST
Created attachment 209216 [details]
Patch

Phoenix loads the top-right icons from the icons library on dev.eclipse.org.  Attached is a patch that will detect whether https is used or not.
Comment 2 Wayne Beaton CLA 2012-01-09 11:18:18 EST
(In reply to comment #1)
> Created attachment 209216 [details]
> Patch
> 
> Phoenix loads the top-right icons from the icons library on dev.eclipse.org. 
> Attached is a patch that will detect whether https is used or not.

I'm pretty sure that I said that I was going to submit a patch :-(

The documentation for $_Server['HTTPS'] states that the value is non-empty (not anything specific). I recommend changing the check to:

if($_SERVER['HTTPS']) {
  $image_protocol = "https";
}

+1 otherwise.

I started a more general solution for dealing with images in the project stuff: I have an images script that provides commonly-used images. I use it primarily for consistency of images across pages, but it also provides a handy bottleneck for dealing with this sort of issue. But this is a little bigger than what we need now.
Comment 3 Denis Roy CLA 2012-01-09 12:08:42 EST
Created attachment 209219 [details]
Patch v2

> I'm pretty sure that I said that I was going to submit a patch :-(

Sorry, I had already started this as part of the auth change.


I've changed the patch to use isset.  On my dev box, $_SERVER['HTTPS'] isn't even defined in $_SERVER, which throws a warning.
Comment 4 Wayne Beaton CLA 2012-01-09 13:18:28 EST
(In reply to comment #3)
> I've changed the patch to use isset.  On my dev box, $_SERVER['HTTPS'] isn't
> even defined in $_SERVER, which throws a warning.

I believe that this is a reasonable interpretation of the documentation.

+1
Comment 5 Denis Roy CLA 2012-01-09 15:05:51 EST
The patch fixed all the http images.  The Google CSE in the nav bar is still using http, though.

I can think of two solutions:

1. We hack Phoenix to allow disabling the Google CSE.  In the context of Site Login, the Google CSE is really not required.

2. We hach Phoenix to detect https and alter the calls to CSE to use https as well.

My vote is 1.
Comment 6 Wayne Beaton CLA 2012-01-09 15:14:33 EST
(In reply to comment #5)
> The patch fixed all the http images.  The Google CSE in the nav bar is still
> using http, though.
> 
> I can think of two solutions:
> 
> 1. We hack Phoenix to allow disabling the Google CSE.  In the context of Site
> Login, the Google CSE is really not required.
> 
> 2. We hach Phoenix to detect https and alter the calls to CSE to use https as
> well.
> 
> My vote is 1.

#2 seems more consistent.

"Allow disabling" means that's on by default and must be explicitly turned off. This is just one more thing that implementers will forget to think about.

Option 3 might be to just automatically exclude the Google CSE if HTTPS is being used. But I still like #2 better.
Comment 7 Denis Roy CLA 2012-01-09 15:53:44 EST
Ok, the Google CSE seems to have fixed it.  Can you confirm on your browser of choice?
Comment 8 Wayne Beaton CLA 2012-01-09 15:58:44 EST
(In reply to comment #7)
> Ok, the Google CSE seems to have fixed it.  Can you confirm on your browser of
> choice?

+1 in Chrome and Firefox on Fedora 14.
Comment 9 Denis Roy CLA 2012-01-09 16:44:13 EST
Fixed it is.
Comment 10 Wayne Beaton CLA 2012-01-09 19:48:52 EST
(In reply to comment #9)
> Fixed it is.

Got the Star Wars Bluray Box set for Christmas, did you?
Comment 11 Denis Roy CLA 2012-01-10 09:53:53 EST
Lolling I am, for the box set, I have not.