This Mac flaw lets hackers hijack your machine — update your old OS now

MacBook Pro 2021
(Image credit: Future)

Until recently, Apple’s TextEdit program, which comes built into macOS as the default text and document editor, had a very serious bug. It could have revealed your IP address and the contents of directories, and in conjunction with other exploits could even be used to run JavaScript to completely take over your Mac. 

The good news is that the flaw was patched by Apple with the release of macOS 10.15 Catalina in October 2019, but it does serve as an important reminder to update any Macs you have that are running older versions of MacOS. 

Why is this important now? Well, because it highlights an issue that people may not consider when opening text files. Because of the way that TextEdit handles text files, they can be made to be malicious in nature. 

In a recent blog post on the bug, which has been catalogued as CVE-2019-8761, security researcher Paulos Yibelo noted that Apple’s Gatekeeper did not flag the suspicious file, even if it was downloaded from the web. 

That's because most antivirus and security products, he explained, treat text files as harmless. They're supposed to be inert strings of characters that have no hidden attributes and cannot be executed as a program.

The wonders of TextEdit

However, TextEdit isn't just a text editor. It can also open Rich Text Format files (TextEdit's preferred format), Word documents and HTML files (the basic building blocks of the web). 

So Yibelo wondered what would happen if he put HTML encoding in a text file and opened it with TextEdit. 

Lo and behold, opening the HTML-containing text file in TextEdit was sufficient to execute basic HTML and CSS features and call local resources, but not reach out to online services. 

Reaching out to the internet

However, from there Yibelo discovered that by calling a function named AutoFS, which sends a request to mount external drives, it was possible to send a drive-mounting request to a server on the internet. 

Doing that would then reveal your Mac's IP address to the owner of the domain called. And that in turn would give them a pretty good idea of your location. The user of the Mac would not see any indication on the open TextEdit window that anything was going on behind the scenes.

Yibelo found that text files could be engineered to list the contents of directories on the user's Mac, including password directories. That in itself is harmless, but Yibelo said it would be possible to abuse the HTML format so that the text file could send those details to a remote server.

Chain of destruction

Yibelo told Vice Motherboard that if he were to chain the TextEdit exploit with another exploit, the two exploits together might be able to do much more damage to a Mac's security.

For example, his flaw combined with CVE-2017-2361, a flaw in the way Safari opens local Help files, would have permitted the text file to execute JavaScript and hence do anything it wanted.

"And that's basically gameover I believe!" Yibelo told Vice Motherboard.

That Safari flaw was patched by Apple in early 2017, but similar exploits might still be possible.

How to protect yourself

You haven't heard of this bug before because Yibelo privately disclosed it to Apple in 2019. It was quietly patched by Apple with the release of macOS 10.15 Catalina and the concurrent security updates to 10.14 Mojave and 10.13 High Sierra. 

Apple investigates any claims before releasing information on them or confirming them. As you can see from the security update Apple published after the fact, it does indeed contain a reference to this vulnerability. (Just search the page for "Yibelo.")

While you are very unlikely to be materially affected by this flaw now, it’s worth bearing it in mind when you interact with seemingly harmless files online. 

If you have any Macs running versions of MacOS before Catalina, then it would be worth updating or confirming a separate patch has been applied if you can't use a more modern version of MacOS. 

It is worth remembering that older versions of MacOS are particularly common with businesses that rely on older software that’s not compatible with later versions of the OS. So diligent employees should continue to be wary of random text files which are emailed to you, as they could also be carriers for such attacks. 

TOPICS

Ian has been involved in technology journalism since 2007, originally writing about AV hardware back when LCDs and plasma TVs were just gaining popularity. Nearly 15 years on, he remains as excited as ever about how tech can make your life better. Ian is the editor of T3.com but has also regularly contributed to Tom's Guide.

Read more
MacBook Pro 16-inch 2021 sitting on a patio table
Critical macOS flaw puts your data and cameras at risk — update right now
iPhone 16 Pro shown held in hand
Apple just patched its first zero-day flaw of the year — update your iPhone and Mac right now
A padlock resting next to the Apple logo on the lid of a gold-colored Apple laptop.
Mac and iPhone users beware — Apple processors can be exploited to steal sensitive information
MacBook Pro 2021 (16-inch) on a patio table
Macs under attack from dangerous malware targeting digital wallets and Apple’s Notes app — how to stay safe
Apple iPhone 16 Plus Review.
Apple just released an emergency security update for a flaw used in an ‘extremely sophisticated attack’ — update your devices right now
Malware
New macOS malware uses Apple's own code to quietly steal credentials and personal data — how to stay safe
Latest in Online Security
23andME box
23andMe has declared bankruptcy — here's how to delete your data now
A magnifying glass on top of the Steam logo in a web browser
Valve just pulled a malicious game demo spreading info-stealing malware from Steam
A man filing his taxes electronically on a laptop
AI-powered tax scams are here - how to stay safe from deepfakes, phishing and more this tax season
MacBook Pro 2023
New Mac attack is tricking users into thinking their computer is locked — how to stay safe
Hacker using a stolen social security card
Your Social Security number is a literal gold mine for scammers and identity thieves — here’s how to keep it safe
An open lock depicting a data breach
Half a million teachers hit in major data breach with SSNs, financial data and more exposed — what to do now
Latest in News
Surface Laptop 7 from the front
Amazon just gave Surface Laptop 7 a 'frequently returned' label — here's what's going on
New emojis with iOS 18.4 beta release.
iOS 18.4 beta brings 8 new emoji to your iPhone — here's all the new options
23andME box
23andMe has declared bankruptcy — here's how to delete your data now
half-life alyx
Latest Half-Life 3 rumors point to a 2025 release — and maybe pigs will fly
NFL Sunday Ticket logo for YouTube
NFL Sunday Ticket 2025 pricing revealed — and it's bad news
Ben Mendelsohn in Andor season 2
'Welcome to the Rebellion' — new ‘Andor’ season 2 trailer teases a darker edge