Feeds

Collective SSL FAIL a symptom of software's cultural malaise

Apple, WhatsApp and Belkin show that if you ask for bad software, you get bad software

The Power of One Brief: Top reasons to choose HP BladeSystem

In the 19 years that have passed since the first implementation of SSL, you could be forgiven for expecting that the industry could do it right by now: and yet last week, not one but three SSL vendors were discovered to have implementation problems.

Belkin was caught not checking SSL certificates; WhatsApp was discovered to have overlooked certificate pinning in its SSL implementation; but Apple's SSL woes outshone them both, exposing hundreds of millions of iOS and OS X Mavericks users to man-in-the-middle attacks.

Given the Snowden revelations, it's almost axiomatic that conspiracy theorists would find the fingerprints of the NSA in such events.

However, Vulture South is moved to wonder if the conspiracy we need to worry about isn't one of shadowy spooks subverting vendors or developers, but the cultural conspiracy of sleepless software development, which is almost guaranteed to deliver bad code.

It's apparent that Apple suffered a double slip: someone's command-V slipped, and it wasn't caught in any code review.

It's a mistake so simple that Vulture South is tempted to wonder whether the gung-ho no-sleep bring-coffee culture that pervades software isn't at fault. Yes, we know that the software industry has collectively spent a lot of time and energy creating and implementing processes to more-or-less bulletproof code creation. But there's also not a company or government department so boring that staging a Hackathon won't bring it some hipster credibility. Throw in a trophy and a boxed set of steak knives as first prize, and coders will show up, work ruinous hours and happily turn over their output for free.

Reward mechanisms inside companies are, I suspect, no better: it's easy to imagine that eyes bleary and bloodshot simply didn't notice the error. It's easier to see it that way than to dive into conspiracy theory.

Over at Columbia University, Steven Bellovin notes that as a piece of spook sabotage, “goto fail;” is thunderingly ham-fisted: it appears in a piece of the Apple source code base that's released under an open source license, rather than being hidden in a proprietary binary.

Bellovin adds: “There's another reason to think it was an accident: it's not very subtle. That sequence would stick out like a sore thumb to any programmer who looked at it; there are no situations where two goto statements in a row make any sense whatsoever.”

Google's Adam Langley doesn't quite agree with Bellovin about the subtlety of the error, but he points out that the bug isn't caught by the two compilers he tried it on – GCC 4.8.2 or Xcode's Clang 3.3, when run with warnings enabled. Only if the code was compiled under Clang with the -wunreachable-code flag would the bug have been noticed.

“Code review can be effective against these sorts of bug. Not just auditing, but review of each change as it goes in,” Langley writes.

But that's the kind of eagle-eyed operation that needs eyes that aren't held up by matchsticks. ®

Securing Web Applications Made Simple and Scalable

More from The Register

next story
Whoah! How many Google Play apps want to read your texts?
Google's app permissions far too lax – security firm survey
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
Do YOU work at Microsoft? Um. Are you SURE about that?
Nokia and marketing types first to get the bullet, says report
Microsoft takes on Chromebook with low-cost Windows laptops
Redmond's chief salesman: We're taking 'hard' decisions
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Big Blue Apple: IBM to sell iPads, iPhones to enterprises
iOS/2 gear loaded with apps for big biz ... uh oh BlackBerry
OpenWRT gets native IPv6 slurping in major refresh
Also faster init and a new packages system
Google shows off new Chrome OS look
Athena springs full-grown from Chromium project's head
prev story

Whitepapers

Top three mobile application threats
Prevent sensitive data leakage over insecure channels or stolen mobile devices.
The Essential Guide to IT Transformation
ServiceNow discusses three IT transformations that can help CIO's automate IT services to transform IT and the enterprise.
Mobile application security vulnerability report
The alarming realities regarding the sheer number of applications vulnerable to attack, and the most common and easily addressable vulnerability errors.
How modern custom applications can spur business growth
Learn how to create, deploy and manage custom applications without consuming or expanding the need for scarce, expensive IT resources.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.