Description
su-exec through 0.3 fails to validate numeric user and group identifiers parsed with strtol before assigning to uid_t and gid_t, allowing truncation of out-of-range values to zero. Attackers can supply large numeric identifiers that truncate to root's identifier, causing su-exec to execute target programs with root privileges instead of intended unprivileged accounts.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ncopa | su-exec | ≤ 0.3 | — |
References
- Vulnerable code: su-exec.c (strtol into uid_t without range check) technical-description
- Reporter's write-up third-party-advisory
- https://github.com/ncopa/su-exec product
- VulnCheck Advisory: su-exec through 0.3 Privilege Escalation via Numeric User ID third-party-advisory