CVE-2017-18225:Privilege escalation vulnerability in Gentoo net-im/jabberd2 package due to improper file permissions.

splash
Back

Description Preview

The Gentoo net-im/jabberd2 package through version 2.6.1 contains a security vulnerability where critical executable files (jabberd, jabberd2-c2s, jabberd2-router, jabberd2-s2s, and jabberd2-sm) are installed in /usr/bin with ownership set to the jabber account. This improper permission configuration allows local users who gain access to the jabber account to potentially modify these executables. When a root user subsequently executes any of these programs, the modified code would run with elevated privileges, resulting in privilege escalation.

Overview

This vulnerability (CVE-2017-18225) is classified as CWE-732, which refers to incorrect permission assignment for critical resources. The issue affects the Gentoo net-im/jabberd2 package through version 2.6.1. The core problem is that executable files installed in /usr/bin are owned by the jabber user account rather than by root, which violates the principle of least privilege. An attacker who compromises the jabber account could modify these executables to contain malicious code. When a root user later runs these programs, the malicious code would execute with root privileges, potentially leading to complete system compromise.

Remediation

To remediate this vulnerability:

  1. Update to a patched version of the net-im/jabberd2 package if available.
  2. Change ownership of the affected executables to root:root using: chown root:root /usr/bin/jabberd /usr/bin/jabberd2-c2s /usr/bin/jabberd2-router /usr/bin/jabberd2-s2s /usr/bin/jabberd2-sm
  3. Ensure proper permissions are set (typically 755) using: chmod 755 /usr/bin/jabberd /usr/bin/jabberd2-c2s /usr/bin/jabberd2-router /usr/bin/jabberd2-s2s /usr/bin/jabberd2-sm
  4. Audit your system for any unauthorized modifications to these executables if you suspect the vulnerability may have been exploited.
  5. Consider implementing file integrity monitoring for critical system executables.

References

  1. Gentoo Bug Tracker: https://bugs.gentoo.org/629412
  2. CWE-732: Incorrect Permission Assignment for Critical Resource - https://cwe.mitre.org/data/definitions/732.html
  3. MITRE CVE: CVE-2017-18225

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Accommodation & Food Services
    Accommodation & Food Services
  2. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  3. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  4. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  5. Construction
    Construction
  6. Educational Services
    Educational Services
  7. Finance and Insurance
    Finance and Insurance
  8. Health Care & Social Assistance
    Health Care & Social Assistance
  9. Information
    Information
  10. Management of Companies & Enterprises
    Management of Companies & Enterprises
  11. Manufacturing
    Manufacturing
  12. Mining
    Mining
  13. Other Services (except Public Administration)
    Other Services (except Public Administration)
  14. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  15. Public Administration
    Public Administration
  16. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  17. Retail Trade
    Retail Trade
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background
Armis Vulnerability Intelligence Database