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
Newest First  |  Oldest First  |  Threaded View
7 Truths About BEC Scams
Ericka Chickowski, Contributing Writer,  6/13/2019
DNS Firewalls Could Prevent Billions in Losses to Cybercrime
Curtis Franklin Jr., Senior Editor at Dark Reading,  6/13/2019
Cognitive Bias Can Hamper Security Decisions
Kelly Sheridan, Staff Editor, Dark Reading,  6/10/2019
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
Building and Managing an IT Security Operations Program
As cyber threats grow, many organizations are building security operations centers (SOCs) to improve their defenses. In this Tech Digest you will learn tips on how to get the most out of a SOC in your organization - and what to do if you can't afford to build one.
Flash Poll
The State of IT Operations and Cybersecurity Operations
The State of IT Operations and Cybersecurity Operations
Your enterprise's cyber risk may depend upon the relationship between the IT team and the security team. Heres some insight on what's working and what isn't in the data center.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-12855
PUBLISHED: 2019-06-16
In words.protocols.jabber.xmlstream in Twisted through 19.2.1, XMPP support did not verify certificates when used with TLS, allowing an attacker to MITM connections.
CVE-2013-7472
PUBLISHED: 2019-06-15
The "Count per Day" plugin before 3.2.6 for WordPress allows XSS via the wp-admin/?page=cpd_metaboxes daytoshow parameter.
CVE-2019-12839
PUBLISHED: 2019-06-15
In OrangeHRM 4.3.1 and before, there is an input validation error within admin/listMailConfiguration (txtSendmailPath parameter) that allows authenticated attackers to achieve arbitrary command execution.
CVE-2019-12840
PUBLISHED: 2019-06-15
In Webmin through 1.910, any user authorized to the "Package Updates" module can execute arbitrary commands with root privileges via the data parameter to update.cgi.
CVE-2019-12835
PUBLISHED: 2019-06-15
formats/xml.cpp in Leanify 0.4.3 allows for a controlled out-of-bounds write in xml_memory_writer::write via characters that require escaping.