Bug 2129904 (CVE-2022-3287) - CVE-2022-3287 fwupd: world readable password in /etc/fwupd/redfish.conf
Summary: CVE-2022-3287 fwupd: world readable password in /etc/fwupd/redfish.conf
Keywords:
Status: NEW
Alias: CVE-2022-3287
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2129280 2128810
Blocks: 2129378
TreeView+ depends on / blocked
 
Reported: 2022-09-26 15:15 UTC by Mauro Matteo Cascella
Modified: 2022-09-28 13:15 UTC (History)
2 users (show)

Fixed In Version: fwupd 1.8.5
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in fwupd. When creating an OPERATOR user account on the BMC, the redfish plugin saved the auto-generated password to /etc/fwupd/redfish.conf without proper restriction, allowing any user on the system to read the same configuration file.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2022-09-26 15:15:17 UTC
When the redfish plugin automatically creates an OPERATOR user account on the BMC we save the autogenerated password to /etc/fwupd/redfish.conf, ensuring it is chmod'ed to 0660 before writing the file with g_key_file_save_to_file(). The GLib in RHEL 9 versions instead calls g_file_set_contents_full() with the mode hardcoded to 0666, which undoes the previous chmod().

Comment 2 Mauro Matteo Cascella 2022-09-28 12:42:38 UTC
Upstream fix:
https://github.com/fwupd/fwupd/commit/ea676855f2119e36d433fbd2ed604039f53b2091


Note You need to log in before you can comment on or make changes to this bug.