Live data from Hacker News

About the security content of iOS 7.0.6

support.apple.com

111–120 of 155 posts

Re: About the security content of iOS 7.0.6

#111

Earlier quoted context omitted.

How could this not happen in Python?

Python does not allow an assignment to occur within an expression. They deliberately chose that restriction, to avoid that hard-to-see bug.

I have always wondered why all languages don't enforce this?

Re: About the security content of iOS 7.0.6

#112
Since the source code is available, might it be possible to produce a hot patch to the binary so that those of us running Mavericks won't have to go through the next few days or weeks with our pants down? It would be a simple matter of finding the JMP instruction generated by the second GOTO and replacing it with no-ops. How hard could it be,at least for someone who actually knows their way around OS X binary file formats?

Re: About the security content of iOS 7.0.6

#113

This is so bad that it is hard to imagine how it could have escaped notice until now, Apple really need to beef up their security competence. Lets hope that malevolent hackers were similarly asleep.

Same with openssh on OS X. For some unknown reason, Apple chose to disable ECDSA on ssh. You can generate the keys but you can't use them. Try it.

Re: About the security content of iOS 7.0.6

#114
post #112

Since the source code is available, might it be possible to produce a hot patch to the binary so that those of us running Mavericks won't have to go through the next few days or weeks with our pants down? It would be a simple matter of finding the JMP instruction generated by the second GOTO and replacing it with no-ops. How hard could it be,at least for someone who actually knows their way around OS X binary file fo…

"It would be a simple matter of finding the JMP instruction generated by the second GOTO and replacing it with no-ops."

Only if they used a truly stupid compiler. Chances are the unreachable code behind it got optimized away.

Re: About the security content of iOS 7.0.6

#115
post #112

Since the source code is available, might it be possible to produce a hot patch to the binary so that those of us running Mavericks won't have to go through the next few days or weeks with our pants down? It would be a simple matter of finding the JMP instruction generated by the second GOTO and replacing it with no-ops. How hard could it be,at least for someone who actually knows their way around OS X binary file fo…

"It would be a simple matter of finding the JMP instruction generated by the second GOTO and replacing it with no-ops." Only if they used a truly stupid compiler. Chances are the unreachable code behind it got optimized away.

Oh, right. (duh)

Re: About the security content of iOS 7.0.6

#116

Odd. Apple updated iOS 7 and iOS 6 but didn't update Secure Transport in iOS 5? I wonder if the bug was introduced between iOS 5 and 6. Background on Secure Transport: "At the bottom of the TLS stack on both iOS and Mac OS X is a component known as Secure Transport. Secure Transport maintains a per-process TLS session cache. When you connect via TLS, the cache stores information about the TLS negotiation so that subs…

Seems the bug was introduced in iOS 6. https://gotofail.com has been offering a test for the bug, and my iOS 5 devices pass the test.

Re: About the security content of iOS 7.0.6

#117
post #66

Earlier quoted context omitted.

I'm able to reproduce your results with cURL. However, Safari on OS X correctly shows a warning. Can anybody explain that?

cURL uses OpenSSL, Safari uses Apple's Secure Transport.

That's not correct. The cURL version shipped with OS X uses SecureTransport.

Re: About the security content of iOS 7.0.6

#119
post #66

Earlier quoted context omitted.

It appears to be, per https://gist.github.com/rmoriz/fb2b0a6a0ce10550ab73 (and my own testing on OS X 10.9.1).

I'm able to reproduce your results with cURL. However, Safari on OS X correctly shows a warning. Can anybody explain that?

OK, the answer to that is at the end of Adam Lengley's analysis: https://www.imperialviolet.org/2014/02/22/applebug.html

The lack of hostname checking for IP addresses in Apple's cURL is a completely different problem.

Re: About the security content of iOS 7.0.6

#120
post #73
post #69

Earlier quoted context omitted.

Don't C compilers warn about code that is never executed? I'm actually pretty impressed how this bug was not caught before. The compiler warning is just one thing that came to my mind but test coverage should have been the strongest hint. A linter could have also make the thing easier for a code review. Probably these parts of the code should have stricter coding guideline.

You are 100% right. LLVM should fire a dead code warning here. However later code is used as a jump target for goto so it's quite hard for the compiler to infer this (or is it because its a different scope?). Either way, definitely avoidable. Looks typical of a merge cock up to me as the indentation is preserved suggesting it's a duplicate line or there was an if statement on the previous line that was removed.

Looks to me like Apple aren't running Code-Coverage tests on their OS. That's kind of very scary.
Post reply on HN