News for hackers. Stuff that matters.
Re:FreeBSD – A Lesson in Poor Defaults by RedShift1 on Thursday August 18, 2022 @06:58AM (#32507787)
> FreeBSD also re-enabled insecure encryption ciphers in their build after they were disabled upstream, with backward compatibility apparently being more important to them than the security of their users.

You know what? I appreciate that. The security people want to break stuff all the time and it is terribly annoying to have to go and fix stuff. Sometimes you even can't, there is software out there that only supports older TLS ciphers and you have to keep an old browser around to access it. And inevitably that old browser is going stop working at some point too... If you are so anal about security, the knobs are there to make adjustments. For the rest of us, stop breaking shit!

Re:FreeBSD – A Lesson in Poor Defaults by Athas on Thursday August 18, 2022 @07:37AM (#32508096)
If something is broken in the default installation, you'll notice quickly during acceptance testing and can go and fix it (for example by re-enabling insecure protocols).

If something is unexpectedly insecure, you will probably not notice until it's too late.

I think the admittedly annoying security people are right in this instance.

Re:FreeBSD – A Lesson in Poor Defaults by speeder on Thursday August 18, 2022 @01:30PM (#32512539)
Well... I had some serious issue where security-related breaking changes sent a whole business down for days, with severe lost revenue, without any way to go around it, because the software that needed the insecure old algorithm was government-provided and mandatory for transactions...

It is not like you can go and tell your government you won't pay your taxes because their tax system doesn't work on newest OS version because it is outdated... Or rather, you can, and then the government will happily shoot you.

Re:FreeBSD – A Lesson in Poor Defaults by t-3 on Thursday August 18, 2022 @08:16PM (#32516353)
Why should the default support your insecure needs? You builing a custom port is much better than every FreeBSD getting insecure defaults.
Re:FreeBSD – A Lesson in Poor Defaults by froh on Thursday August 18, 2022 @10:09AM (#32509826)
still how do you give the user the option to say "I know what I'm doing."

I get that access to an unknown site with unknown content with a dated cipher should _by default_ break. By default!

I do not get that I cant't access a well known site any longer because that site that I don't control just doesn't update their cipher. In that latter case I need to and want to be able to override the default recommendation of the gurus --- without having to rebuild my client!

Re:FreeBSD – A Lesson in Poor Defaults by Athas on Thursday August 18, 2022 @10:20AM (#32509992)
> still how do you give the user the option to say "I know what I'm doing."

You make configuration available. Most of these disabled-by-default protocols can be enabled by a user who really knows what they are doing (and isn't just saying so). A few might have been outright removed from the code base. In that case, you really need to know what you are doing, but you can still bring them back by installing a custom patch or downgrading the program in question.

I think it is a good idea to create friction along pathways that are probably mistakes. The people who really need to go down that path will put in whatever effort is necessary, while people who are motivated by the path of least resistance will be nudged in a safe direction.

Re:FreeBSD – A Lesson in Poor Defaults by citrin_ru on Friday August 19, 2022 @03:30AM (#32518375)
Security expert love to discuss ciphers but how commonly old ciphers are exploited by threat actors in real world?

I heard cryptographic weakness are sometimes used to break tivoization/DRM but I don't consider people who do this threat actors - an owner should be free to run any software on own hardware. And an attack on device you hold in hands is completely different than say an attack on remote FreeBSD server.

Re:FreeBSD – A Lesson in Poor Defaults by Genbox on Friday August 19, 2022 @06:38AM (#32519372)
I'm one of those security experts. I've broken more cryptosystems than I can count through security & code reviews. You would be surprised how many vendors have no idea on how cryptographic primitives work or when/how to use it. This is exactly what we mean when we say "don't roll your own crypto".

There is a communications problem within all of this. If I break a cryptosystem, I do not have permission by either party (customer/employer) to go and write a blog post about it. All in the name of "protecting our users". The same goes for my colleagues around the world, as such it gets very little attention.

As for threat actors misusing it, there is a value/effort calculation in their world where it is often easier to access content through other means. Crypto is hard - for everyone, even threat actors - so you won't often see them trying to tackle it.

Re:FreeBSD – A Lesson in Poor Defaults by crest on Thursday August 18, 2022 @07:12AM (#32507888)
IIRC FreeBSD changed the default value to keep the old crypto enabled by default in a minor release after they imported a newer OpenSSH version. They imported the new OpenSSH release because the old one was uncomfortable close to end of life to include in a new release and they changed the default cipher selection to a less secure one to maintain compatibility within a major release. If minor releases locked people out in the name of "you shouldn't be using this anyway" fewer people would install them in production. You would end up with more end of life systems in production, because nobody dared to touch them. Oh and if you do it often enough most users will migrate to a saner platform.
Re:FreeBSD – A Lesson in Poor Defaults by rovr138 on Thursday August 18, 2022 @11:50AM (#32511264)
I'm curious about how this is handled in the Linux world.

For example, how does Debian handle this? Debian has testing, then it freezes and it moves to stable.

- Debian 9 (Buster) was released in July 2019 [1] - Debian 9 is LTS supported until June 30, 2024 [2]

Looking, it seems 12.0 was released in December 11, 2018 [3]. From a note on the Wikipedia page,

> The timeline shows that the span of a single release generation of FreeBSD lasts around 5 years

So comparing against Debian looks like a fair comparison.

[1] - https://en.wikipedia.org/wiki/Debian

[2] - https://wiki.debian.org/LTS

[3] - https://en.wikipedia.org/wiki/FreeBSD_version_history

Re:FreeBSD – A Lesson in Poor Defaults by kbenson on Thursday August 18, 2022 @02:02PM (#32512906)
There is no one answer in the linux world. It's distro dependent, with different distros choosing different policies which you can choose from to match what you're looking for.

For example, Fedora will upgrade package versions and defaults often, because they release often. RHEL, which is made from a frozen Fedora version (for the most part), won't even upgrade versions of installed packages, but will instead back-port fixed into the old versions, so you are ultimately as stable as can be expected from running an OS, as without new versions and new features in packages there's little to worry about with regard to changing behavior.

Usually, that means you're responsible for knowing what to set for package defaults, and while they might change the default for a package such as OpenSSH at a point release (or in critical situations as a normal update), the way their config management works is that your existing systems will likely not see any change, but a new install might (there are different actions in different situations, but it's documented).

The main exception to the above is point releases, which are every six months or so, where they may take a subset of packages and allow newer versions of those to allow for new features, but with copious amounts of testing to hopefully catch any problems that might introduce. In some cases they may deem it safer to back-port a feature than to change the shipped package to a newer version (this is common for some kernel features, for example).

What this means in practice though is that you can choose to do regular security and bugfix updates automatically but stage and test point release updates, and do one or two systems to test whether it introduces problems.

Those are the benefits of an enterprise distributions, such as RHEL (and free derivatives such as CentOS and Rocky Linux) and Ubuntu LTS releases. The downside, if you can consider it that, is that they are so stable that five years later you'll find you're still running that same distro and your problem is that that majority of the software stack you're running is very old, and the annoyances from that continue to mount, and harder to migrate to something newer because there's been so much change in all the software that you can't assume that the configs will work cleanly.

Re:FreeBSD – A Lesson in Poor Defaults by croes on Thursday August 18, 2022 @09:33AM (#32509330)
If you are so anal about running old software, the knobs are there to make adjustments. For the rest of us, stop making shit unsecure!
Re:FreeBSD – A Lesson in Poor Defaults by RedShift1 on Thursday August 18, 2022 @11:41AM (#32511162)
Fair enough
Re:FreeBSD – A Lesson in Poor Defaults by ogogmad on Thursday August 18, 2022 @08:47AM (#32508859)
Software's an area where fail-fast/fail-hard is commonplace advice. People often compile their code with -Wall. Secure defaults are like -Wall.

Security's a thankless area since you have no way of knowing which exploits were prevented by security measures. It's like precautions against fires: You have no way of knowing how many thousands of deaths were prevented by measures taken to prevent fires from starting - and you never will. It even affects our politics: We don't know how many deaths were prevented by the measures taken to save lives from the present pandemic, and as a result some people complain.

Re:FreeBSD – A Lesson in Poor Defaults by AlexanderDhoore on Thursday August 18, 2022 @09:17AM (#32509159)
It's funny that you chose -Wall as an example because it is the exact opposite of what you are trying to say. -Wall is effectively frozen and new warnings are never added to it, in the name of backward compatibility.
Re:FreeBSD – A Lesson in Poor Defaults by bombcar on Thursday August 18, 2022 @09:52AM (#32509577)
The best kind of backwards compatibility- designed to forever trip up the newbies who dare to assume all means all.
Re:FreeBSD – A Lesson in Poor Defaults by tedunangst on Thursday August 18, 2022 @11:16AM (#32510851)
New warnings appear in -Wall with just about every compiler upgrade. That's why standard advice is to never ship with -Werror because the next guy's compiler may fail to build it.
Re:FreeBSD – A Lesson in Poor Defaults by blahgeek on Thursday August 18, 2022 @10:37AM (#32510268)
> -Wall is effectively frozen and new warnings are never added to it, in the name of backward compatibility.

Any reference on this? Thanks!

Re:FreeBSD – A Lesson in Poor Defaults by GekkePrutser on Thursday August 18, 2022 @07:04AM (#32507831)
Indeed. And it's not like those ciphers are completely broken to the point of being easily exploitable.

I have some old servers with older iLO that suffer from this, and I'm only using them on a local network. Similarly, I have used the "None" cipher on a local network to sync a lot of data from my old NAS which definitely did speed things up (that box didn't have AES-NI, ancient processor).

They don't have to enable it out of the box but having it in there when needed is definitely helpful.

On another point, that 'huge diverging patch' from OpenBSD PF was all about multithreading and dramatically improving performance on modern systems, it's not like it was done for the sake of it... But it should have been kept more up to date, yes.

Re:FreeBSD – A Lesson in Poor Defaults by jen20 on Thursday August 18, 2022 @09:52AM (#32509580)
This is among the worst takes I’ve ever seen, to the point that I might adopt this as an interview question to avoid ever +1ing a hire who thinks in this way.

If you need broken old stuff to run, the onus must be on you to disable the security, not the other way around.

Re:FreeBSD – A Lesson in Poor Defaults by kastagg on Friday August 19, 2022 @10:55AM (#32521781)
There are situations where "abruptly stops working" is not just inconvenient but catastrophic. To make intelligent decisions about these trade-offs it's necessary to consider possible outcomes in detail. That depends on how software is used in a larger system, not just whether it's using an encryption algorithm that is still in fashion.

When you weaponize interviewing decisions to enforce cultural homogeneity and agreement with your own opinions, you are reducing diversity and excluding people who are intelligent enough to recognize nuances that break rules of thumb.

Re:FreeBSD – A Lesson in Poor Defaults by jen20 on Friday August 19, 2022 @03:01PM (#32524843)
There are cases where the rule of thumb does not apply: general purpose operating system distributions is not one of those cases.

Anyone that can explain both the trade off and when it is appropriate to make would be unaffected by this. The default must be security - we don't live in the 80s anymore.

Re:FreeBSD – A Lesson in Poor Defaults by junon on Thursday August 18, 2022 @05:44PM (#32515258)
Yeah the fact it is the top comment is concerning.
Re:FreeBSD – A Lesson in Poor Defaults by outworlder on Thursday August 18, 2022 @04:20PM (#32514394)
> For the rest of us, stop breaking shit!

The flip side is that shit will work. For everyone. Even people you didn't even know and that should not have access to said shit.

Cyphers are not deprecated daily. They live on for many years.

Re:FreeBSD – A Lesson in Poor Defaults by ShowalkKama on Thursday August 18, 2022 @11:25AM (#32510956)
about:config search for "require_safe_negotiation" and toggle it to "false". This will allow firefox to use broken ciphers.

(you might need to toggle a different option but I forgot the name)

Re:FreeBSD – A Lesson in Poor Defaults by z3t4 on Thursday August 18, 2022 @10:54AM (#32510521)
Security can mean different things, for example a database with personal information accessible from the internet without authorization, vs a funny cat video streamed via an unencrypted channel...
Re:FreeBSD – A Lesson in Poor Defaults by Bancakes on Thursday August 18, 2022 @07:33AM (#32508056)
If you're running old, unsupported software whose only purpose is to drag technology back, your "shit" is already "broken".