Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Endpoint

11/17/2016
08:30 AM
Connect Directly
Twitter
LinkedIn
RSS
E-Mail
50%
50%

How To 'PoisonTap' A Locked Computer Using A $5 Raspberry Pi

White hat hacker Samy Kamkar has come up with a way of to hijack Internet traffics from a password-protected computer.

Serial white hat hacker Samy Kamkar has developed a new exploit for breaking into a locked computer and installing a persistent web-based backdoor on it for accessing the victim’s online accounts.

The exploit involves PoisonTap, a $5 Raspberry Pi Zero device, that can be plugged into the USB port of a locked or unlocked computer and used to hijack all Internet traffic from the machine.

An attacker with even momentary physical access to a computer can attach PoisonTap to it, siphon out HTTP sessions and cookies and expose the internal router so it can be controlled remotely.

Rather than a single vulnerability, PoisonTap takes advantage of the inherent trust that exists in various network and machine mechanisms, like DHCP, DNS, USB and HTTP. It produces what Kamkar described this week as a “snowball effect of information exfiltration, network access and installation of semi-permanent backdoors.”

When PoisonTap is inserted into a USB port it emulates an Ethernet device. By default, Windows and OS X automatically load it, typically as a low-priority device, and perform a DHCP request across the device regardless of whether the victim machine is locked or not.

PoisonTap takes advantage of this process to trick the victim machine into giving it higher priority than the WiFi or other gateway actually connecting the computer to the Internet.

“Normally it would be irrelevant if a secondary network device connects to a machine as it will be given lower priority than the existing (trusted) network device,” Kamkar said.

But by getting PoisonTap to tell the victim machine that the entire IPv4 space is part of its local network, the device supersedes the legitimate Internet gateway to which the computer is connected. As a result, all network traffic that normally would have passed from the machine through the legitimate gateway, ends up hitting PoisonTap instead, Kamkar said.

PoisonTap then waits for any open browser pages on the computer to make an HTTP request - for example, to load a new ad or to send data to a tracking application. PoisonTap intercepts that HTTP request and spoofs a response that causes the HTTP request to hit its own web server.

The PoisonTap webserver responds to the HTTP request with a list of iframes for the top one million websites on Alexa, which it caches on the victim’s browser while simultaneously stealing all cookies being sent to any websites on that list.

“The iFrames are not just blank pages at all but rather HTML+Javascript backdoors that are cached indefinitely,” on the victim’s browser, Kamkar noted.

“Because PoisonTap force-caches these backdoors on each domain, the backdoor is tied to that domain,” he said. As a result the attacker can use the domain’s cookies for malicious access even if the user is not logged into the domain, he said.

Clever as the exploit is, securing against PoisonTap is simple, according to Kamkar.

It doesn't work on HTTPS content, for instance. So using HTTPS exclusively is one way to neutralize the threat from exploits like PoisonTap he said.

Ensuring that Secure flag is enabled on cookies is another effective measure because it prevents HTTPS cookies from leaking over to HTTP, said Kamkar whose previous exploits have included a drone hijack proof-of-concept, and an exploit involving remotely starting any General Motors car featuring OnStar RemoteLink.

Craig Smith, research director of transportation security at Rapid7, described PoisonTap as brilliant for its simplicity.

Unlike similar exploits in the past, one key difference with PoisonTap is that it attacks all outbound traffic from a victim system by emulating a network device, he said in a statement.  “This attack works on both Windows and Mac operating systems and can hijack a large number of connections, even if the machine is locked,” he noted.

“On a $5 Raspberry Pi, Samy pulled together several clever attacks that add up to something really masterful.”

Related stories:

 

Jai Vijayan is a seasoned technology reporter with over 20 years of experience in IT trade journalism. He was most recently a Senior Editor at Computerworld, where he covered information security and data privacy issues for the publication. Over the course of his 20-year ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Oldest First  |  Newest First  |  Threaded View
Data Leak Week: Billions of Sensitive Files Exposed Online
Kelly Jackson Higgins, Executive Editor at Dark Reading,  12/10/2019
Intel Issues Fix for 'Plundervolt' SGX Flaw
Kelly Jackson Higgins, Executive Editor at Dark Reading,  12/11/2019
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
The Year in Security: 2019
This Tech Digest provides a wrap up and overview of the year's top cybersecurity news stories. It was a year of new twists on old threats, with fears of another WannaCry-type worm and of a possible botnet army of Wi-Fi routers. But 2019 also underscored the risk of firmware and trusted security tools harboring dangerous holes that cybercriminals and nation-state hackers could readily abuse. Read more.
Flash Poll
Rethinking Enterprise Data Defense
Rethinking Enterprise Data Defense
Frustrated with recurring intrusions and breaches, cybersecurity professionals are questioning some of the industrys conventional wisdom. Heres a look at what theyre thinking about.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-5252
PUBLISHED: 2019-12-14
There is an improper authentication vulnerability in Huawei smartphones (Y9, Honor 8X, Honor 9 Lite, Honor 9i, Y6 Pro). The applock does not perform a sufficient authentication in a rare condition. Successful exploit could allow the attacker to use the application locked by applock in an instant.
CVE-2019-5235
PUBLISHED: 2019-12-14
Some Huawei smart phones have a null pointer dereference vulnerability. An attacker crafts specific packets and sends to the affected product to exploit this vulnerability. Successful exploitation may cause the affected phone to be abnormal.
CVE-2019-5264
PUBLISHED: 2019-12-13
There is an information disclosure vulnerability in certain Huawei smartphones (Mate 10;Mate 10 Pro;Honor V10;Changxiang 7S;P-smart;Changxiang 8 Plus;Y9 2018;Honor 9 Lite;Honor 9i;Mate 9). The software does not properly handle certain information of applications locked by applock in a rare condition...
CVE-2019-5277
PUBLISHED: 2019-12-13
Huawei CloudUSM-EUA V600R006C10;V600R019C00 have an information leak vulnerability. Due to improper configuration, the attacker may cause information leak by successful exploitation.
CVE-2019-5254
PUBLISHED: 2019-12-13
Certain Huawei products (AP2000;IPS Module;NGFW Module;NIP6300;NIP6600;NIP6800;S5700;SVN5600;SVN5800;SVN5800-C;SeMG9811;Secospace AntiDDoS8000;Secospace USG6300;Secospace USG6500;Secospace USG6600;USG6000V;eSpace U1981) have an out-of-bounds read vulnerability. An attacker who logs in to the board m...