TLS Processing not working
Categories
(Core :: Security: PSM, defect)
Tracking
()
People
(Reporter: codacodercodacoder, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
Ran a test against FF 74 in Katalon Studio.
I believe the site is set to use 1.2 but even so, the desired caps state webdriver_accept_untrusted_certs = true (verified in about:config).
Actual results:
SSL_ERROR_UNSUPPORTED_VERSION error page
Expected results:
The site should load correctly.
I believe the site is set to use 1.2 but even so, the desired caps state webdriver_accept_untrusted_certs = true (for obvious test purposes) - verified in about:config.
Chrome 80 functions correctly.
Comment 2•6 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 3•6 years ago
|
||
What is the value of the following prefs in the Firefox profile you're using?
security.tls.version.min
security.tls.version.max
security.tls.version.fallback-limit
security.tls.version.enable-deprecated
Also, when you visit the site in Chrome, what version of TLS does Chrome say it is using?
security.tls.version.min 3
security.tls.version.max 4
security.tls.version.fallback-limit 4
security.tls.version.enable-deprecated false
I've tried modifying these but it seems I don't understand how to use desired caps. :(
Chrome? I've no idea. I'm a Firefox guy :) How do I ask chrome that question?
More info.
This is part of the log preamble:
1584137751619 Marionette INFO Listening on port 57306
1584137751720 Marionette WARN TLS certificate errors will be ignored for this session
and yet:
2020-03-13 17:15:52.458 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Unable to navigate to 'https: blah blah blah'
Caused by: org.openqa.selenium.WebDriverException: Reached error page: ...
Here is the Descaps dump:
Driver info: com.kms.katalon.core.webui.driver.firefox.CGeckoDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 74.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20200309095159, moz:geckodriverVersion: 0.23.0, moz:headless: false, moz:processID: 26440, moz:profile: C:\Users\blah\AppData\Local..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, platformVersion: 10.0, proxy: Proxy(direct), rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Comment 6•6 years ago
|
||
Visit the site, open the devtools, and go to the security tab. It may say something about obsolete connection settings.
Well, that's confusing. Chrome says...
Certificate - valid and trusted.
Site uses TLS 1.0
So, back to the original problem, getting this to work in Firefox, why isn't acceptInsecureCerts working? I don't have the ability to change the site's security protocols. I'm employed to test the site, not manage it.
Comment 8•6 years ago
|
||
acceptInsecureCerts refers to untrusted certificates, not TLS configurations. TLS 1.0 and 1.1 are being deprecated and won't be accepted by any major browser soon (see e.g. https://hacks.mozilla.org/2020/02/its-the-boot-for-tls-1-0-and-tls-1-1/). Do you have a way to provide feedback to the site operators? They need to enable TLS 1.2 and disable all older versions.
I understand. But once again, Mozilla seems to forget there is a significant amount of corporate inertia at play which means, in effect, you pull the rug out from under the feet of the guy on the ground (me, in this case). I recall lengthy debates on firefox-dev (or perhaps one of the other lists) about why it is users get left behind when the browser is updated. It's reasons just like this, for some people. Had I not allowed the updates to download, you would not be able to force this on me and I would not be left crippled with a bunch of homework to do and able to do my daily job.
There should be a pref to let my carry on working while I give my client time to do what they need to do.
I guess I'm back to crawling through this stuff and hope I can convince Katalon to use it. https://ftp.mozilla.org/pub/firefox/releases/
Comment 10•6 years ago
|
||
If you set the preference security.tls.version.enable-deprecated to true, does it work?
| Reporter | ||
Comment 11•6 years ago
|
||
Probably. But I don't know for sure - like I said, I don't know how to preempt desired caps in Firefox (yet). I guess that's a geckodriver issue, anyway. If you have a good source, I'm all ears (or eyes in this case). Note: I need it set in Katalon (hence preemptively), not do it from selenium coding (Java/Groovy, whatever).
Perhaps you don't understand the tool chain. Katalon -> geckodriver -> Firefox new instance + new profile <- Every time you run a test. So you need to preempt the profile with "desired capabilities" (i.e. alter the prefs) BEFORE firefox launches. If I can figure that out, and keep the technical debt inside katalon, my browser dev env can stay uptodate and my test sessions can downgrade per test test run (for a while at least). See?
In the meantime, for my dev box (where I'm seeing the issue) I've reverted to 73 (which was a painful experience - lost all my bookmarks. Firefox refuses to use my old profile insisting that might be a problem after downgrading and offers only "create new profile" or exit. Gee thanks FF).
Really. Take this upstairs and slap the guys that think this is the best Mozilla can do. Reminder: Chrome says "valid". I just don't get it - FF has a tiny market share and chooses to be first to slap people down. Aint no medals handed out for that.
| Reporter | ||
Comment 12•6 years ago
|
||
(In reply to Codacoder from comment #11)
Probably. But I don't know for sure - like I said, I don't know how to preempt desired caps in Firefox (yet).
But now I do. I'm going to update FF and try the new setting. I hope I don't lose my bookmarks yet again if I need to downgrade again.*
- I should find out if there's a way to tell Katalon (or perhaps geckodriver) to target a specific FF profile. Then I could get the test system to avoid my desktop firefox/profile.
| Reporter | ||
Comment 13•6 years ago
|
||
Upon further investigation...
security.tls.version.enable-deprecated cannot be changed.
Log output:
Mar 17, 2020 8:55:49 AM org.openqa.selenium.remote.DesiredCapabilities firefox
INFO: Using `new FirefoxOptions()` is preferred to `DesiredCapabilities.firefox()`
2020-03-17 08:55:49.393 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set Firefox profile preference: ['security.tls.version.enable-deprecated', 'true']
2020-03-17 08:55:49.393 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set Firefox profile preference: ['security.tls.version.min', '1']
---
1584453352328 Marionette INFO Listening on port 53651
1584453352680 Marionette WARN TLS certificate errors will be ignored for this session
Yet, in about:config security.tls.version.enable-deprecated = false
Please fix. TLS processing is broken.
Comment 14•6 years ago
|
||
Sounds like a bug in geckodriver. Please file an issue by following the directions here: https://firefox-source-docs.mozilla.org/testing/geckodriver/Bugs.html
Updated•6 years ago
|
| Comment hidden (advocacy) |
Comment 16•6 years ago
|
||
Both reasons apply because this is an industry-wide TLS 1.0 deprecation process.
Comment 17•6 years ago
|
||
Did you file a bug in geckodriver like I requested in comment 14?
| Comment hidden (advocacy) |
| Reporter | ||
Comment 19•6 years ago
|
||
(In reply to Dana Keeler (she/her) (use needinfo) (:keeler for reviews) from comment #17)
Did you file a bug in geckodriver like I requested in comment 14?
No. I took a look at the info expected from me and backed off. geckodriver folks need to lighten up the load - I simply don't have the time.
There is a bug in geckdriver/firefox. The detail and evidence is posted here. My work is done.
Comment 20•6 years ago
•
|
||
(In reply to Codacoder)
In the meantime, for my dev box (where I'm seeing the issue) I've reverted to 73 (which was a painful experience - lost all my bookmarks. Firefox refuses to use my old profile insisting that might be a problem after downgrading and offers only "create new profile" or exit. Gee thanks FF).
Your old profile isn't gone. You can find it on about:profiles and can open it with the same Firefox version it was used with last time - or with a newer one.
There is a bug in geckdriver/firefox.
Docs on prefs (e.g. user-defined in user.js): https://firefox-source-docs.mozilla.org/testing/geckodriver/Profiles.html#automation-preferences
Geckodriver source: https://searchfox.org/mozilla-central/source/testing/geckodriver/
Bug reporting: https://firefox-source-docs.mozilla.org/testing/geckodriver/Bugs.html
My gripe is that Mozilla decided to go it alone
Nothing was done alone. Deprecation was announed together long ago:
https://blog.mozilla.org/security/2018/10/15/removing-old-versions-of-tls/
https://security.googleblog.com/2018/10/modernizing-transport-security.html
https://blogs.windows.com/msedgedev/2018/10/15/modernizing-tls-edge-ie11/
https://webkit.org/blog/8462/deprecation-of-legacy-tls-1-0-and-1-1-versions/
Even if deprecation is slightly postponed, TLS 1.0 was kept disabled by default in Chrome Dev/Beta and Firefox Nightly.
Firefox shows a blue reenable button while Chrome hides its one behind a further click.
Libraries like OpenSSL are going to disable TLS 1.0 by default, too. Linux distributions like Debian already have disabled TLS 1.0 by default.
Please be aware that it was announced 2 years ago to give everyone time to fix their configurations.
I'm employed to test the site, not manage it.
Then you have to report that the site is broken.
and cause grief to those "stuck" on old TLS versions and unable to alter the web server.
(I don't know what you are testing for what purpose, so I can only give a general tutorial.)
If you have anything like a publicly accessible embedded web server that can't be replaced yet, put at least an nginx as reverse proxy in front of it. Only nginx should be accessible over the internet. If it's something critical, better add some simple authentication or at least a dirty allowlist. It's super simple to set up. These are basics that need to be fixed. (Just forward this message to the responsible person. Thanks)
Web security resources:
https://observatory.mozilla.org
https://www.ssllabs.com/ssltest/
https://www.hardenize.com
https://wiki.mozilla.org/Security/Server_Side_TLS
https://infosec.mozilla.org/guidelines/web_security.html
Description
•