{"id":16867,"date":"2017-07-03T11:52:49","date_gmt":"2017-07-03T16:52:49","guid":{"rendered":"http:\/\/bucktownbell.com\/?p=16867"},"modified":"2017-07-03T11:52:49","modified_gmt":"2017-07-03T16:52:49","slug":"giving-perspective-on-systemds-usernames-that-start-with-digit-get-root-privileges-bug","status":"publish","type":"post","link":"http:\/\/bucktownbell.com\/?p=16867","title":{"rendered":"Giving perspective on systemd&#8217;s &#8220;usernames that start with digit get root privileges&#8221;-bug"},"content":{"rendered":"<blockquote><p>So in order to trigger this behaviour, someone with root-level privileges needs to edit a Unit file and enter a &#8220;invalid username&#8221;, in this case one that starts with a digit.<\/p>\n<p>But you need root level privileges to edit the file in the first place and to reload systemd to make use of that Unit file.<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/ma.ttias.be\/giving-perspective-systemds-usernames-start-digit-get-root-privileges-bug\/\">Giving perspective on systemd&#8217;s &#8220;usernames that start with digit get root privileges&#8221;-bug<\/a><\/em><\/p>\n<blockquote><p>It&#8217;s an obvious bug (at least on RHEL\/CentOS 7), since a valid username does not get accepted by systemd so it triggers unexpected behaviour by launching services as root.<\/p>\n<p>However, it isn&#8217;t as bad as it sounds and does not grant any username with a digit immediate root access.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>So in order to trigger this behaviour, someone with root-level privileges needs to edit a Unit file and enter a &#8220;invalid username&#8221;, in this case one that starts with a digit. But you need root level privileges to edit the &hellip; <a href=\"http:\/\/bucktownbell.com\/?p=16867\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[37,1125,698,1324],"class_list":["post-16867","post","type-post","status-publish","format-standard","hentry","category-operating-systems","tag-centos","tag-exploit-vector","tag-security-research","tag-systemd"],"_links":{"self":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/16867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16867"}],"version-history":[{"count":1,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/16867\/revisions"}],"predecessor-version":[{"id":16868,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/16867\/revisions\/16868"}],"wp:attachment":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16867"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}