FS#75271 - [dovecot] 2.3.19.1-1 CVE-2022-30550: Privilege escalation possible when similar master & non-master

Attached to Project: Community Packages
Opened by Pascal Ernster (hardfalcon) - Friday, 08 July 2022, 09:33 GMT
Last edited by Toolybird (Toolybird) - Saturday, 20 May 2023, 01:35 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Johannes Löthberg (demize)
Thore Bödecker (foxxx0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Quote from https://www.openwall.com/lists/oss-security/2022/07/06/9:
[…]
CVSS: 6.8 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N)

Vulnerability Details:
When two passdb configuration entries exist in Dovecot configuration, which have the same driver and args settings, the incorrect username_filter and mechanism settings can be applied to passdb definitions. These incorrectly applied settings can lead to an unintended security configuration and can permit privilege escalation with certain configurations involving master user authentication.

Dovecot documentation does not advise against the use of passdb definitions which have the same driver and args settings. One such configuration would be where an administrator wishes to use the same pam configuration or passwd file for both normal and master users but use the username_filter setting to restrict which of the users is able to be a master user.

Risk:
If same passwd file or PAM is used for both normal and master users, it is possible for attacker to become master user.

Workaround:
Always authenticate master users from different source than regular users, e.g. using a separate passwd file. Alternatively, you can use global ACLs to ensure that only legimate master users have priviledged access.

Fix:
This has been fixed in main branch. See https://github.com/dovecot/core/compare/7bad6a24%5E..a1022072.patch
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 20 May 2023, 01:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  dovecot 2.3.20-1

Loading...