Closed Bug 2035411 Opened 5 months ago Closed 2 months ago

Add a warning to about:neterror when SSLKEYLOGFILE is in use

Categories

(Core :: Networking, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [necko-triaged][necko-priority-queue])

Attachments

(2 files)

It seems a bunch of AV are using SSLKEYLOGFILE to decrypt TLS traffic - and sometimes break it in unusual ways.
On Windows about 10% of users have the env var set.

@mt:

if we can detect SSLKEYLOGFILE being set, we should add something to every network error page we show.Β  "It looks like someone is snooping on your communications.Β  If you are having trouble getting online, consider disabling features.Β  <See su.mo for details, where we list software that engages in these practices and describe how to disable each.>"

More suggestions:

  • Show the warning in devtools
  • Show the warning in the shield status - because if SSLKEYLOGFILE is in use, it is possible someone is decrypting your connection.

+1 to also having some alternatives, as "to every network error page we show" could be either too late, or the consumer never reached the error page in case they're stuck in some empty result / zombie connection.

Whiteboard: [necko-triaged][necko-priority-next] → [necko-triaged][necko-priority-queue]
Assignee: nobody → valentin.gosu
Status: NEW → ASSIGNED
Depends on: 2042823

Background for this bug:

SSLKEYLOGFILE is an environment variable used to make Firefox dump the encryption keys used for HTTPS connections into a file.
This is useful for debugging, or inspecting connection data with Wireshark.
However in bug 2035411, and bug 1188660 we also noticed that some anti-virus software injects this variable into Firefox to be able to decrypt HTTPS connections. In doing so, they sometimes break the connections.
Bug 2035411 is going to display a warning in network/TLS error pages when SSLKEYLOGFILE is present, telling users that software on their machine might be monitoring their connection and linking to the sumo article.
The KB article should instruct users who are seeing networking issues to check their antivirus/firewall software before filing a Firefox bug. And when filing the bug they should specify which anti-virus solution they are using.

Blocks: 2049961
No longer blocks: 2049961
Depends on: 2049961
Pushed by valentin.gosu@gmail.com: https://github.com/mozilla-firefox/firefox/commit/8e47249cdf92 https://hg.mozilla.org/integration/autoland/rev/3a5e6db410aa Add a warning to about:neterror when SSLKEYLOGFILE is in use r=necko-reviewers,fluent-reviewers,desktop-theme-reviewers,frontend-codestyle-reviewers,bolsson,jesup,emz,Itiel https://github.com/mozilla-firefox/firefox/commit/dd4c72c8e1b0 https://hg.mozilla.org/integration/autoland/rev/3408202d5db2 Add test for about:neterror with SSLKEYLOGFILE present r=emz
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9a4b4546ae19 https://hg.mozilla.org/integration/autoland/rev/9e53c563125a Revert "Bug 2035411 - Add test for about:neterror with SSLKEYLOGFILE present r=emz" for causing xpcshells and mochitests failures at dom/security

Backout for causing xpcshells and mochitests failures at dom/security

push with failure
xpcshells
mochitests

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(valentin.gosu)
Pushed by valentin.gosu@gmail.com: https://github.com/mozilla-firefox/firefox/commit/061f081d2f51 https://hg.mozilla.org/integration/autoland/rev/c96a8eabf2ce Add a warning to about:neterror when SSLKEYLOGFILE is in use r=necko-reviewers,fluent-reviewers,desktop-theme-reviewers,frontend-codestyle-reviewers,bolsson,jesup,emz,Itiel https://github.com/mozilla-firefox/firefox/commit/63e65ddf9c65 https://hg.mozilla.org/integration/autoland/rev/47b90175fca9 Add test for about:neterror with SSLKEYLOGFILE present r=emz
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/417ef791ded2 https://hg.mozilla.org/integration/autoland/rev/cec52348e329 Revert "Bug 2035411 - Add test for about:neterror with SSLKEYLOGFILE present r=emz" for causing build bustages.

Reverted this because it was causing build bustages.

Please also check this.

Flags: needinfo?(valentin.gosu)

There are some r+ patches which didn't land and no activity in this bug for 1 week.
:valentin, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(itiel_yn8)
Flags: needinfo?(itiel_yn8)
Flags: needinfo?(valentin.gosu)
Pushed by valentin.gosu@gmail.com: https://github.com/mozilla-firefox/firefox/commit/2dcdae873fef https://hg.mozilla.org/integration/autoland/rev/7a378c1ff778 Add a warning to about:neterror when SSLKEYLOGFILE is in use r=necko-reviewers,fluent-reviewers,desktop-theme-reviewers,frontend-codestyle-reviewers,bolsson,jesup,emz,Itiel https://github.com/mozilla-firefox/firefox/commit/6bb9d9a0bf1b https://hg.mozilla.org/integration/autoland/rev/3000d68ae25d Add test for about:neterror with SSLKEYLOGFILE present r=emz
Regressions: 2056049
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Regressions: 2056436
QA Whiteboard: [qa-triage-done-c155/b154]
Regressions: 2057299
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: