Vulnerabilities / Threats
9/8/2013
05:32 PM
Mike Rothman
Mike Rothman
Commentary
Connect Directly
RSS
E-Mail
50%
50%

Yet Another Reason To Hate Online Ads

Through the magic of JavaScript and ad networks, research presented at Black Hat by Jeremiah Grossman and Matt Johansen shows how to build a huge botnet quickly -- and then the fun begins

I'll readily admit I'm numb to advertising -- at least when I'm online. Ads are everywhere, taking up every visual inch of screen real estate, with the exception of the text I'm looking at. But I just focus on the text I'm looking for, so the rest of the stuff is noise. It's a bit different with TV since the magic of the DVR allows me to skip pretty much all of the ads. When I'm on the road and not using a DVR, I realize the true annoyance of these TV ads. In fact, I don't really watch TV without a DVR, with the exception of live sports. And in that case, the commercials annoy me.

But that's just annoyance, right? You can tune out the ads. Or check your Twitter or Facebook for two or three minutes while you learn about the latest magic pills to cure insomnia, frequent urination, or erectile dysfunction. (As an aside, if anyone has a good way to describe erectile dysfunction to a 10-year-old, I'm all ears. It's just a matter of time before I'm watching a football game with my kids and one of those ads show up.)

Yet at Black Hat, my friends Jeremiah Grossman and Matt Johansen showed that online advertising networks can be manipulated and gamed by attackers using pretty simple tactics to launch an attack (typically DDoS) against a specific site without any effort from the user. All they have to do is render a Web page with the attack ad embedded. We've spent years talking about not clicking on strange links or not going to those sites. But that's about not being in a bad neighborhood. What if the bad neighborhood comes to you?

That's right: If an advertising network accepts a compromised ad, likely paid for with a stolen credit card, it will display the ad almost anywhere on legitimate sites. There isn't much the website can do -- it has outsourced the ads to the ad network. The ad networks should have better controls, but well, you know. It's basically a drive-by attack that you can't really block. Render the legitimate page and get owned. That's awesome, right?

As Jeremiah and Matt described during their session, "Networks that serve up advertisements on ad-supported sites across the Internet frequently allow their advertisers to run arbitrary JavaScript on browsers displaying their ads." This JavaScript (if the browser is set to run JavaScript, which is the default mode) can have the browser make a request to the target, start a drive-by malware download, or lots of other diabolical stuff.

Even better, the pair of researchers got around an ad network's typical need to approve every change to an ad (for instance, changing the target) by referring to an external site to download the target URL or any other instructions in real time. JavaScript for the win. This gives an attacker the ability to dynamically change anything pertaining to the attack at will.

I know this is the "vulnerabilities and threats" section, and I don't necessarily need to suggest some ways to deal with this kind of attack. But that's not how I roll. So here are a few not-so-simple things you can do to protect the devices from this kind of activity. First, you can implement advanced malware protection on the endpoint devices, as I described in "Controlling the Big 7." This doesn't really help if the ad just gets the device to render a website (for DDoS purposes), but it can stop other compromises targeting the endpoint device.

Next is to address the traffic by blocking it on the network. Maybe you tighten the egress filtering policies on your egress NGFW, IPS, or Web filter looking for traffic bursts to a specific site. Or perhaps you implement a pretty tight device firewall policy to block outbound Web traffic unless it's approved. I use a tool called Little Snitch, which does this. It's a great tool, but it's a pain. The user would need to be sophisticated enough to realize an outbound connection request is no bueno and to deny it.

Or you can do what most folks will do -- ignore the problem. I mean, maybe it consumes a little Internet bandwidth with some of your devices pounding an unsuspecting website. But, ultimately, that isn't really going to impact much of anything from the standpoint of the success factors of either security or operations. There's the rub. These folks have no incentive to deal with this issue, so they won't.

And the attackers will run to the bank. Again.

Mike Rothman is President of Securosis and author of the Pragmatic CSO

Mike's bold perspectives and irreverent style are invaluable as companies determine effective strategies to grapple with the dynamic security threatscape. Mike specializes in the sexy aspects of security, like protecting networks and endpoints, security management, and ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
tayloradvantage
50%
50%
tayloradvantage,
User Rank: Apprentice
11/21/2013 | 1:48:09 AM
re: Yet Another Reason To Hate Online Ads
I wonder if the use of an ad blocker like the one at https://adblockplus.org can mitigate this too.
Register for Dark Reading Newsletters
White Papers
Cartoon
Current Issue
Dark Reading Must Reads - September 25, 2014
Dark Reading's new Must Reads is a compendium of our best recent coverage of identity and access management. Learn about access control in the age of HTML5, how to improve authentication, why Active Directory is dead, and more.
Flash Poll
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2014-6856
Published: 2014-10-02
The AHRAH (aka com.vet2pet.aid219426) application 219426 for Android does not verify X.509 certificates from SSL servers, which allows man-in-the-middle attackers to spoof servers and obtain sensitive information via a crafted certificate.

CVE-2014-6857
Published: 2014-10-02
The Car Wallpapers HD (aka com.arab4x4.gallery.app) application 1.3 for Android does not verify X.509 certificates from SSL servers, which allows man-in-the-middle attackers to spoof servers and obtain sensitive information via a crafted certificate.

CVE-2014-6858
Published: 2014-10-02
The Mostafa Shemeas (aka com.mostafa.shemeas.website) application 1.0 for Android does not verify X.509 certificates from SSL servers, which allows man-in-the-middle attackers to spoof servers and obtain sensitive information via a crafted certificate.

CVE-2014-6859
Published: 2014-10-02
The Daum Maps - Subway (aka net.daum.android.map) application 3.9.1 for Android does not verify X.509 certificates from SSL servers, which allows man-in-the-middle attackers to spoof servers and obtain sensitive information via a crafted certificate.

CVE-2014-6860
Published: 2014-10-02
The Trial Tracker (aka com.etcweb.android.trial_tracker) application 1.1.9 for Android does not verify X.509 certificates from SSL servers, which allows man-in-the-middle attackers to spoof servers and obtain sensitive information via a crafted certificate.

Best of the Web
Dark Reading Radio
Archived Dark Reading Radio
Chris Hadnagy, who hosts the annual Social Engineering Capture the Flag Contest at DEF CON, will discuss the latest trends attackers are using.