[ GLSA 201804-18 ] tenshi: Privilege escalation


–xB0nW4MQa6jZONgY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Gentoo Linux Security Advisory GLSA 201804-18
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
https://security.gentoo.org/
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Severity: Normal
Title: tenshi: Privilege escalation
Date: April 22, 2018
Bugs: #626654
ID: 201804-18

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D

Gentoo’s tenshi ebuild is vulnerable to privilege escalation due to the
way pid files are handled.

Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

A log monitoring program, designed to watch one or more log files for
lines matching user defined regular expressions and report on the
matches.

Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

——————————————————————-
Package / Vulnerable / Unaffected
——————————————————————-
1 app-admin/tenshi =3D 0.17=20

Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

It was discovered that the tenshi ebuild creates a tenshi.pid file
after dropping privileges to a non-root account.

Impact
=3D=3D=3D=3D=3D=3D

A local attacker could escalate privileges to root or kill arbitrary
processes.

Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

There is no known workaround at this time.

Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

All tenshi users should upgrade to the latest version:

# emerge –sync
# emerge –ask –oneshot –verbose “>=3Dapp-admin/tenshi-0.17″

References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

[ 1 ] CVE-2017-11746
https://nvd.nist.gov/vuln/detail/CVE-2017-11746

Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

https://security.gentoo.org/glsa/201804-18

Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users’ machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=3D=3D=3D=3D=3D=3D=3D

Copyright 2018 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons – Attribution / Share Alike license.

https://creativecommons.org/licenses/by-sa/2.5

–xB0nW4MQa6jZONgY
Content-Type: application/pgp-signature; name=”signature.asc”
Content-Description: Digital signature

—–BEGIN PGP SIGNATURE—–

iQEzBAEBCAAdFiEEiDRK3jyVBE/RkymqpRQw84X1dt0FAlrdDscACgkQpRQw84X1
dt2Mdgf7BxfxZiUk1f8al09MwrHO8fKPz8J2jMuhGf6gUVhO66vVHJZZD5nnBTFo
hOC686iqML8xMLyn9p52tJam70IeHr3W5QkHYyBBsmQ289CIRqR+3B7nsux+yHGr
KJibqaLKgEzufouTPCtUcml48dSUevPBZiBNuAAFf5hvT4x0Ul7+jzmlNqvd+KEd
G9G31S7Cs7X0btK+gxpCt/ZgJNW1uL86LwuVYo+LIqqg2V/ZBNBx7EDM3Raedwbg
MiFAfEPUriJUB/tzEWvwd2KeykZCU6Wq0bgHtnLhdtEEteqmqqUHopyK/SSliLyB
h7uc2Kkwbf6+kysC74arp1XqsF2lMA==
=IAsk
—–END PGP SIGNATURE—–

–xB0nW4MQa6jZONgY–