Open Bug 2097577 Opened 2 days ago Updated 1 day ago

login.salesforce.com - Login page is blank

Categories

(Web Compatibility :: Site Reports, defect, P1)

Firefox 148
Desktop
Unspecified

Tracking

(Webcompat Priority:P1, Webcompat Score:8, firefox161 affected, firefox162 affected, firefox163 affected)

Webcompat Priority P1
Webcompat Score 8
Tracking Status
firefox161 --- affected
firefox162 --- affected
firefox163 --- affected

People

(Reporter: rbucata, Unassigned)

References

()

Details

(Keywords: webcompat:contact-ready, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success])

User Story

autowebcompat-repro-status:success
autowebcompat-repro-chrome-mask-fixed:false
autowebcompat-repro-channels:nightly,stable,esr
autowebcompat-repro-report-os:all
autowebcompat-diagnosis-status:success
platform:windows,mac,linux,android
impact:site-broken
configuration:general
affects:all
branch:release
diagnosis-team:security
user-impact-score:1000

Attachments

(3 files)

Environment:
Operating system: Mac and Windows
Firefox version: Firefox 157.0 (release)

Preconditions:

  • Clean profile

Steps to Reproduce:

  1. Navigate to https://login.salesforce.com/?locale=de
  2. Observe the page

Expected Result:
The login form should be displayed.

Actual Result:
The page is blank.

Notes:

  • Reproducible on the latest Firefox Release and Nightly
  • Reproducible regardless of the ETP setting
  • Works as expected using Chrome

Created from webcompat-user-report:69546f9b-94b1-4b7e-bd6a-74530e4e06bf

Whiteboard: [webcompat-source:product] → [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress]
User Story: (updated)
Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress] → [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnose]

In Firefox, https://login.salesforce.com/?locale=de shows a blank page: the title loads, but the body renders no content and no login form appears. The console shows LWR bundle scripts being blocked by CSP and MIME-type errors (a retry went to an http://...:443 URL). In Chrome, the German login form renders normally (email field, "Weiter", "Mit Benutzernamen anmelden").

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnose] → [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress]

Root cause analysis generated by autowebcompat bot:

login.salesforce.com sends two separate CSP headers. The first is just Content-Security-Policy: upgrade-insecure-requests. The second is a full policy with script-src ... https://usa300.sfdc-lywfpd.salesforce.com and no http: source for that host. The page loads its main LWR bundle (/lwr/.../bundle/amd/...) from that https host. The server answers with a 302 to http://usa300.sfdc-lywfpd.salesforce.com:443/...?lwrsigretry=1, an insecure URL. The page relies on upgrade-insecure-requests to turn that into https before the script-src check runs.

Chrome upgrades the URL first, then checks CSP, so the bundle loads and the login form renders. Firefox appears to apply the upgrade only against the policy that declares it. The separate script-src policy checks the un-upgraded http:// URL, finds no match, and blocks the bundle. No app code runs and the body stays empty.

The upgrade flag belongs to the document (policy container), not to one policy: UIR §4.1. Fetch upgrades the request in main fetch before CSP's "should request be blocked" check: Fetch main fetch. When both directives sit in one policy, Firefox behaves correctly.

Evidence:

Firefox console on the site: Content-Security-Policy: The page's settings blocked a script (script-src-elem) at http://usa300.sfdc-lywfpd.salesforce.com:443/lwr/v68.0/bundle/amd/...?lwrsigretry=1 ... violates ... script-src ... https://usa300.sfdc-lywfpd.salesforce.com. That request never completes. Chrome gets the identical 302 (Location http://usa282...:443/...?lwrsigretry=1) and then loads https://usa282.../...?lwrsigretry=1 with a 200. The page and the rest of the app follow.

On the live page, injecting <script src="http://usa300.../lwr-loader-shim.js"> (with or without :443) is CSP-blocked in Firefox. In Chrome both load. Raw headers (curl) show upgrade-insecure-requests sent as its own CSP header.

Reduced testcase (served over plain HTTP from a LAN IP) has two CSP <meta> policies: upgrade-insecure-requests and script-src https://HOST:8000 'unsafe-inline'. It loads <script src=http://HOST:8000/x.js>. Firefox fires securitypolicyviolation for the http:// URL (FAIL). Chrome reports no violation (PASS; only a network error, since there is no TLS on that port). The same split arrives as two headers or as one comma-separated header: both fail in Firefox. When both directives are in one policy (upgrade-insecure-requests; script-src ...), Firefox passes.


If you'd like to provide feedback on diagnosis, please use the 👍 or 👎 reaction.

User Story: (updated)
Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress] → [webcompat-source:product][autowebcompat:processed][autowebcompat:repro-success]
Depends on: 2094645
Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P1
Webcompat Score: --- → 9
Priority: -- → P1
Webcompat Score: 9 → 8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: