How to disable strict transport security?

Ask for help about NoScript, no registration needed to post
Cryvage

How to disable strict transport security?

Post by Cryvage »

How to completely disable strict transport security in noScript? I found that it can be disabled by turning "false" the "noscript.STS.enabled" option in "about:config". But there is no such option. So information is incorrect or outdated. I've tried to add new parameter with this name, and "false" value. But it's not working.
I have a problem to access to http://download.cdn.mozilla.net/. This site not the first and not the only with these problem. It's just "last drop". At first I think, that it's a problem of firefox itself. But all works fine, if I disable noScript.
P.S I don't need any "security" tweaks from noScript addon. All I need is ability to disable some scripts on some sites.
P.P.S. Please, I don't need advise of how to access this site, that I mentioned. I really need to disable the strict transport security. Disable it completely and forever.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to disable strict transport security?

Post by barbaz »

Cryvage wrote:P.S I don't need any "security" tweaks from noScript addon.
You do realize that security is the whole point of NoScript right?
Everything else it does is side effects of "security tweaks".
Cryvage wrote:All I need is ability to disable some scripts on some sites.
:arrow: https://addons.mozilla.org/addon/yesscript/
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7979
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How to disable strict transport security?

Post by therube »

I found that it can be disabled by turning "false" the "noscript.STS.enabled" option in "about:config".
Where?
I gather that information is dated & no longer applicable.
I have a problem to access to http://download.cdn.mozilla.net/
Mozilla itself stores (HSTS) related data in the file, SiteSecurityServiceState.txt, found in your Profile folder.


Also there was an issue on the Mozilla end pertaining to the URLs they were using, something along these lines, Bug 1257214 - Thunderbird Bouncer links go to download.cdn.mozilla.net, showing cert error page.

Idea being that if you used https://download.cdn.mozilla.net/ you are greeted with an "Untrusted" warning & not able to proceed, where the non-secure, http://download.cdn.mozilla.net/ (or alternative URL) were OK.


If you happen to have download.cdn.mozilla.net listed in your SiteSecurityServiceState.txt file, exit FF, edit SiteSecurityServiceState.txt with a text editor, remove that line, save the file, restart FF & test.
(Won't hurt to backup first.)


Also you might look & see if you happen to have the file, NoScriptSTS.db laying around in your Profile folder. If so, suppose it can't hurt to exit FF, then rename the file (to something like, NoScriptSTS.db.NOT). (Though I'm thinking unless you're using a quite dated version of NoScript, it wouldn't apply anyhow?)
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 NT 5.1; rv:43.0) Gecko/20100101 SeaMonkey/2.40
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to disable strict transport security?

Post by barbaz »

Actually, I didn't pay attention the specific site in question :roll: No HSTS there, that's httpsDefWhitelist in action again.

Probably an exception for download.cdn.mozilla.net should be default?



For those who actually like security:

NoScript Options > Advanced > HTTPS > Behavior
add download.cdn.mozilla.net in its own line under "Never force ..."
*Always* check the changelogs BEFORE updating that important software!
-
Cryvage

Re: How to disable strict transport security?

Post by Cryvage »

barbaz wrote: For those who actually like security:

NoScript Options > Advanced > HTTPS > Behavior
add download.cdn.mozilla.net in its own line under "Never force ..."
Yes, it solve the problem. Setting DefWhitelist to "false", also works. In my case I've choosen the second. I really always do manually type the protocol of the page (an old habit), and always check the protocol of current page before enter some private data (also an old habit).

Answering your first question, yes I reallize, that NoSript does a lot for security reasons. But it still called "NoScript". Not "YesSecurity". HTTP(S) and scripts. Nothing in common like for me. When I encountered the problem, I even didn't think about NoScript addon. I've created a new profile and start to add addons one by one. That's how I realized that NoScript is the cause. And that's why I say, that I don't need any "security" tweaks from NoScript addon. Because It's called "NoScript", and it's completely not clear, that it would force HTTPS, or something like this. If I'll need this, I'll install "HTTPS Everywhere" for example. It's not like I didn't care about security. I just use the other tools and techniques to achieve it. It's all about habits.

Thanks for your help. The problem is solved. And I'm sorry for my negative. I like NoScript. And I thankful for all people, that involved in its development and support.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to disable strict transport security?

Post by barbaz »

You're welcome, glad we could help. Image
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7979
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How to disable strict transport security?

Post by therube »

that's httpsDefWhitelist in action again
So what happens with that?
If true, sites in noscript.default are forced https, or... ?
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 NT 5.1; rv:43.0) Gecko/20100101 SeaMonkey/2.40
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to disable strict transport security?

Post by barbaz »

therube wrote:If true, sites in noscript.default are forced https
This ^
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
therube
Ambassador
Posts: 7979
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How to disable strict transport security?

Post by therube »

OK. And mozilla.net is included in noscript.default.

But just what does "mozilla.net" match to?
Only mozilla.net?
Or does it also match "cdn.mozilla.net" & how about "download.cdn.mozilla.net"?

If all three (& potentially more), then why, with noscript.httpsDefWhitelist;true, does (http://) download.cnd.mozilla.net open on my end without issue?

If only "mozilla.net", why would noscript.httpsDefWhitelist;true be blocking the OP?
(And assuming he does not have [download.]cdn.mozilla.net on his noscript.default list.)
Or is it not, actually?
Maybe he has forced HTTPS for all sites?
And for this instance, has put in a specific bypass for download.cdn.mozilla.net.
Or...?
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 NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40
User avatar
therube
Ambassador
Posts: 7979
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How to disable strict transport security?

Post by therube »

Code: Select all

	<therube>	barbaz: new Profile, install NoScript, visit http://download.cdn.mozilla.net/, "fails" (This Connection is Untrusted)
	<therube>	so by "failing", it is doing as expected
	<therube>	so the question then is, what in my existing Profile is allowing it to succeed, allowing the http: to open?
	<therube>	barbaz: removing mozilla.net from the whitelist (capability.policy.maonoscript.sites) does it.
This is related: httpsDefWhitelist affects more than just default whitelist
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 NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40
Post Reply