WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Internet Security Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2006, 05:18 PM
richkoi's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Columbus, Ohio
Posts: 487
richkoi RepRank 0
Default http:// and https:// Problem

We are having security problems with our online store. Our checkout page is returning port 80, even though https:// is being used:

https://www.bambooheadquarters.com/s...rt/payment.php (There is a chunk of code in this page that shows the port: )

I set up a test page to see if this was a problem with the secure server, but the test returned port 443.

https://www.bambooheadquarters.com/ip.php

Why is our payment.php page not showing port 443? This is a problem as it displays our page as being not secure.

Thanks,

Rich
Reply With Quote
  #2 (permalink)  
Old 04-21-2006, 12:37 PM
WebProWorld Pro
 

Join Date: May 2004
Location: Austin, TX
Posts: 199
steve0 RepRank 0
Default

Which web server are you using? and which Control Panel are you using?

If the web server is apache..
check the config file (httpd.conf)

Some CP's use a different directory (httpsdoc vs httpddocs) for 443, so you may want to check that as well..
__________________
Hardcore Programming Solutions and Coffee Drinker
Reply With Quote
  #3 (permalink)  
Old 04-21-2006, 12:42 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Massachusetts
Posts: 36
Islands RepRank 0
Default SSL certificate

richkoi ...we are getting a "not trusted" return when going to the URL. Suggest you contact Starfield about the installation. Also, the page contains both secure and non-secure items. This is usually because of links to images which are not https://

Mel
__________________
Parent Company: http://ImagineNation.com
http://webPeddle.net/Images/peddle-gold-ad.gif
__________________________
Reply With Quote
  #4 (permalink)  
Old 04-21-2006, 02:15 PM
spiderbait's Avatar
WebProWorld Pro
 

Join Date: Oct 2003
Location: Gibsons, BC, Canada
Posts: 291
spiderbait RepRank 2
Default

I think all of the identified problems may possibly be caused by the following piece of code:
Code:
	  	
	  	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
		</script>
		<script type="text/javascript">
		_uacct = "UA-255468-1";
		urchinTracker();
		</script>
It is calling a non-https URL which causes the security warning and it includes a comment tag with reference to Port:80. I doubt the comment tag is the problem, but is it possibly indicating that the script will attempt to use Port:80?
__________________
Jade Burnside, Ahead of the Web
What good is your web site if no one can find it?
SEO & Optimized Web Site Design
Reply With Quote
  #5 (permalink)  
Old 04-21-2006, 02:27 PM
spiderbait's Avatar
WebProWorld Pro
 

Join Date: Oct 2003
Location: Gibsons, BC, Canada
Posts: 291
spiderbait RepRank 2
Default

For what it's worth, I thought I'd mention that many pages in your shopping cart are exhibiting a very bizarre jumpiness behavior when mousing over links.

I'm using IE6 and the page is jumping back and forth sideways (it seems to be related to the left side bamboo border) when I run my mouse over links or "buy now" buttons.
__________________
Jade Burnside, Ahead of the Web
What good is your web site if no one can find it?
SEO & Optimized Web Site Design
Reply With Quote
  #6 (permalink)  
Old 04-21-2006, 03:17 PM
bwn bwn is offline
WebProWorld Member
 

Join Date: Sep 2005
Posts: 36
bwn RepRank 0
Default

He found why the pop up is coming show secure and unsecure items, up but not why the lock isn't showing, I am in explorer and see an error display on the lower left click on it and there are several errors showing plus the expected line it is looking for the code. It looks like there is missing code for the https to show correctly
Reply With Quote
  #7 (permalink)  
Old 04-21-2006, 04:14 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

This is a common problem and usually involves images.
However, in your case, it looks like spiderbait has the right idea. Google Analytics is the culprit.

Replace
http://www.google-analytics.com/urchin.js
With
https://ssl.google-analytics.com/urchin.js

And you should be good to go
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #8 (permalink)  
Old 04-21-2006, 04:32 PM
richkoi's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Columbus, Ohio
Posts: 487
richkoi RepRank 0
Default

I have tried getting rid of the Google Analytics code all together and that does not fix the problem. As you can see, the secure server seems to be working:

https://www.bambooheadquarters.com/ip.php

It just does not work for that page for whatever reason. Does anybody know why the server port would change on that particular page?

I wrote a script in PHP to try to remove the analytics code from secure pages by detecting the port before displaying the code, so I do not think the analytics code is the problem.
Reply With Quote
  #9 (permalink)  
Old 04-21-2006, 04:41 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

Why don't you remove the analytics code altogether, then let us have a look.
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #10 (permalink)  
Old 04-21-2006, 04:52 PM
richkoi's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Columbus, Ohio
Posts: 487
richkoi RepRank 0
Default

Ok, Google Analytics is off.
Reply With Quote
  #11 (permalink)  
Old 04-21-2006, 05:56 PM
richkoi's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Columbus, Ohio
Posts: 487
richkoi RepRank 0
Default

I changed some absolute links to relative links. I am just not sure what the correct format would be. That fixed the broken lock problem, however, port is still showing 80.

Maybe I am messing up the relative links? What's the best way to make links relative across multiple directory levels?

A) ../image/image.jpg
B) /image/image.jpg
C) image/image.jpg
D) ../../../../../image/image.jpg
Reply With Quote
  #12 (permalink)  
Old 04-21-2006, 07:25 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

ok, removing the analytics code fixed the "this page contains insecure items" error in IE.

However that error will reappear on this page
https://www.bambooheadquarters.com/bamboo.php
because of the iframe.

No need to mess with the images, because they are not causing the problem
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #13 (permalink)  
Old 04-22-2006, 01:31 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: California,USA
Posts: 373
drummin RepRank 0
Default

Quote:
Maybe I am messing up the relative links? What's the best way to make links relative across multiple directory levels?
I'm no expert, but this is what I've found...
As far as images/css/js files etc. make copies for your https folder. When setting up SSL certificate did you specify shared properties? If you didn't all parts of your pages should be in your https folder on your server.

I found no way to successfully "back out" of a https folder and enter a http folder. When making links back to non-secure areas, use full URL's... http://www.mysite.com/page.php

Just a thought...
Best to ya.
Drummin
Reply With Quote
  #14 (permalink)  
Old 04-24-2006, 04:13 AM
WebProWorld Pro
 

Join Date: Mar 2004
Location: Bonnie Scotland
Posts: 106
colr RepRank 0
Default

Are you sure it's not a browser problem?

If you put a https:// URL in your browser, the browser should select port 443 before it even contacts the server.

What platform are you using on both the client and server end?

colr__
__________________
Colin Reid
East Kilbride
Reply With Quote
  #15 (permalink)  
Old 04-24-2006, 03:15 PM
richkoi's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Columbus, Ohio
Posts: 487
richkoi RepRank 0
Default

I am using a server side script to get the port, so I do not think it is a browser issue.
Reply With Quote
  #16 (permalink)  
Old 04-24-2006, 06:44 PM
richkoi's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Columbus, Ohio
Posts: 487
richkoi RepRank 0
Default

I figured it out. I was using:

<? include("http://www.bambooheadquarters.com/footer.php"); ?>

...in my template. Notice how the http:// would not change even if you were on a secure page because the PHP script is server side!

D'OH!

I wrote a script to detect if the site was secure or not and it would change the http:// to https:// automatically. For you PHP buffs, I used the "$serverport = $_SERVER['SERVER_PORT'];" variable to write an if statement.

Lesson learned. Thanks for all your help everyone. Hope someone learns from my mistakes.

Rich
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Internet Security Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0