Improper authorization in Apple Xcode - CVE-2004-2687
Published: April 25, 2018 / Updated: July 30, 2022
Vulnerability identifier: #VU12159
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2004-2687
CWE-ID: CWE-285
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary commands on the target system.
The weakness exists in distcc due to improper authorization checks when not configured to restrict access to the server port. A remote attacker can execute arbitrary commands via compilation jobs.
The weakness exists in distcc due to improper authorization checks when not configured to restrict access to the server port. A remote attacker can execute arbitrary commands via compilation jobs.
Affected software
Apple Xcode
Fedora
distcc
Fedora
distcc
How to mitigate CVE-2004-2687
Install update from vendor's website.
distcc - addressed in versions 3.2 rc1-3.el6, 3.2 rc1-22.el7, 3.2 rc1-22.fc28, 3.2 rc1-22.fc29
Links to Public Exploits and PoC-codes
- Exploit #8192 - distcc_cve_2004-2687_exploit (DistCC exploit) (July 30, 2022)
- Exploit #6932 - distcc_exploit.py (Exploit to CVE-2004-2687 vulnerability) (October 24, 2021)
- Exploit #1407 - DistCC Daemon - Command Execution (Metasploit) (2) (March 18, 2020)
- Exploit #1408 - DistCC Daemon - Command Execution (Metasploit) (1) (March 18, 2020)
- Exploit #1737 - DistCC Daemon Command Execution (March 18, 2020)