CVE-2017-1000082 assigned to systemd, despite Pottering's objection
systemd failed to safely parse usernames starting with a numeric digit, causing the service to run with root privileges instead of the intended user. An attacker could exploit this to gain root access if they can control the username.
seclists.org
Published on seclists.org
{"dataversion":"4.0","references":{"referencedata":[{"url":" https://github.com/systemd/systemd/issues/6237"},{"url":"; http://www.openwall.com/lists/oss-security/2017/07/02/1"}]},"description":{"descriptiondata":[{"lang":"eng","value":"systemd v233 and earlier fails to safely parse usernames starting with a numeric…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, systemd's username parsing logic treated a leading digit as a user ID and, upon failure to resolve it, defaulted to running as root instead of rejecting the configuration.
Impact
A service configured with a username starting with a digit would run with root privileges, potentially allowing an attacker who can influence the username to gain root access.
What the attacker needed
Ability to set a service's User= to a name starting with a…
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
systemd is a program that starts and manages services on Linux. When told to run a service as a particular user, it should switch to that user. Here, if the username started with a number, systemd instead ran the service as the all-powerful root user, which could let an attacker take over the whole system.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.