Pharming attacks exploit default passwords to hack routers

Experts at Proofpoint uncovered a pharming attack that uses phishing to exploit router vulnerabilities and carry out malicious activities.

Security firm Proofpoint revealed that its experts recently detected a spam campaign targeting organizations and primarily Brazilian Internet users. The spam campaign implements a very effective technique to spy on a victim’s Web traffic. The particularity of this attack resides in the kill chain that started with malicious emails, as explained by experts at Proofpoint.

The attackers exploited security vulnerabilities affecting home routers to gain access to the administrator console, once obtained the access to the control panel the hackers changed run a pharming attack by changing the DNS settings of the devices. Pharming attacks on a large scale could be run by replacing DNS servers used by the ISPs, so hacking the providers DNS, or acting on the client side by manipulating the setting of routers.

“Proofpoint recently detected an update to a focused phishing campaign that represents a modern twist on this practice. Like the farming practice of using fish remains as fertilizer, modern attackers are using phishing emails to improve the yields of their pharming campaigns. This case is striking for several reasons, not the least of which is the introduction of phishing as the attack vector to carry out a compromise traditionally considered purely network-based.” states the blog post published by Proofpoint.

By running a pharming attack, threat actors can hijack victim’s traffic redirecting users to malicious website and could be also used to run man-in-the-middle attacks to steal sensitive data (i.e user credentials, email) or hijacking search results.

The researchers at Proofpoint detected about 100 phishing emails sent mostly to Brazilians who used either UTStarcom or TR-Link home routers. The emails were crafted to appear as legitimate messages from the Brazil’s largest telecommunications company.

The malicious emails used in the spam campaign contain links used by crooks to direct the victim to a server they control that is used to exploit cross-site request forgery (CSRF) vulnerabilities in the routers.

In order to access the administration panel of the routers, the attackers try default login credentials for the targeted device, a technique that resulted effective in many cases because user hadn’t changed factory settings.

“When clicked, the links in the phishing email direct victims to a web page that uses malicious iframes to exploit CSRF vulnerabilities in the targeted routers. The iframe code brute forces the administrator page login for the router with multiple HTTP requests, as seen below:”

Looking more closely at the HTTP requests embedded in the iframe, we see each pass the default administrator username and password for the router to the default IP address for the router’s administration page, with a string to set the IP address of the attacker’s malicious DNS as the Primary, and a well-known public DNS as the Secondary. The syntax of the request is:

<username>:<password>@<homerouterIP>/dnscfg.cgi?dnsPrimary=<attackerDNS>&dnsSecondary=8.8.8.8

A way to avoid this pharming attacks is to change default settings of the routers, another possibility if to fix the CSRF flaws exploited by attackers, but in this second case home users depend on the router manufacturer and the availability of a firmware update that fix this issue.

Let me close providing you the IOCs detected in this campaign:

  • 217.172.179.143
  • 46.148.25.196
  • 07.167.184.141
  • 9.64.36.205
  • 86.202.164.88
  • 09.239.112.63

Pierluigi Paganini

(Security Affairs –  pharming, cybercrime)

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

ConnectWise suffered a cyberattack carried out by a sophisticated nation state actor<gwmw style="display:none;"></gwmw><gwmw style="display:none;"></gwmw>

ConnectWise detected suspicious activity linked to a nation-state actor, impacting a small number of its…

39 minutes ago

Victoria’s Secret ‘s website offline following a cyberattack

Victoria’s Secret took its website offline after a cyberattack, with experts warning of rising threats…

18 hours ago

China-linked APT41 used Google Calendar as C2 to control its TOUGHPROGRESS malware

Google says China-linked group APT41 controlled malware via Google Calendar to target governments through a…

21 hours ago

New AyySSHush botnet compromised over 9,000 ASUS routers, adding a persistent SSH backdoor.

GreyNoise researchers warn of a new AyySSHush botnet compromised over 9,000 ASUS routers, adding a…

1 day ago

Czech Republic accuses China’s APT31 of a cyberattack on its Foreign Ministry

The Czech government condemned China after linking cyber espionage group APT31 to a cyberattack on…

2 days ago

New PumaBot targets Linux IoT surveillance devices

PumaBot targets Linux IoT devices, using SSH brute-force attacks to steal credentials, spread malware, and…

2 days ago