Bug 1380386 (CVE-2016-7787)

Summary: CVE-2016-7787 kde-cli-tools: Improper handling of unicode string terminator in kdesu invocation
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jgrulich, kde-sig, me, rdieter, than
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kf5-kdesu 5.7.95, kf5-kdesu 5.7.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:59:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1380387, 1380388    
Bug Blocks:    

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.