Local privileged file write via cp option injection
Published Jun 5, 2023 · Updated Aug 2, 2024
OS command injection in KylinSoft kylin-software-properties before 0.0.1-130 allows local users to write files via setMainSource. The function splits attacker-controlled text into arguments for a privileged cp command, so a leading -t option redirects a supplied file into an arbitrary directory. Access to the local system D-Bus is required; the published proof of concept writes into /etc, enabling privilege escalation through protected-file replacement.
Summary
What happened
OS command injection in KylinSoft kylin-software-properties before 0.0.1-130 allows local users to write files via setMainSource. The function splits attacker-controlled text into arguments for a privileged cp command, so a leading -t option redirects a supplied file into an arbitrary directory. Access to the local system D-Bus is required; the published proof of concept writes into /etc, enabling privilege escalation through protected-file replacement.
The record
- CVE
- CVE-2023-3097
- Published
- Jun 5, 2023
- Updated
- Aug 2, 2024
- Vendor
- Kylinsoft Co., Ltd.
- Product
- kylin-software-properties
- Classifications
- CWE-78, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 5, 2023CVE publishedPublication date reported by the CVE source.
- Aug 2, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=n/a
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- setMainSource D-Bus proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo