Closed Bug 1908866 Opened 4 months ago Closed 2 months ago

Thunderbird 128 is asking for EWS permissions when using Office365 accounts (but we are not granting EWS permissions anymore for security reasons)

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 128
defect

Tracking

(thunderbird_esr115 unaffected, thunderbird_esr128 fixed, thunderbird129 affected, thunderbird131 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
thunderbird_esr115 --- unaffected
thunderbird_esr128 --- fixed
thunderbird129 --- affected
thunderbird131 --- fixed

People

(Reporter: franck.iaropoli, Assigned: mkmelin)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image image (6).png

Steps to reproduce:

Install Thunderbird 128 release (Mac and Linux)

Actual results:

Thunderbird 128 is asking to access mailboxes as the singed-in user via Exchange Web Services.
We are not granted EWS permissions anymore for security reasons.

Expected results:

EWS permissions are not asked when doing authentication to your email account with Office365

Probably need to make EWS optional for the scope. Or somehow configurable.
https://searchfox.org/comm-central/rev/ddfc692f706f43a89365ebfebfeddced79fb1c89/mailnews/base/src/OAuth2Providers.sys.mjs#21

Would have to check if it can simply be dropped for 128 until we figure that out.

Status: UNCONFIRMED → NEW
Component: Untriaged → Account Manager
Ever confirmed: true
Keywords: regression
Regressed by: 1679711
Summary: Thunderbird 128 is asking for EWS permissions when using Office365 accounts → Thunderbird 128 is asking for EWS permissions when using Office365 accounts (bug we are not granted EWS permissions anymore for security reasons)
Depends on: tb128found
Blocks: tb128found
No longer depends on: tb128found
Summary: Thunderbird 128 is asking for EWS permissions when using Office365 accounts (bug we are not granted EWS permissions anymore for security reasons) → Thunderbird 128 is asking for EWS permissions when using Office365 accounts (but we are not granted EWS permissions anymore for security reasons)
Summary: Thunderbird 128 is asking for EWS permissions when using Office365 accounts (but we are not granted EWS permissions anymore for security reasons) → Thunderbird 128 is asking for EWS permissions when using Office365 accounts (but we are not granting EWS permissions anymore for security reasons)

It could be simply that your adminstrator is particularly draconic and wants to approve every single app individually (which is extremely unhealthy for the software ecosystem, because it favors monopolists). And because Thunderbird changed scopes, it needs to be re-approved. Your screenshot suggests that.

We are not granted EWS permissions anymore for security reasons

When you say "we", I assume you mean your company's employees. Did your administrator specifically disable this feature, for your domain?
Does he allow IMAP and SMTP? If so, what is his rationale? EWS allows OAuth2 just as IMAP does, and EWS is based on https (SSL), so don't see a good reason why EWS would be disabled. Could you please share what your admin said about it, and his rationale?

I know that many admins and domains disable login via EWS, IMAP, or other specific protocols. But I have never heard that the OAuth2 scope for EWS is specifically forbidden.

Hello,
Granting the EWS.AccessAsUser.All permission allows the client to do more than send/receive email (i.e. it's not a very granular permission). Thus I believe this (reasonably) makes IT security folks nervous - especially if it's not being used.

Would it be possible to only request this scope if needed? I.e. if the user explicitly asks for EWS?

In future, isn't EWS being retired from Microsoft 365 anyway? So EWS would become more of an on-prem Exchange option?

In the short term, is there any way an end-user/admin can override the scope? The only thing I could see was to repack omni.ja but that wouldn't work with security updates.

Cheers,
Steve

Seems this bug should bloc bug 1847846

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Target Milestone: --- → 132 Branch

Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/d6c5a6c3a0de
Don't request EWS permissions for non EWS accounts as EWS permissions may not be granted for security reasons. r=babolivier

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED

Comment on attachment 9422319 [details]
Bug 1908866 - Don't request EWS permissions for non EWS accounts as EWS permissions may not be granted for security reasons. r=babolivier

[Approval Request Comment]e
User impact if declined: may not be able to log in (to o365 account)
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): always some unknown unknowns with oauth, but overall not very risky since we would not ask the same permissions that we use to in 115

Attachment #9422319 - Flags: approval-comm-esr128?
Attachment #9422319 - Flags: approval-comm-beta?

Comment on attachment 9422319 [details]
Bug 1908866 - Don't request EWS permissions for non EWS accounts as EWS permissions may not be granted for security reasons. r=babolivier

[Triage Comment]
Approved for beta

Attachment #9422319 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9422319 [details]
Bug 1908866 - Don't request EWS permissions for non EWS accounts as EWS permissions may not be granted for security reasons. r=babolivier

[Triage Comment]
Approved for esr128

Attachment #9422319 - Flags: approval-comm-esr128? → approval-comm-esr128+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: