Incorrect User Management Affecting github.com/ubuntu/authd/internal/services/nss package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMUBUNTUAUTHDINTERNALSERVICESNSS-8185034
  • published 14 Oct 2024
  • disclosed 11 Oct 2024
  • credit nbraud

How to fix?

There is no fixed version for github.com/ubuntu/authd/internal/services/nss.

Overview

github.com/ubuntu/authd/internal/services/nss is an implementation of the NSS gRPC service protocol

Affected versions of this package are vulnerable to Incorrect User Management in users/manager.go and nss.go, which implement GenerateID() for UIDs and GIDs. This function is prone to collisions and can be attacked by offline brute forcing of UIDs to impersonate a legitimate user and escalate privileges.

Note:

This vulnerability was mitigated in version 0.3.6 by making the UID/GID ranges configurable, so administrators can make sure that the ranges don't overlap with the ranges used by other system components. Even if this responsibility was moved to administrators, the default range is still 1000000000-1999999999 and if it is not changed, a Generated UID can still be used by another user on the system.

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
8.8 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High