News for hackers. Stuff that matters.
Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by camillomiller on Friday September 23, 2016 @09:28AM (#12564402)
Ok, I got it clearer: somebody at Apple fucked up and left a weak SHA256 Hash and salt inside a db table that shouldn't be there. Probably used in testing for the betas, then nobody remembered to comment it away before the public release. Some engineer and somebody in QA will get their ass kicked pretty badly. Next iOS public release will solve it, everybody's gonna be happy. Nothing to see here folks, we can move on :)
Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by brazzledazzle on Friday September 23, 2016 @10:05AM (#12564684)
I really wish the default response in dev and operations wasn't "somebody is going to get (yelled at|punished|fired|pile on layers of bureaucracy)". It would be so much better if the response was "how can we change automation in our release process to catch this and the engineer that did this is responsible for fixing it". Blameless post-mortems should be the industry standard.
Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by camillomiller on Friday September 23, 2016 @10:24AM (#12564824)
Indeed, but this is a big "you should have gotten that in QA" kind of mistake. With the aggravating factor the the company markets security as one of iOS tentpoles... Accountability is a bitch, I guess, but in this case this was really in plain sight. I mean, it's not necessarily the dev's ass that's going to be kicked. There's a nice story about accountability at Apple once recalled in a profile by Adam Lashinski. It's from the Steve Jobs' era, but I guess this kind of policy is still enforced in Cupertino:

One such lesson could be called the “Difference Between the Janitor and the Vice President,” and it’s a sermon Jobs delivers every time an executive reaches the VP level. Jobs imagines his garbage regularly not being emptied in his office, and when he asks the janitor why, he gets an excuse: The locks have been changed, and the janitor doesn’t have a key. This is an acceptable excuse coming from someone who empties trash bins for a living. The janitor gets to explain why something went wrong. Senior people do not. “When you’re the janitor,” Jobs has repeatedly told incoming VPs, “reasons matter.” He continues: “Somewhere between the janitor and the CEO, reasons stop mattering.” That “Rubicon,” he has said, “is crossed when you become a VP.”

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by btilly on Friday September 23, 2016 @12:04PM (#12565598)
Indeed, but this is a big "you should have gotten that in QA" kind of mistake.

It depends what kind of infrastructure you have.

Ideally there should be NO MANUAL STEPS between dev and production. This should not be any need for a person to remember that this data should be inserted for dev and removed before prod. Instead there should be something like a documented way to insert the data or not based on a configuration file that is different for dev and production.

Of course reaching that keeping that ideal requires discipline. And when you slip, it becomes easy to say, "That's QA's job." Over time QA's job will get harder and harder, and that is a guarantee of periodic slip-ups.

Authority for fixing this situation really is the job of someone VP or above. They need to decide whether to fix the process and change what a lot of people do, or accept the inevitable screw-ups as the right choice to maintain the current rate of development.

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by yladiz on Friday September 23, 2016 @10:31AM (#12564883)
I want to preface this by saying that if this comes off as condescending that's not my intention.

> Blameless post-mortems should be the industry standard.

Sure, often times there are multiple reasons why something isn't accomplished, something is broken, or something doesn't work as intended. But generally there is someone that's primarily responsible for the piece of code, be it a manager, engineer, etc. It does suck to be on the receiving end of it and if it's major enough you can be out of a job, but blame should be given to the responsible party/parties and the issue should be handled appropriately as it's more direct than what alternatively happens which is to passive-aggesively handle the situation. Plus, how you handle crises like production going down and being blamed for it say just as much about you as an engineer as does your code.

Essentially, I'm against being coddled as an adult. We're adults, someone fucked up and is responsible for it, they should be blamed and handle it, and handle it like an adult. I do think that handling that kind of situation as person on the giving end definitely requires tact, though.

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by Goronmon on Friday September 23, 2016 @12:36PM (#12565888)
But generally there is someone that's primarily responsible for the piece of code, be it a manager, engineer, etc. It does suck to be on the receiving end of it and if it's major enough you can be out of a job, but blame should be given to the responsible party/parties and the issue should be handled appropriately as it's more direct than what alternatively happens which is to passive-aggesively handle the situation.

The problem is deciding what is the actual goal of a post-mortem. Is it to fix the problem (and prevent it from happening again)? Or is it to figure out who is the person most to blame so that they can be punished. Because, honestly, you can't have it both ways.

Plus, who makes the final judgement as to the party to be blamed and based on what criteria? Is it QA for not catching the issue, is it the engineer for forgetting to remove some debug code, the tech arch for not properly ensuring there were systems in place to prevent it from occurring in production, the program manager for not pushing back on deadlines that were too aggressive, or the CEO for constantly pushing employees to prioritize revenue over product quality?

Plus, how you handle crises like production going down and being blamed for it say just as much about you as an engineer as does your code.

Or your willingness/ability to find a suitable scapegoat.

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by jdavis703 on Friday September 23, 2016 @10:58AM (#12565076)
The problem is that post mortems then become politicized, which means the actual cause may not be exposed, rendering the whole exercise pointless. It's part of the reason the FAA has all kinds of safe guards around reporting aviation hazards, even if the person who reported them is to blame.
Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by AceJohnny2 on Friday September 23, 2016 @05:54PM (#12568253)
Reminds me of the story of a guy who makes a $50,000 mistake. He goes to his boss saying "So I expect you're going to fire me now" and the boss answers "Are you kidding? We just invested $50,000 in your training!"

Should I consider myself lucky that all my bosses have had this mentality? Is ass-kicking actually more prevalent in the industry than rational correction?

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by pkamb on Friday September 23, 2016 @01:00PM (#12566107)
I've always thought that `git blame` was an overly negative / accusational term for the command.
Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by AceJohnny2 on Friday September 23, 2016 @05:51PM (#12568234)
That's why I actually have an alias "git praise", which was one detail of svn I liked.

I was actually surprised by the change of mindset this simple substitution made. Power of positive thinking, I guess...

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by toast0 on Friday September 23, 2016 @04:04PM (#12567539)
you can run git annotate instead (although the format looks a bit different), but blame is shorter and easier (for me) to type and remember.
Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by dunham on Friday September 23, 2016 @04:24PM (#12567684)
It's a little worse than that.

The "file" column of the database is a binary plist encrypted with AES128-CBC using the first 16 bytes of SHA1(password||salt) as a key and 0,1,2,...,15 as a salt. So those columns could be used as an oracle to break the password, even if the hash were removed.

The data in the file column doesn't really need to be encrypted. It was unencrypted previously, contains file metadata, and a properly wrapped key for the file.

The cryptography on this is pretty shabby. Much more amateur than the existing / previous stuff surrounding the keybag in the backup (which uses PBKDF2). Not sure what happened here. (Why it was added, and why it wasn't vetted by their more knowledgeable engineers.)

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by 0x0 on Friday September 23, 2016 @10:03AM (#12564671)
That sounds maybe plausible, although what could they have possibly been debugging that required a weaker hash?

Of course, with the paranoid hat on, if your task was to subvert the mechanism, this is probably exactly how you'd go about it - make it seem like an accident. Just like gotofail :)

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by camillomiller on Friday September 23, 2016 @10:16AM (#12564775)
Yeah, and hide it in plain sight. Plausible, yes. Although goto fail; had another vibe to it. It was really strangely placed and hardly explainable. Plus it made possible to perform some pretty nasty MiTM attacks over a network.

Here you have a method that security experts tinkering with the betas knew of since probably last July. Everybody expected Apple to fix it in the GM, but it didn't happen. Now the cat's out of the bag with some deservedly good (and harmless) publicity for Elcomsoft and it's gonna be fixed in no time.

If we even want to give credit to the malicious actor hypothesis, what's the benefit for them? Accessing iOS 10 beta backups more easily for three months? Nah, I don't see that, not this time.

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by jobu on Friday September 23, 2016 @11:07AM (#12565157)
> Although goto fail; had another vibe to it. It was really strangely placed and hardly explainable. Plus it made possible to perform some pretty nasty MiTM attacks over a network.

The goto fail looked very much like a bad code merge. (I actually had a similar issue with a duplicated line when merging changes two days ago.) It's impossible to know without reviewing their full source control history, but it seemed like a plausible mistake to me.

Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by camillomiller on Friday September 23, 2016 @11:17AM (#12565225)
Ok, good explanation. Let's slit that one with the Occam razor too, then :)
Re:iOS 10: Security Weakness Discovered, Backup Passwords Mu... by matco11 on Friday September 23, 2016 @04:56PM (#12567888)
Well... yes... just remember to securely delete that backup made with the current version of iOS10 from your computer, after you upgrade to next iOS public release... ;-)