Bug 879044 - CVE-2012-5560 mate-settings-daemon: Any unprivileged user can change the system's timezone [fedora-all]
Summary: CVE-2012-5560 mate-settings-daemon: Any unprivileged user can change the syst...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mate-settings-daemon
Version: 17
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dan Mashal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: CVE-2012-5560
TreeView+ depends on / blocked
 
Reported: 2012-11-21 22:16 UTC by Vincent Danen
Modified: 2013-03-03 22:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Release Note
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-27 05:13:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vincent Danen 2012-11-21 22:16:29 UTC
This is an automatically created tracking bug!  It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.

For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.

For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs

When creating a Bodhi update request, please use the bodhi submission link
noted in the next comment(s).  This will include the bug IDs of this
tracking bug as well as the relevant top-level CVE bugs.

Please also mention the CVE IDs being fixed in the RPM changelog and the
Bodhi notes field when available.

Please note: this issue affects multiple supported versions of Fedora.
Only one tracking bug has been filed; please ensure that it is only closed
when all affected versions are fixed.

[bug automatically created by: add-tracking-bugs]

Comment 1 Vincent Danen 2012-11-21 22:16:35 UTC
Please use the following update submission link to create the Bodhi
request for this issue as it contains the top-level parent bug(s) as well
as this tracking bug.  This will ensure that all associated bugs get
updated when new packages are pushed to stable.

Please also ensure that the "Close bugs when update is stable" option
remains checked.

Bodhi update submission link:
https://admin.fedoraproject.org/updates/new/?type_=security&bugs=878102,879044

Comment 2 Dan Mashal 2012-11-24 00:07:27 UTC
This is not a MATE problem. This is a dbus/polkit problem. Please talk to davidz or whoever maintains dbus/polkit now.

/etc/dbus-1/system.conf contains the following:

<!-- Holes must be punched in service configuration files for
         name ownership and sending method calls -->
    <deny own="*"/>
    <deny send_type="method_call"/>

Comment 3 Dan Mashal 2012-11-24 00:21:27 UTC
Sorry please disregard. I see the issue now.

Comment 4 Dan Mashal 2012-11-24 00:33:09 UTC
Fix submitted upstream.

https://github.com/mate-desktop/mate-settings-daemon/pull/22

Comment 5 Miloslav Trmač 2012-11-24 00:49:17 UTC
(In reply to comment #4)
> Fix submitted upstream.
> 
> https://github.com/mate-desktop/mate-settings-daemon/pull/22

Is this https://github.com/dmashal/mate-settings-daemon/commit/258f92953949ebd7ebca3bd34df973099b24f4dd ? 

I haven't tested it, but I don't think that fixes the problem (it seems to me that allowing more access can't fix a problem with too lax access), or at least not its cause.

The piece of configuration is that allows any user to perform the operation is in
/usr/share/polkit-1/actions/org.mate.settingsdaemon.datetimemechanism.policy; as described in bug 878102 comment 0, the policy can be fixed by replacing the only "auth_self_keep" by "auth_admin_keep".

Comment 6 Dan Mashal 2012-11-24 00:52:06 UTC
When running the command in the original bug you are now prompted for a password. 

This was taken from org.freedesktop.timedate1.conf

Comment 7 Dan Mashal 2012-11-24 01:01:02 UTC
> The piece of configuration is that allows any user to perform the operation
> is in
> /usr/share/polkit-1/actions/org.mate.settingsdaemon.datetimemechanism.policy;
> as described in bug 878102 comment 0, the policy can be fixed by replacing
> the only "auth_self_keep" by "auth_admin_keep".

This could be a MATE 1.4 problem but in MATE 1.5 I see the following:

/usr/share/polkit-1/actions/org.mate.settingsdaemon.datetimemechanism.policy

    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>


I am submitting an update for this now. Please test.

Comment 8 Fedora Update System 2012-11-24 01:21:31 UTC
mate-settings-daemon-1.5.3-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mate-settings-daemon-1.5.3-4.fc17

Comment 9 Dan Mashal 2012-11-24 01:29:31 UTC
F18 buildroot is broken right now due to NSS. Waiting for that to be fixed and will submit update for F18.

Comment 10 Fedora Update System 2012-11-24 04:52:12 UTC
mate-settings-daemon-1.5.3-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mate-settings-daemon-1.5.3-4.fc18

Comment 11 Fedora Update System 2012-11-24 17:35:42 UTC
mate-settings-daemon-1.5.3-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mate-settings-daemon-1.5.3-5.fc17

Comment 12 Dan Mashal 2012-11-24 17:37:49 UTC
1.5.3-5 should fix this for f17 and f18

Comment 13 Fedora Update System 2012-11-24 20:14:23 UTC
Package mate-settings-daemon-1.5.3-5.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mate-settings-daemon-1.5.3-5.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18977/mate-settings-daemon-1.5.3-5.fc18
then log in and leave karma (feedback).

Comment 14 Miloslav Trmač 2012-11-26 20:11:08 UTC
Thanks, confirmed on f18.

Comment 15 Fedora Update System 2012-11-27 05:13:09 UTC
mate-settings-daemon-1.5.3-5.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2012-12-04 06:14:23 UTC
mate-settings-daemon-1.5.4-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mate-settings-daemon-1.5.4-1.fc17

Comment 17 Fedora Update System 2012-12-15 18:03:32 UTC
mate-settings-daemon-1.5.4-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2013-02-19 12:52:10 UTC
mate-settings-daemon-1.5.4-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mate-settings-daemon-1.5.4-3.fc17

Comment 19 Fedora Update System 2013-02-19 12:53:37 UTC
mate-settings-daemon-1.5.4-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mate-settings-daemon-1.5.4-3.fc18

Comment 20 Fedora Update System 2013-03-03 22:27:36 UTC
mate-settings-daemon-1.5.4-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2013-03-03 22:29:50 UTC
mate-settings-daemon-1.5.4-3.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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