News for hackers. Stuff that matters.
Re:System Down: A systemd-journald exploit by lousken on Thursday January 10, 2019 @09:55AM (#18874221)
Was systemd ever properly audited? That's exactly why i use devuan as my home server.
Re:System Down: A systemd-journald exploit by vesinisa on Thursday January 10, 2019 @11:06AM (#18874830)
Despite being a security critical component, systemd doesn't even seem to have a proper security announcement release process. For example, there was a remote code execution vuln discovered in their DHCP client in October (CVE-2018-15688).[1] The issue was fixed with a GitHub PR that failed to mention that the changes fix a remote exec vulnerability: https://github.com/systemd/systemd/pull/10518

They also have a rather informal release process. Their "release notes" are just a very long NEWS file[2] in the git repo, with notes of trivial and critical changes mishmashed together. And for some reason, to this date there is not a mention of the DHCP remote exec vuln fixed in the latest release.

I must say I don't feel too good about this project's attitude towards security. Compare this to e.g. Apache.

[1] https://www.theregister.co.uk/2018/10/26/systemd_dhcpv6_rce/

[2] https://github.com/systemd/systemd/blob/master/NEWS

Re:System Down: A systemd-journald exploit by dalai on Thursday January 10, 2019 @11:36AM (#18875169)
That was not the first time either:

https://github.com/systemd/systemd/issues/5144

Re:System Down: A systemd-journald exploit by dijit on Thursday January 10, 2019 @11:40AM (#18875213)
Or relying on other people to report the issues so that people patch.

https://www.openwall.com/lists/oss-security/2017/01/24/4

Re:System Down: A systemd-journald exploit by the_duke on Thursday January 10, 2019 @01:03PM (#18876220)
The tone of discussion there indeed suggests a very lax / "meh" attitude towards vulnerabilities.
Re:System Down: A systemd-journald exploit by dralley on Friday January 11, 2019 @12:01AM (#18881134)
While I agree that it isn't ideal -- it should be pointed out that neither does the kernel itself.
Re:System Down: A systemd-journald exploit by lima on Thursday January 10, 2019 @01:15PM (#18876351)
systemd is a low-level building piece for distributions - the distros are doing end-user changelogs and security notices. The target audience for their NEWS file are upstream maintainers, not users.
Re:System Down: A systemd-journald exploit by josteink on Thursday January 10, 2019 @11:03AM (#18874805)
As if Devian has had more security reviews than systemd?
Re:System Down: A systemd-journald exploit by insertcredit on Thursday January 10, 2019 @11:07AM (#18874843)
Devuan is a Linux distribution that does not ship systemd by default.

You are comparing apples and oranges.

Re:System Down: A systemd-journald exploit by josteink on Thursday January 10, 2019 @02:30PM (#18877191)
Not really.

systemd replaces several components you would typically find as core components (multiple packages) which everything in a distro is built and depend upon, init-scripts being no exception.

Or at least it does if you present the criticism that systemd is too big.

Make up your mind: either systemd is not such a big monolith or it does in fact make sense to compare it to a minimal Linux distro.

You can’t have it both ways.

Re:System Down: A systemd-journald exploit by justinclift on Thursday January 10, 2019 @03:57PM (#18878070)
Now you're comparing fruit salad with apples. :)
Re:System Down: A systemd-journald exploit by syn0byte on Thursday January 10, 2019 @05:19PM (#18878868)
1) Devuan isn't a "minimal linux distro" Its a complete fork of Debian. Co-founded by Ian Murdock, Debian's original creator, after the systemD coup.

2) Every "core component" in any system, "minimal" or otherwise, will indeed have had more security review than the systemd code base.

3) Pid 1 - Sponsored by NSA and DoD vis a vis Redhat defense contracts.

Re:System Down: A systemd-journald exploit by tinus_hn on Thursday January 10, 2019 @10:52AM (#18874693)
Was init?
Re:System Down: A systemd-journald exploit by lousken on Thursday January 10, 2019 @11:50AM (#18875339)
No, but it's far less complex than systemd to the point where you can audit the code yourself and it's battle tested over the years. Also because it's so simple it was shown to us at the university so we've got essential understanding of how it works and I think they're still explaining it instead of systemd.
Re:System Down: A systemd-journald exploit by josteink on Thursday January 10, 2019 @02:50PM (#18877385)
But systemd is more than just init. It replaces for instance daemontools, restartd or monit.

Are you saying you can trivially audit those?

Re:System Down: A systemd-journald exploit by lousken on Thursday January 10, 2019 @03:48PM (#18877983)
Does it fully replace monit? Could you link me more info? From what I could find I didn't see anything like free disk space warnings, web interface etc.
Re:System Down: A systemd-journald exploit by josteink on Friday January 11, 2019 @06:04AM (#18882561)
> Does it fully replace monit?

Not fully, no but as far as I can tell, it has overlapping responsibilities.

My main thought when mentioning it, was automatic restart of services in the case of failure.

Re:System Down: A systemd-journald exploit by maemilius on Thursday January 10, 2019 @03:51PM (#18878007)
That's a fair point. However, the parent was responding to whether init - in particular - had been audited. So, bringing up other, larger projects that systemd subsumes is a bit disingenuous, imo.
Re:System Down: A systemd-journald exploit by insertcredit on Thursday January 10, 2019 @11:09AM (#18874863)
The complexity of Sysvinit is orders of magnitude less than that of systemd.
Re:System Down: A systemd-journald exploit by dijit on Thursday January 10, 2019 @11:32AM (#18875108)
The "sysvinit" binary package has had a total of 2 bug reports tagged "security" filed in Debian's bug tracker. That's over the entire history of the package that goes back to at least 2004.

If I extend the search to all packages built from the "sysvinit" source (which includes packages like initscripts and sysvinit-utils), the count increases to 8. (source: https://www.debian.org/Bugs. I'm not linking to exact queries since they take quite some time and HN has a tendency of taking down Debian's bug tracker)

Re:System Down: A systemd-journald exploit by nailer on Thursday January 10, 2019 @11:38AM (#18875192)
Also crond, atd, and various log manipulation tools that systemd replaces.
Re:System Down: A systemd-journald exploit by zzzcpan on Thursday January 10, 2019 @11:40AM (#18875211)
It doesn't replace them, it just doesn't use them.
Re:System Down: A systemd-journald exploit by dijit on Thursday January 10, 2019 @11:41AM (#18875223)
It supplants them with the same functionality.

That's literally the definition of replacement.

Re:System Down: A systemd-journald exploit by nailer on Friday January 11, 2019 @08:33AM (#18883450)
Indeed. Not complaining - I don't care for HN karma - but it is very odd that an easily searchable fact is being downvoted on a technical forum.
Re:System Down: A systemd-journald exploit by yarrel on Thursday January 10, 2019 @01:20PM (#18876403)
It provides inferior code and interfaces that are used instead of them.

So you're correct, in a way.

Re:System Down: A systemd-journald exploit by lima on Thursday January 10, 2019 @01:48PM (#18876679)
Not if you count in the god-awful shell scripts full of race conditions which it replaced.
Re:System Down: A systemd-journald exploit by tinus_hn on Thursday January 10, 2019 @01:22PM (#18876421)
Then it should be easy to audit!
Re:System Down: A systemd-journald exploit by TheDong on Thursday January 10, 2019 @10:56AM (#18874735)
Did you pay for an audit of sysvinit and every bash rc script it runs?

I can't think of a single init system which has been audited.

Re:System Down: A systemd-journald exploit by lousken on Thursday January 10, 2019 @11:53AM (#18875386)
No I didn't but I can read bash so I can audit that myself and in fact over the years I did read most of those scripts. Also it's just a few lines of code compared to systemd so even one person can do it.
Re:System Down: A systemd-journald exploit by joelthelion on Thursday January 10, 2019 @12:01PM (#18875476)
> I can read bash

Lol. I'm sure you're the only person on earth who can think of all the corner conditions when reading a bash script.

Auditing a shell script for security is near impossible to do.

Re:System Down: A systemd-journald exploit by lousken on Thursday January 10, 2019 @12:15PM (#18875635)
I never said that, at the end of the day it's the same thing with audits, you can have 50 people auditing systemd and they won't find every single mistake either. What I'm saying is that simplicity limits room for mistakes and it gives more people chance to look at it and play with it. The concept is fairly straightforward.
Re:System Down: A systemd-journald exploit by zbentley on Friday January 11, 2019 @08:21AM (#18883362)
> I can read bash

And I can read systemd unit files. That doesn't tell me anything about the security of the system in charge of running them.

https://www.cvedetails.com/product/21050/GNU-Bash.html?vendo...

Re:System Down: A systemd-journald exploit by josteink on Thursday January 10, 2019 @02:52PM (#18877398)
> but I can read bash

And all the source code for bash and all the other tools the init-scripts invokes?