Live data from Hacker News

Major new iOS bug can crash iPhones and disable access to apps and iMessages

theverge.com

21–30 of 122 posts

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#21

This isn't the first time a weird sequence of Unicode characters has caused the text renderer to crash and create problems for iOS users. This is why we shouldn't be writing new code in C.

More like "this is why we should use LLVM's libFuzzer or similar". Apple is just not doing basic code hygiene stuff here.

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#22
post #2

What Apple, and Microsoft before them, are discovering is the tools and processes we use to create software simply doesn't scale. We're simply reaching the limits of what these giant software teams are able to produce and keep running. We can discuss solutions, but currently not everybody even agrees we have a problem. That's the first step we need to take.

[deleted]

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#23

I've never done any fuzzing personally, but wouldn't this be discoverable internally during testing? I would think that they would attempt sending all possible characters, especially because they've had issues with this in the past.

it looks like the single character was made up of 4 utf8 code points. so might have been trickier to detect from fuzzing than it looks.

Don't knock instrumentation-based fuzzing when it comes to discovering complex edgecases and code paths.

I've used AFL [1] to generate semantically valid, crashing multi-statement SQL queries when given ~50 CPU days and a simplistic SQL-like database. All from thin air, with an empty text file as the initial testcase. It can also come up with valid JPEGs [2] given enough time.

[1] - http://lcamtuf.coredump.cx/afl/

[2] - https://lcamtuf.blogspot.ie/2014/11/pulling-jpegs-out-of-thi...

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#24
post #8
post #2

What Apple, and Microsoft before them, are discovering is the tools and processes we use to create software simply doesn't scale. We're simply reaching the limits of what these giant software teams are able to produce and keep running. We can discuss solutions, but currently not everybody even agrees we have a problem. That's the first step we need to take.

I disagree that this is the product of scale. Looking at some of the bugs coming out of Apple lately and how they respond to them (assuming it's really a trend and not just a run of bad luck) it feels like they're slipping into a culture where individual feature teams are making emotional or schedule-based decisions about security without central guidance. A good example is the recent bug on MacOS where a low-privile…

Some bugs are so bad it begs the question if they even test at all, such as the iMessage Apps store favorites bug a few iOS releases ago.

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#25

This isn't the first time a weird sequence of Unicode characters has caused the text renderer to crash and create problems for iOS users. This is why we shouldn't be writing new code in C.

I checked the character, it is anything but weird. It is a valid character in a language used by millions of people. For those curious: It is a Telugu character; Telugu is one of several widely spoken languages in India.

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#26
post #21

This isn't the first time a weird sequence of Unicode characters has caused the text renderer to crash and create problems for iOS users. This is why we shouldn't be writing new code in C.

More like "this is why we should use LLVM's libFuzzer or similar". Apple is just not doing basic code hygiene stuff here.

Fuzzing finds bugs, using a safe language precludes them.

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#27

Here's a link to the character if someone wants to test it themselves https://pastebin.com/9Tr8ytTr

Wow, that even crashes Safari on my Mac.

And if it get's in your history, it'll crash every time the character shows up again. I ended up having to delete the entry manually:

  $ sqlite3 ~/Library/Safari/History.db
  SQLite version 3.19.3 2017-06-27 16:40:08
  Enter ".help" for usage hints.
  sqlite> delete from history_items where url = "https://pastebin.com/9Tr8ytTr";

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#28

I've never done any fuzzing personally, but wouldn't this be discoverable internally during testing? I would think that they would attempt sending all possible characters, especially because they've had issues with this in the past.

I would hope that after all the character-crashing-everything bugs that have hit iOS there is a team dedicated to replacing the text rendering code with something more fault tolerant.

In chrome I can see the character for a while before it crashes. That leads me to believe that the actual crash is not in the text rendering code but in some component above that receives some garbage at some point.

Re: Major new iOS bug can crash iPhones and disable access to apps and iMessages

#29

Here's a link to the character if someone wants to test it themselves https://pastebin.com/9Tr8ytTr

It doesn’t crash SublimeText and LibreOffice under macOS but seemingly all the other applications (Browsers, Terminal, TextEdit, …)
Post reply on HN