World’s most popular email server praised as ‘near-impenetrable’ – Naked Security

It isn’t typically that excellent news makes headlines, particularly within the safety world. Dovecot bucked the development earlier this month, with a cybersecurity audit that praised the mail server as “near-impenetrable”. Commendations like which are rarer than hens’ tooth. What can we study from it?

Dovecot is a mail server. Not the sort that sends and receives mail, thoughts you. It’s an IMAP server – the sort that shops email obtained by one other program (known as a mail switch agent) and offers it to packages like Outlook after they ask for it.

Cure53, the German safety group that audited Dovecot, did a radical job. Four consultants spent 20 days poking across the program. First, they pored over the code manually on the lookout for holes in it. Then the group ran a collection of automated penetration exams, utilizing packages that attempted to seek out exploitable flaws such as reminiscence leaks.

‘A’ for effort and outcomes

The outcomes had been spectacular. Cure53, which discovered solely three minor points, stated:

“Despite a lot effort and completely all-encompassing method, the Cure53 testers solely managed to say the wonderful safety standing of Dovecot. For a fancy piece of software program that Dovecot constitutes, it’s an especially uncommon end result to face sturdy with so few issues.”

Verifying safety in a product like that is notably vital, for 2 causes. The first is ubiquity. Dovecot is extraordinarily popular. The most current scan by Open Email Survey, utilizing the web discovery device Shodan, discovered that 68% of IMAP servers ran Dovecot. The subsequent most popular accounted for 17%.

Whenever a product turns into that popular, it will get near making a monoculture, and monocultures are unhealthy for safety. We know that is true, as a result of when folks say so it makes firms indignant, and gets people fired. You can’t mandate variety in software program utilization, although, so that you’d higher make it possible for if there’s a dominant program, it’s fairly watertight.

Luckily, Dovecot was written with safety in thoughts, and its main writer Timo Sirainen presents a €1,000 bug bounty out of his personal pocket to anybody discovering safety holes. This is a man who walks the stroll, and actually cares concerning the safety of the software program.

The drawback with many eyes

The second purpose that Dovecot’s stellar report card is vital is as a result of it’s open-source software program. One of the most important myths in open-source software program was voiced by considered one of its largest advocates. Eric Raymond wrote The Cathedral and the Bazaar, a seminal ebook on open supply. In it he cash “Linus’s regulation”, named for the developer of Linux. He says:

“Given a big sufficient beta-tester and co-developer base, nearly each drawback will likely be characterised rapidly and the repair apparent to somebody.”

Or, much less formally: “Given sufficient eyeballs, all bugs are shallow”.

It’s not solely true, although. Some of the most important and most popular open-source initiatives have been felled by bugs that lay dormant for years. Naked Security has reported on a number of. In 2014, a bug that rendered Linux rootable was patched after existing for five years. Cure53 uncovered several bugs in Curl, a program underpinning a whole bunch of others, final November.

Perhaps most damning was Kees Cook’s analysis of Linux kernel bugs final October. He discovered 34 high-severity bugs that had been hanging round for six years every on common, and a few for greater than a decade.

And let’s not overlook the granddaddy of all open-source bugs: Heartbleed. That bug, noticed in 2014, hit OpenSSL, the most generally used TLS certificates library on the planet, inflicting establishments to scrabble for a repair.

Show me the cash

The “many eyes” idea  isn’t full snake oil. Having plenty of folks your code actually can’t damage, and has produced quantifiably optimistic outcomes. Vulnerability scans have revealed a disparity between defect densities (that’s errors per thousand traces of code) in open supply versus business software program – and open source won. But that doesn’t imply that errors don’t nonetheless lurk in open-source software program, or that they don’t embrace some absolute howlers.

The drawback is that whereas many eyes might scour open-source code, they aren’t all well-trained or skilled eyes, they usually gained’t all the time have a look at mundane components of the code. This is why a deep dive by seasoned consultants is significant in complementing neighborhood efforts.

That’s all very effectively, however who’s going to pay for it? Open-source software program is mostly a labour of affection. Sirainen presents business contracts for his open-source code, which little question assist along with his bug bounties, however he didn’t pay for the Cure53 scan. Mozilla did.