REDHAT-BUG-456347: Low severity Postfix Postfix vulnerability
Sebastian Krahmer discovered an issue in the way postfix handles mailboxes with improper permissions and ownership.
It is possible for a user with permissions to create files in the mail spool directory to create an insecure mailbox file for a known valid user. This mailbox will retain the insecure permissions and ownership allowing anyone to view the data.
The easiest example of this would be a local user with the ability to write to the mail spool creates a file named 'root' which postfix will then delivery root's mail into regardless of file permissions or ownership.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A local user who has permission to create files in the mail spool directory can exploit it. The attacker can create a mailbox file for a known valid user, such as root, before mail is delivered to that mailbox.
What is the impact of a successful exploit?
Postfix may deliver mail into the attacker-created mailbox while retaining its insecure ownership and permissions. This can allow other users to view the affected user's mail data.
How can administrators identify potentially affected mailboxes?
Inspect mailbox files in the mail spool directory for files whose ownership or permissions are insecure or do not match the intended mailbox user. Pay particular attention to mailbox filenames corresponding to valid accounts, including root.
What can be done if patching is not immediately possible?
Restrict write access to the mail spool directory so untrusted local users cannot create mailbox files there. Review and correct existing mailbox file ownership and permissions, especially for privileged or known user accounts.