Lucian Constantin
CSO Senior Writer

Second HTTPS snooping flaw breaks security for thousands of iOS apps

News
Apr 27, 20152 mins

Attackers can potentially snoop on the encrypted traffic of over 25,000 iOS applications due to a vulnerability in a popular open-source networking library.

The vulnerability stems from a failure to validate the domain names of digital certificates in AFNetworking, a library used by a large number of iOS and Mac OS X app developers to implement Web communications—including those over HTTPS (HTTP with SSL/TLS encryption).

The flaw allows attackers in a position to intercept HTTPS traffic between a vulnerable application and a Web service to decrypt it by presenting the application with a digital certificate for a different domain name. Such man-in-the-middle attacks can be launched over insecure wireless networks, by hacking into routers or through other methods.

According to a company called SourceDNA, which tracks the use of third-party components in mobile apps, more than 25,000 iOS applications are potentially vulnerable because they use AFNetworking 2.5.2 or older versions.

The vulnerability was fixed in AFNetworking 2.5.3, released on April 20.

Applications that have certificate pinning turned on are not vulnerable, but this mechanism is only used by a small number of developers, SourceDNA said Friday in a blog post.

One interesting aspect of this flaw is that it was reported to the AFNetworking developers on March 27, one day after a different flaw that allowed HTTPS snooping was addressed in AFNetworking 2.5.2.

That vulnerability only existed in AFNetworking 2.5.1, released on Feb. 9, and it ended up affecting 1,000 of the over 100,000 iOS apps that use AFNetworking. The new flaw renders apps that use older versions of the library vulnerable as well, as long as they rely on AFNetworking for establishing HTTPS connections to Web servers.

SourceDNA set up an online service called Searchlight that can be used by users to manually check if the iOS apps installed on their devices are vulnerable. The service shows that apps from large developers like Microsoft, Yahoo and Google are potentially affected by the AFNetworking flaws.

Lucian Constantin

Lucian Constantin writes about information security, privacy, and data protection for CSO. Before joining CSO in 2019, Lucian was a freelance writer for VICE Motherboard, Security Boulevard, Forbes, and The New Stack. Earlier in his career, he was an information security correspondent for the IDG News Service and Information security news editor for Softpedia.

Before he became a journalist, Lucian worked as a system and network administrator. He enjoys attending security conferences and delving into interesting research papers. He lives and works in Romania.

You can reach him at lucian_constantin@foundryco.com or @lconstantin on X. For encrypted email, his PGP key's fingerprint is: 7A66 4901 5CDA 844E 8C6D 04D5 2BB4 6332 FC52 6D42

More from this author