How a Tiny JavaScript Snippet Can Crash Major Browsers and Reboot iPhones

A JavaScript snippet shared on Twitter claims to crash Firefox, Chrome, and Safari browsers and even force an iPhone to restart, prompting security researchers to examine its behavior, potential as a 0‑day exploit, and possible misuse in attacks.

ITPUB
ITPUB
ITPUB
How a Tiny JavaScript Snippet Can Crash Major Browsers and Reboot iPhones

Background

While scrolling Twitter, a user discovered a tweet from CyberSecurity@cyber__sec that advertised a JavaScript snippet capable of crashing Firefox, Chrome, and Safari browsers and also rebooting an iPhone.

Exploit Details

The tweet provides a link containing the malicious script. The accompanying Chinese comment explains that the code can crash the browsers and restart the iPhone.

Example code (comment only):

//使用下面这段JavaScript代码能让firefox,chrome,safari浏览器崩溃,而且还能让iPhone重启。

Observed Behavior

On desktop systems, opening the link can cause CPU and memory usage to spike dramatically, leading to the browser freezing or crashing. On mobile devices (Android and iPhone), the browser quits instantly; the same effect occurs when the link is opened from Weibo or WeChat.

One user reported that on an iPhone using Safari the device logged out and rebooted after opening the link, though this behavior was not consistently reproducible.

Discussion

Commenters debate whether the phenomenon is a bug or a genuine 0‑day vulnerability and discuss possible misuse, such as injecting the script during a man‑in‑the‑middle (MITM) attack for prank or sabotage purposes.

Community reactions range from amusement (“JS is the best language”) to concern about the script’s impact on browser history, performance, and the potential for widespread disruption.

Illustrative Images

Screenshot of the exploit tweet
Screenshot of the exploit tweet
Screenshot of the malicious link
Screenshot of the malicious link
Demo screenshot with warning to save work
Demo screenshot with warning to save work
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaScriptiPhoneinformation security0daybrowser exploit
ITPUB
Written by

ITPUB

Official ITPUB account sharing technical insights, community news, and exciting events.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.