CVE-2017-18226:Improper permissions in Gentoo net-im/jabberd2 package allow local users to kill arbitrary processes.

splash
Back

Description Preview

The Gentoo net-im/jabberd2 package through version 2.6.1 contains a security vulnerability where the /var/run/jabber directory is owned by the jabber account. This improper permissions setting allows local users with access to the jabber account to modify PID files. When root scripts execute commands like "kill -TERM `cat /var/run/jabber/filename.pid`", attackers can manipulate these PID files to target and terminate arbitrary processes on the system.

Overview

This vulnerability (CVE-2017-18226) is classified as CWE-732: Incorrect Permission Assignment for Critical Resource. The issue affects the Gentoo net-im/jabberd2 package through version 2.6.1. By setting the ownership of /var/run/jabber to the jabber account instead of restricting it to root, the package creates a security weakness. Users with access to the jabber account can modify PID files in this directory. When system scripts run as root execute commands that read these PID files to determine which processes to terminate, attackers can manipulate the process IDs to kill arbitrary processes on the system, potentially causing denial of service or other system disruptions.

Remediation

To remediate this vulnerability:

  1. Update to a patched version of the net-im/jabberd2 package if available.
  2. Change the ownership of /var/run/jabber directory to root:jabber.
  3. Modify permissions to ensure the jabber user cannot modify PID files.
  4. Review and update any scripts that use PID files from this directory to validate the contents before acting on them.
  5. Consider implementing more secure process management techniques that don't rely on reading PID files from user-accessible directories.
  6. Monitor system logs for unexpected process terminations that might indicate exploitation of this vulnerability.

References

  1. Gentoo Bug Tracker: https://bugs.gentoo.org/631068
  2. CWE-732: Incorrect Permission Assignment for Critical Resource: https://cwe.mitre.org/data/definitions/732.html

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