TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

iMessage: Malformed Message Bricks iPhone

652 pointsby appwizalmost 6 years ago

24 comments

rixraxalmost 6 years ago
This brings back old memories from hardening the sms&#x2F;text parsers of feature phones of yesteryear.<p>There it wasn’t entirely uncommon that when you sent a malformed sms-deliver PDU (e.g. text message) to the phone and crashed parser that tried to decode it, it took also the phone down before it could ack the message back to SMSC. Which of course meant that as soon as phone was turned on and it registered to network, that same message was redelivered (crashing it again) for as far as the network was concerned, it was never received by the mobile. Until the time that message either expired in the SMSC in few days, or you switched you sim to a non-vulnerable mobile to receive the message. Good times.
评论 #20381706 未加载
评论 #20381258 未加载
评论 #20385811 未加载
评论 #20382402 未加载
评论 #20382076 未加载
评论 #20382480 未加载
arkadiytalmost 6 years ago
This is fixed in iOS 12.3 [1] and macOS 10.14.5 [2], both released on May 13th. As Natalie noted on the ticket, turning off iMessage will also prevent the bug.<p>[1]: <a href="https:&#x2F;&#x2F;support.apple.com&#x2F;en-us&#x2F;HT210118" rel="nofollow">https:&#x2F;&#x2F;support.apple.com&#x2F;en-us&#x2F;HT210118</a><p>[2]: <a href="https:&#x2F;&#x2F;support.apple.com&#x2F;en-us&#x2F;HT210119" rel="nofollow">https:&#x2F;&#x2F;support.apple.com&#x2F;en-us&#x2F;HT210119</a>
评论 #20381349 未加载
评论 #20379970 未加载
ValentineCalmost 6 years ago
For those with jailbroken iPhones, a community member has released the tweak BrickFix: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;jailbreak&#x2F;comments&#x2F;c9616j&#x2F;release_brickfix_fix_for_imessage_bug_that_can&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;jailbreak&#x2F;comments&#x2F;c9616j&#x2F;release_b...</a>
评论 #20380948 未加载
romaaeternaalmost 6 years ago
Speaking as an ex-Apple employee, I&#x27;ll just point out that a really malicious actor could have used this to harm some significant percentage of the installed iOS infrastructure, and done critical damage to Apple as a company with it. In fact, I don&#x27;t know the percentage of users still on &lt;12.3, but maybe they still could. A band-aid fix for this one bug should not be where they stop here.
评论 #20383594 未加载
评论 #20388136 未加载
评论 #20383418 未加载
评论 #20383944 未加载
tjmcalmost 6 years ago
What about older 32 bit iOS devices that can&#x27;t be updated past iOS 10? Will they issue an update for them or do you just have to turn off iMessage? Still have a perfectly functional Series 4 iPad
评论 #20380841 未加载
评论 #20381270 未加载
评论 #20381397 未加载
microcolonelalmost 6 years ago
The degree of coupling in iOS has always puzzled me. In 2016 I was developing a WebGL program and I stumbled upon shaders which would cause iOS to reboot, on more than one occasion.
评论 #20382420 未加载
iscrewyoualmost 6 years ago
Wow, you could actually lose the data with this bug. Glad it was fixed in 12.3. I remember the last time something like this happened (4-5 years ago?) it would only crash the phone.
评论 #20379791 未加载
评论 #20379852 未加载
zedgermanalmost 6 years ago
Genuinely curious: What’s the reasoning behind “unrestricting” this ahead of its 90 day window? (It’s tagged Deadline-90, Reported-2019-Apr-18 On Project Zero, so that’s July 18th?)
评论 #20380030 未加载
评论 #20380047 未加载
评论 #20384768 未加载
ptlualmost 6 years ago
As an FYI:<p>&gt; Unrestricting, as this was fixed in the 12.3 update.
kitotikalmost 6 years ago
Apparently patched in iOS 12.3, but that’s a pretty gnarly bug.
cellularalmost 6 years ago
I see a free data hack: Load a version of iMessage that never acknowledges the message, but saves the data (and doesn&#x27;t brick the phone). Send lots of data, acknowledge via other means (checksum sent over email etc). How much data could be sent this way? GBs?
评论 #20382852 未加载
评论 #20382731 未加载
hendersoonalmost 6 years ago
It can be recovered so it&#x27;s not actually a bricking, but this is very bad. If you aren&#x27;t running 12.3 or later this will force you to turn iMessage off.
sjg007almost 6 years ago
I found google sheets in safari will shutdown a Mac with certain special chars in it.
评论 #20382859 未加载
Razenganalmost 6 years ago
Can this be avoided by disabling iMessage notifications?<p>&gt; <i>The calling method then calls -[IMBalloonPluginDataSource _replaceHandleWithContactNameInString:] which calls im_handleIdentifiers on the &#x27;NSString&#x27; which is really an NSNumber, which throws an exception as the selector does not exist in that class.</i><p>Looks like they need to move more of their stuff to Swift to reduce snarfles like this.<p>Stories like these (this isn&#x27;t the first time that iOS&#x2F;macOS could be crashed by chat messages), and the empty root password debacle, or all the GateKeeper bypasses, make me wonder if their engineers take their own WWDC security-related talks seriously.<p>Still, it&#x27;s not so bad as the Windows XP-7 epoch, when eldritch nightmares walked the land.
评论 #20380577 未加载
评论 #20380687 未加载
tardismechanicalmost 6 years ago
Comment 5 by a...@gmail.com on Thu, Jul 4, 2019, 5:33 PM PDT (3 days ago) I really hope that no one big covers this, because if they do... oh boy<p>Comment 6 by p...@gmail.com on Fri, Jul 5, 2019, 3:27 AM PDT (3 days ago) Too late, already out in big news website...
Wowfunhappyalmost 6 years ago
Stupid question: How is the example python program actually sending an iMessage? Since Apple generally has the system locked down.
评论 #20385025 未加载
评论 #20383375 未加载
ncr100almost 6 years ago
Could a UI input fuzzer have caught this?
JustSomeNobodyalmost 6 years ago
Yet another wrong use of the word bricked. Bricked means bricked and you can’t ever come back from that.
评论 #20382052 未加载
评论 #20382007 未加载
评论 #20388177 未加载
HeWhoLurksLatealmost 6 years ago
<p><pre><code> bplist00ÔX$versionX$objectsY$archiverT$top † ¦U$nullÓ WNS.keysZNS.objectsV$class¢ €€¢€€€RanVldtext¢ËqÒZ$classnameX$classes\NSDictionary¢XNSObject_NSKeyedArchiverÑTroot€#-27&gt;DKS^ehjloqsux„‰”ª­¶ÈËÐ  Ò</code></pre>
评论 #20382957 未加载
wingerlangalmost 6 years ago
Since a restore works it cannot be called a brick though?
评论 #20379865 未加载
评论 #20379837 未加载
评论 #20381088 未加载
评论 #20380147 未加载
评论 #20382016 未加载
评论 #20380822 未加载
评论 #20380292 未加载
rubrick85almost 6 years ago
Another one :D
userbinatoralmost 6 years ago
Looks like the &quot;curse of complexity&quot; strikes again... every time I see bugs like this, I wonder if it&#x27;s because of some code that tries to be a little &quot;too smart&quot; in trying to parse what could be arbitrary data, and forgetting some edge-case.<p>(If you have JS disabled, you can click &quot;View in Old UI&quot; and then view source to see the content. I find that a bit ironic in the context of this specfic bug...)
评论 #20379824 未加载
mholtalmost 6 years ago
With ALL their infinite resources, how are Apple&#x27;s bugs SO BAD.<p>Like, repeatedly.<p>goto fail, Facetime surveillance, empty password grants root access, and now this.<p>As much as Apple touts privacy and security, this is not a great track record.<p>The more resources a company has, the less forgivable serious bugs like this are.<p>I need to keep reminding myself: Apple is a hardware company, not a software company.
评论 #20380237 未加载
EugeneOZalmost 6 years ago
Lazy developers throw exceptions, good developers return errors. Exceptions should be exceptional.<p>I&#x27;ll use URL to this bug in my next comment-holywars to prove this point.<p>Yes, it takes much less code to throw an exception in hope some code will catch it, but while compiler (not runtime) doesn&#x27;t check it - this technique is not safe. So we should return errors, check them and handle - sometimes it means returning error further, but in some function we&#x27;ll write code to handle this case without crashing the system (or, at least, it will shutdown everything gently, without panicking).
评论 #20380249 未加载
评论 #20380454 未加载
评论 #20380253 未加载
评论 #20383793 未加载
评论 #20380302 未加载