Forcing a website to use https all the time

Ask for help about NoScript, no registration needed to post
User avatar
phule
Junior Member
Posts: 35
Joined: Sun Jun 07, 2009 6:45 pm
Location: Missouri, USA

Forcing a website to use https all the time

Post by phule »

Is it possible to force a website to use https all the time using NS>options>advanced>https>behavior?

I'm referring to the website http://www.igourmet.com which has a non-secure homepage but a secure login page. However entering the requested email address & password and clicking on the login link, a Security warning pop-up appears. It states that while the page is encrypted, the data will be sent via a non-secure connection. I tried adding *.igourmet.com to NS>options>advanced>https>behavior but it didn't work.

Any ideas/suggestions? :?:
Phule
FireFox 56.0,NoScript 5.1.2, BetterPrivacy-1.77
Adblock Plus 2.9.1. Mac OS X 10.12.5
Apple iMac 2.7 GHz Intel Core i5
8 GB 1066 MHz DDR3 RAM
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Forcing a website to use https all the time

Post by Giorgio Maone »

You don't have to worry about that warning: it is issued because the action attribute of the form you're submitting contains a http: URL.
However NoScript turns this URL into https as soon as the request starts.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Forcing a website to use https all the time

Post by therube »

Should it show the login/pw in plain text (on my end at least)?
Should it show https: somewhere?
(And it knows you too, in the cookie. Darn cookies!)

Code: Select all

http://www.igourmet.com//myAccount/login_process.asp

POST //myAccount/login_process.asp HTTP/1.1
Host: www.igourmet.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1pre) Gecko/20090717 SeaMonkey/2.0b1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate
Keep-Alive: 300
Connection: keep-alive
Cookie: index%5Flanding%5Fpage=http%3A%2F%2Fforums%2Einformaction%2Ecom%2Fviewtopic%2Ephp%3Ff%3D7%26t%3D2134%26sid%3D49ccc5f6e00cdd254d0027e398a56abe; ASPSESSIONIDAATQBRQT=OECFFBMCJKJGPEPAOCCOLJAI
Content-Type: application/x-www-form-urlencoded
Content-Length: 67
redirect=&email0=abc%40def.com&password0=igour&Login.x=84&Login.y=4
HTTP/1.x 302 Object moved
Date: Tue, 28 Jul 2009 00:10:35 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Location: error.asp?err=acct600a&link=login.asp
Content-Length: 162
Content-Type: text/html
Expires: Tue, 28 Jul 2009 00:10:35 GMT
Cache-Control: private
PS: And the login page itself has a broken SSL warning. But that doesn't matter if you're forcing https:?

Woops. Forgot I had taken igourmet.com out of https:.

Again, this time with igourmet.com in force https:

Code: Select all

https://www.igourmet.com//myAccount/login_process.asp

GET //myAccount/login_process.asp HTTP/1.1
Host: www.igourmet.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1pre) Gecko/20090717 SeaMonkey/2.0b1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate
Keep-Alive: 300
Connection: keep-alive
Cookie: index%5Flanding%5Fpage=http%3A%2F%2Fforums%2Einformaction%2Ecom%2Fviewtopic%2Ephp%3Ff%3D7%26t%3D2134%26sid%3D49ccc5f6e00cdd254d0027e398a56abe; ASPSESSIONIDAATQBRQT=OECFFBMCJKJGPEPAOCCOLJAI

HTTP/1.x 302 Object moved
Date: Tue, 28 Jul 2009 00:19:29 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Location: http://www.igourmet.com/
Content-Length: 145
Content-Type: text/html
Expires: Tue, 28 Jul 2009 00:19:29 GMT
Cache-Control: private
OK, this time the login/pw is not being transmitted in plain text.

There is a difference. With force https:, with my invalid login attempt, there is no feedback given. I am simply redirected back to the home page rather then the Invalid account or incorrect password page.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1pre) Gecko/20090717 SeaMonkey/2.0b1
Post Reply