Symlink attack with signing_dir = /tmp/keystone-signing-nova

Bug #1233305 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Critical
Michael Basnight

Bug Description

Hi,

Having such thing in the default configuration file:

signing_dir = /tmp/keystone-signing-nova

was the origin of a CVE in Nova. I would strongly suggest to not use known filenames in /tmp, which are vectors of symlink attacks (and no, the kernel in Wheezy and Precise doesn't have the feature to stop it, that's only in 3.8, IIRC).

The best way to fix it is to use something in the home folder of the package, for example in /var/lib/trove.

Changed in trove:
status: New → Confirmed
importance: Undecided → Critical
Thierry Carrez (ttx)
tags: added: havana-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/49276

Changed in trove:
assignee: nobody → Michael Basnight (hubcap)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/49276
Committed: http://github.com/openstack/trove/commit/0805d0a00848fbbb6c719ab484792796c930a33b
Submitter: Jenkins
Branch: master

commit 0805d0a00848fbbb6c719ab484792796c930a33b
Author: Michael Basnight <email address hidden>
Date: Tue Oct 1 15:10:22 2013 -0700

    fixing symlink attack bug present in the application.

    fixes bug 1233305

    Change-Id: I14a94b3b5cb27e8d6c5848c212b3b88053aa8aca

Changed in trove:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote :

RC2 window opened, feel free to backport to milestone-proposed

Changed in trove:
milestone: none → havana-rc2
Revision history for this message
Michael Basnight (hubcap) wrote : Re: [Bug 1233305] Re: Symlink attack with signing_dir = /tmp/keystone-signing-nova

Thx dude.

Sent from my digital shackles

> On Oct 2, 2013, at 5:03 AM, Thierry Carrez <email address hidden> wrote:
>
> RC2 window opened, feel free to backport to milestone-proposed
>
> ** Changed in: trove
> Milestone: None => havana-rc2
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1233305
>
> Title:
> Symlink attack with signing_dir = /tmp/keystone-signing-nova
>
> Status in Trove - Database as a Service:
> Fix Committed
>
> Bug description:
> Hi,
>
> Having such thing in the default configuration file:
>
> signing_dir = /tmp/keystone-signing-nova
>
> was the origin of a CVE in Nova. I would strongly suggest to not use
> known filenames in /tmp, which are vectors of symlink attacks (and no,
> the kernel in Wheezy and Precise doesn't have the feature to stop it,
> that's only in 3.8, IIRC).
>
> The best way to fix it is to use something in the home folder of the
> package, for example in /var/lib/trove.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/trove/+bug/1233305/+subscriptions

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/49390

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (milestone-proposed)

Reviewed: https://review.openstack.org/49390
Committed: http://github.com/openstack/trove/commit/55cefeac636a235f808d940518ad50aad3e701e0
Submitter: Jenkins
Branch: milestone-proposed

commit 55cefeac636a235f808d940518ad50aad3e701e0
Author: Michael Basnight <email address hidden>
Date: Tue Oct 1 15:10:22 2013 -0700

    fixing symlink attack bug present in the application.

    fixes bug 1233305

    Change-Id: I14a94b3b5cb27e8d6c5848c212b3b88053aa8aca
    (cherry picked from commit 0805d0a00848fbbb6c719ab484792796c930a33b)

Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: havana-rc2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.