Don't Let This Attack Freeze Your Mac or iPhone

Just over a month after researchers demonstrated that hackers can hijack mouse clicks on a Mac, a new report indicates that specially crafted web pages can freeze or crash Macs and iPhones.

Credit: Tom's Guide

(Image credit: Tom's Guide)

Security researcher Sabri Haddouche has created HTML and CSS code that, when hosted by a web page, attacks visitors' devices. His tweet contains a link to such web page, which you can click if you want to try it for yourself (but don't say we didn't warn you).

"The attack uses a weakness in the -webkit-backdrop-filter CSS property," Haddouche told BleepingComputer. "By using nested divs with that property, we can quickly consume all graphic resources and crash or freeze the OS."

In other words, while the code is just 15 lines long, it contains a massive amount of <div> tags, which consume all of your device's graphic resources, causing it to freeze or restart.

Bleeping Computer made its own video illustrating the attack on an iPhone:

Haddouche went on to note that the attack affects all browsers on iOS, as well as Safari and Mail in macOS.

"All browsers on iOS are affected because the underlying rendering engine is WebKit,"  Haddouche explained.

Visiting the webpage on a Mac will cause Mail and Safari to freeze for a second, and the computer running them to slow down. (Once you've closed the Safari tab running the code, the computer returns to normal).

It caused a device running iOS 12 to reboot completely, but caused an iOS 11.4.1 device to only respring (boot the user to the lock screen). According to Twitter user Robert Petersen, the web page causes an Apple Watch running watchOS 5 to freeze and reboot as well.

Haddouche claims he has also created an attack using HTML, CSS and JavaScript that will totally freeze macOS computers, and cause them to re-launch the same malicious webpage upon rebooting, in effect putting them into a temporary boot loop.

MORE: How to Encrypt Files on Windows

Many Mac users still assume Macs aren't vulnerable to malware and adware, but the truth is that the past two years have seen more Mac vulnerabilities than ever before.

Just a few weeks ago, North Korean state-sponsored hackers used Mac malware to successfully hack a cryptocurrency exchange platform. And back in January, a researcher discovered a piece of macOS malware that reroutes your traffic to malicious websites, and could also be used to steal passwords, take screenshots, download files, run software and more.

Unfortunately, there isn't much you can do to prevent these attacks. We'll just have to wait for Apple to release a patch. In the meantime, take extra care not to click on links that you're not familiar with.

TOPICS

Monica Chin is a writer at The Verge, covering computers. Previously, she was a staff writer for Tom's Guide, where she wrote about everything from artificial intelligence to social media and the internet of things to. She had a particular focus on smart home, reviewing multiple devices. In her downtime, you can usually find her at poetry slams, attempting to exercise, or yelling at people on Twitter.

Latest in iPhones
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
An image of an iPhone screen showing the Safari app icon in the center
I got tired of Safari revealing my web searches in iOS 18.4 — this setting fixes that
iPhone Flip Concept
Foldable iPhone delays — there’s a bigger problem going on at Apple
iPhone 17 Air render
iPhone 17 Air — new survey could be bad news for Apple's super thin iPhone
Render of the alleged design of the iPhone 17 Pro
New iPhone 17 Pro dummy leak highlights redesigned camera and part glass body
Siri in iOS 18 on iPhone
Users complain that Siri can’t answer even the most basic questions — here’s what we know
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