Skip to main content
  1. Home
  2. Tablets
  3. Computing
  4. Mobile
  5. Smart Home
  6. Web
  7. News

New JavaScript attack infects your phone and changes your router's DNS settings

Add as a preferred source on Google

Security firm Trend Micro has discovered an attack on home routers that involves malicious JavaScript, a mobile website, and a mobile device such as a smartphone. This attack has been taking place since December 2015, and so far focuses on Taiwan, Japan, and China. However, the United States is fourth on the attack list, so be prepared.

According to the report, a compromised mobile website can contain JavaScript that downloads another JavaScript with DNS changing routines to the visiting mobile device. Although this JavaScript can also be downloaded on a computer, the infection depends on the user’s medium — for example, JS_JITONDNS only infects mobile devices and triggers the DNS changing routine, while the JITON infection is triggered only if the user has a ZTE modem.

Recommended Videos

An examination of the code reveals that hackers are targeting routers sold by well known manufacturers such as D-Link, TP-LINK, and ZTE. The report points out that TP-LINK currently owns 28 percent of the router market while D-Link is in the top 10 with a seven percent market share. Given D-Link is based out of Taiwan and TP-LINK is in China, Trend Micro isn’t surprised by the high number of attacks in those regions.

“Cybercriminals behind this incident employ [an] evasive mechanism to go off the radar and continue the attack without arousing any suspicion from affected users. Such tactics include regularly updating the JavaScript codes to fix errors and constantly changing targeted home routers,” the report states. “The compromised websites are difficult to pinpoint due to the lack of any suspicious behavior.”

The DNS settings of a router can be overwritten thanks to the JavaScript code containing more than 1,400 login combinations, including a list of common passwords. There is also code in the JavaScript that can overwrite DNS settings by exploiting a specific vulnerability that currently exists in ZTE-based routers. Ultimately, hackers can remotely send any arbitrary command with administrator privileges to the router when it has been compromised.

However, Trend Micro specifically points out that the DNS changes can only be made if the victim accesses a compromised website on their mobile device. To prevent hackers from gaining control of their routers, all consumers need to do is to keep their home networking router’s firmware up to date, and to avoid using the default ID and password provided with the device when it shipped (like “admin” and ‘password”).

“Often times, people overlook the importance of keeping the firmware updated,” the report adds. “Administrative devices especially in the age of IoT are vulnerable to attacks that may pose risks to both user privacy and security. It is best to know how these smart devices operate and what kind of personal identifiable information these devices may collect.”

The list of countries affected by this mobile attack also includes France, Canada, Australia, Korea, Hong Kong, and the Netherlands, as Trend Micro reveals in a chart.

Attacks on home routers aren’t anything new although this version seems to be surfing the mobile trend in an emerging Internet-of-Things (IoT) world. Hackers can do all sorts of things with compromised routers including establishing a botnet, and programming specific DNS settings that send clueless victims to malicious websites. Unfortunately, most smartphones and tablets aren’t protected like desktops, so this new mobile JavaScript-based hack is certainly alarming to say the least.

Kevin Parrish
Kevin started taking PCs apart in the 90s when Quake was on the way and his PC lacked the required components. Since then…
I dug these last-hour Prime Day smart home, laptop, and accessory deals that are irresistible
Deals up to 60% off, a few hours left, and no reason to wait any longer.
Electronics, Phone, Speaker

Amazon's Prime Day 2026 sale is in its final hours, giving you your last chance to get your hands on the best smart home, security, tablet, laptop, and accessory deals. I've pulled together the picks that are still live, still deeply discounted, and still worth buying before the sale ends tonight or until the stock lasts.

Best Amazon Prime Day deals on smart home devices

Read more
iPads just got a price hike, and this is your last chance to save a fortune on them with Prime Day deals
Apple raised iPad prices, but Amazon still has several models for much less
iPad Air 4 and iPad Mini 7.

Apple has raised prices across Macs and iPads as the ongoing memory and storage crunch continues to push up component costs. Several iPad models are now $100 to $200 more expensive than before. This makes the ongoing Amazon Prime Day deals one of the last easy ways to buy an iPad at a more reasonable price before higher official pricing becomes the new normal. We have listed all the ongoing iPad offers below, so check out these deals before the Prime Day sale ends on June 26.

iPad (A16, 128GB) jumped from $349 to $449, but Prime Day has it for $299

Read more
You don’t need to overpay for a premium Android tablet with this Galaxy Tab S11 deal
The Galaxy Tab S11 keeps the premium screen, slim design, and S Pen support without the full flagship sting.
Electronics, Mobile Phone, Phone

A lot of Prime Day tablet deals look better at first glance than they do at checkout. The Galaxy Tab S11 is more convincing because it’s a current Samsung flagship with the right mix of display quality, portability, and S Pen support for the money.

Samsung Galaxy Tab S11 128GB Wi-Fi: a flagship Android tablet at a saner Prime Day price

Read more