---
url: 'https://www.proofpoint.com/us/threat-insight/post/Phish-Pharm'
title: 'Phish Pharming Attack - Attackers Exploit Routers | Proofpoint US'
date: '2015-02-26T14:00:00+00:00'
updated: '2021-10-25T16:17:08+00:00'
type: blog_post
summary: 'Proofpoint detected an update to a pharming attack where cybercriminals are using man-in-the-middle pharming phishing tactics. Learn how to protect against the threat.'
tags:
  - 'Threat Insight'
  - 'Proofpoint Staff'
image: 'https://www.proofpoint.com/sites/default/files/styles/metatag/public/images/Blog/router.jpg?itok=boA9AsUA'
published: true
og:
  site_name: Proofpoint
  'image:url': 'https://www.proofpoint.com/sites/default/files/styles/metatag/public/images/Blog/router.jpg?itok=boA9AsUA'
  'image:secure_url': 'https://www.proofpoint.com/sites/default/files/styles/metatag/public/images/Blog/router.jpg?itok=boA9AsUA'
json_ld:
  '@context': 'https://schema.org'
  '@graph':
    -
      '@id': 'https://www.proofpoint.com/#organization'
      '@type': Organization
      name: Proofpoint
      url: 'https://www.proofpoint.com/us'
      description: 'Proofpoint is a cybersecurity company that helps organizations protect people and defend data from advanced threats, human risk, and data loss.'
      logo:
        '@type': ImageObject
        url: 'https://www.proofpoint.com/sites/default/files/logos/proofpoint-logo-color.svg'
      alternateName:
        - 'Proofpoint, Inc.'
      sameAs:
        - 'http://www.facebook.com/proofpoint'
        - 'https://x.com/proofpoint'
        - 'https://www.linkedin.com/company/proofpoint'
      address:
        '@type': PostalAddress
        streetAddress: '925 West Maude Avenue'
        addressLocality: Sunnyvale
        addressRegion: California
        postalCode: '94085'
        addressCountry: 'United States'
      contactPoint:
        '@type': ContactPoint
        telephone: +1-408-517-4710
        contactType: Sales
    -
      '@id': 'https://www.proofpoint.com/us/#website'
      '@type': WebSite
      name: 'Proofpoint US'
      url: 'https://www.proofpoint.com/us'
      publisher:
        '@id': 'https://www.proofpoint.com/#organization'
    -
      '@id': 'https://www.proofpoint.com/us/threat-insight/post/Phish-Pharm#webpage'
      '@type': WebPage
      url: 'https://www.proofpoint.com/us/threat-insight/post/Phish-Pharm'
      name: 'Phish pharming attack: Cybercriminals use phishing to exploit router vulnerabilities and carry out man-in-the-middle attacks'
      isPartOf:
        '@id': 'https://www.proofpoint.com/us/#website'
      publisher:
        '@id': 'https://www.proofpoint.com/#organization'
      description: 'Proofpoint detected an update to a pharming attack where cybercriminals are using man-in-the-middle pharming phishing tactics. Learn how to protect against the threat.'
      mainEntity:
        '@id': 'https://www.proofpoint.com/us/threat-insight/post/Phish-Pharm#blogposting'
    -
      '@type': BlogPosting
      '@id': 'https://www.proofpoint.com/us/threat-insight/post/Phish-Pharm#blogposting'
      url: 'https://www.proofpoint.com/us/threat-insight/post/Phish-Pharm'
      mainEntityOfPage:
        '@id': 'https://www.proofpoint.com/us/threat-insight/post/Phish-Pharm#webpage'
      publisher:
        '@id': 'https://www.proofpoint.com/#organization'
      headline: 'Phish pharming attack: Cybercriminals use phishing to exploit router vulnerabilities and carry out man-in-the-middle attacks'
      description: 'Proofpoint detected an update to a pharming attack where cybercriminals are using man-in-the-middle pharming phishing tactics. Learn how to protect against the threat.'
      datePublished: '2015-02-26T14:00:00Z'
      dateModified: '2021-10-25T16:17:08Z'
      author:
        -
          '@type': Person
          '@id': 'https://www.proofpoint.com/us/blog-authors/proofpoint-staff#person'
          name: 'Proofpoint Staff'
          worksFor:
            '@id': 'https://www.proofpoint.com/#organization'
      image:
        -
          '@type': ImageObject
          url: 'https://www.proofpoint.com/sites/default/files/images/Blog/router.jpg'
---

# Phish pharming attack: Cybercriminals use phishing to exploit router vulnerabilities and carry out man-in-the-middle attacks

Every crop and garden requires preparation and tending. Cybercriminals, too, cultivate their resources – from botnets and exploit kits to SOCKS networks and poisoned DNS servers – to harvest valuable data from victims worldwide. The technique known as [pharming](http://www.trusteer.com/support/pharming) makes this analogy clear: attackers use poisoned DNS servers to redirect address requests, usually for online banking sites, to a realistic but completely fraudulent site in order to harvest the online banking credentials of the unsuspecting end-user. A pharming attack is generally a passive attack technique, in that it requires waiting for a DNS lookup from a potential victim to be routed to the poisoned server.

Proofpoint recently detected an [update to a focused phishing campaign](https://securelist.com/blog/incidents/66358/web-based-attack-targeting-home-routers-the-brazilian-way/) that represents a modern twist on this man-in-the-middle phishing practice. Like the [farming practice of using fish remains as fertilizer](https://joansbolton.wordpress.com/2012/03/27/fish-tales-in-the-garden/), 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.

### Attack Analysis

Over the course of four weeks, from December 2014 to mid-January 2015, Proofpoint researchers detected four distinct URLs distributed in a relatively narrow phish pharm campaign of less than 100 email messages sent to a small number of organizations, and targeting primarily Brazilian users.

Analysis of the messages and links suggested that the pharming phishing attacks were aimed at customers who owned the following home routers:

- [UTStarcom](http://en.wikipedia.org/wiki/UTStarcom)
- [TP-Link](http://en.wikipedia.org/wiki/TP-Link)

The malicious URLs were found in emails like the one below:

The email message shown above pretends to be from Brazil’s largest telecommunications company. In a clever twist, the attackers use the telco’s name as the lure in a phishing email intended to hack that same telco’s router equipment.

The URLs link to web pages designed to exploit [cross-site request forgery](http://en.wikipedia.org/wiki/Cross-site_request_forgery) (CSRF) attacks on [known vulnerabilities](http://packetstormsecurity.com/files/128343/TP-LINK-WDR4300-XSS-Denial-Of-Service.html) in the targeted routers. The pages attempt to call a variety of default or common IP addresses for home network routers (for example, 192.168.1.1), as well as [known default passwords for these devices](http://www.routerpasswords.com/).

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
```

Setting a functioning DNS server as the Secondary will allow DNS requests from clients in this network to resolve even if the malicious DNS becomes unavailable, reducing the chance that the user will notice an issue and contact their telecom’s Customer Support line for assistance, which could lead to the discovery and eventual removal of the compromise.

In short, if the [phishing email](https://www.proofpoint.com/us/threat-reference/phishing) recipient clicks the link and the vulnerability is successfully exploited, any computer behind the hacked router (that is, anyone connecting wired or wirelessly to that router) would potentially have their computer query a malicious DNS server to lookup any hostname on the Internet. Essentially a variation on pharming but with the advantage that the attacker does not have to compromise a public DNS, this technique allows the attacker to potentially perform man-in-the-middle phishing attacks on any Internet service as [was described as theoretically possible in January 2015](http://securityaffairs.co/wordpress/32857/hacking/dns-hijacking-d-link-dsl-router.html). Specifically, this could be used to intercept and tamper with email communications, web sites, logins and passwords and other confidential or sensitive information, software downloads, hijack search results, redirect to a TDS and malware, and other malicious actions.

### Teach a pharmer to phish…

Home router security has received a lot of attention in the security press lately, from the [Misfortune Cookie / RomPager](http://mis.fortunecook.ie/) vulnerability of late 2014 that affected as many as [12 million devices](http://arstechnica.com/security/2014/12/12-million-home-and-business-routers-vulnerable-to-critical-hijacking-hack/) around the world, to the [Lizard Stresser DDoS tool](http://krebsonsecurity.com/2015/01/lizard-stresser-runs-on-hacked-home-routers/) that runs on hacked home routers, including several [reports of DNS reconfiguration](http://www.pcworld.com/article/2104380/attack-campaign-compromises-300000-home-routers-alters-dns-settings.html) in early 2014. The ubiquity and widespread vulnerability of home routers make them a tempting target for attackers, especially those who are seeking a more efficient and cost-effective way to carry out pharming attacks and capture online banking credentials. Routers distributed to home customers by telecoms providers are often particularly attractive targets because [tens of thousands of devices can share the same configuration](http://www.csoonline.com/article/2886236/network-security/tens-of-thousands-of-home-routers-at-risk-with-duplicate-ssh-keys.html), and even knowledgeable users may not be able to check and correct the issue on their home device. The limited size and geographic scope of this initial sample do not mean it will remain so: the history of [malware](https://www.proofpoint.com/us/threat-reference/malware) is the story of the spread of techniques from a local blip to global threat as attackers continually adopt new techniques that demonstrate their effectiveness against existing defenses. The fact that in this case the attackers chose email as their initial vector for attempting to compromising vulnerable routers – normally viewed as a network-based attack best defended by network IPS solutions – demonstrates both the continued evolution of attack techniques and the continued pre-eminence of email as the go-to attack vector for cybercriminals.

*IOCs detected in this campaign:*

217.172.179.143

146.148.25.196

107.167.184.141

69.64.36.205

186.202.164.88

209.239.112.63