Bug 1380386 (CVE-2016-7787) - CVE-2016-7787 kde-cli-tools: Improper handling of unicode string terminator in kdesu invocation
Summary: CVE-2016-7787 kde-cli-tools: Improper handling of unicode string terminator i...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2016-7787
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: 1380387 1380388
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-29 12:45 UTC by Adam Mariš
Modified: 2019-09-29 13:57 UTC (History)
5 users (show)

Fixed In Version: kf5-kdesu 5.7.95, kf5-kdesu 5.7.5
Clone Of:
Environment:
Last Closed: 2019-06-08 02:59:14 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2016-09-29 12:45:13 UTC
Improper handling of unicode string terminator in kdesu invocation could lead to unintended code execution.

PoC:

echo Hi@; whoami > /tmp/filebyroot

If @ is the unicode string terminator, it would only tell the user that kdesu executed "echo Hi" but it also creates the /tmp/filebyroot file as root

Upstream patch:

https://github.com/KDE/kde-cli-tools/commit/5eda179a099ba68a20dc21dc0da63e85a565a171

CVE assignment:

http://seclists.org/oss-sec/2016/q3/653

Comment 1 Adam Mariš 2016-09-29 12:45:44 UTC
Created kf5-kdesu tracking bugs for this issue:

Affects: fedora-all [bug 1380387]
Affects: epel-7 [bug 1380388]

Comment 2 Product Security DevOps Team 2019-06-08 02:59:14 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


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