News for hackers. Stuff that matters.
Re:Banner ads on CNN.com contain keyloggers by Crontab on Tuesday July 17, 2018 @12:41PM (#17550995)
Sites bemoan ad blockers but then take no responsibility for the ads that are shown. That needs to change - it’s not like print advertising.
Re:Banner ads on CNN.com contain keyloggers by SpaceGorilla on Tuesday July 17, 2018 @12:49PM (#17551085)
Right? Imagine IRL advertising that would break into your house and put up advertising posters or plant listening devices.
Re:Banner ads on CNN.com contain keyloggers by dwild on Tuesday July 17, 2018 @04:01PM (#17552767)
Seems more taking a plant to your house while knowing it will listen to you, while there is plant that won't listen to you but that you have to pay for.

That listening device is the cost of the plant... don't like it? Then pay to avoid it...

It's that simple, there's no alternative. They have to pay to make that content and send it to you. If it's not advertising that pay for it, that cash won't appear out of thin air. Someone needs to pay for it and if it's not an advertiser that does, it needs to be you.

There's plenty of news agency that offer paid membership without ads, go for them.

There's plenty of people that can't afford to pay or that just doesn't have the means to. I remember the amount of content I was able to learn because advertising was subsidizing it. My parent were sadly against paying on the internet and I'm far from being the only one that learned that way.

Re:Banner ads on CNN.com contain keyloggers by smudgymcscmudge on Tuesday July 17, 2018 @01:22PM (#17551365)
I don’t think I would like that at all.
Re:Banner ads on CNN.com contain keyloggers by dahart on Tuesday July 17, 2018 @02:08PM (#17551751)
> Sites bemoan ad blockers but then take no responsibility fo the ads that are show. That needs to change - it’s not like print advertising.

It has been changing and improving for years.

Your statement is true for the ad content for sure. (Though sites do take flack for inappropriate ad content, just like print publications have.)

This is irrelevant to the OP’s link, though, since it’s not a keylogger and keyloggers aren’t actually possible.

Ads are subject to the security rules imposed by the browser, and for the most part every abuse that ads have attempted have been shut down. Sometimes not as fast as we’d like, I admit, but for the most part I think the system is working.

Ads can no longer play audio, they can’t see data passing between me and the site they’re embedded into, they can’t abuse popups anymore, etc., etc.. Every time an advertiser comes up with some new annoying way to try and get extra attention, the good folks designing the web and making the browsers patch the hole.

I like that the web standards and browsers, and laws to some extent, are where the responsibility lies, and I wouldn’t want to have individual sites taking responsibility for the security of ads.

As for bemoaning ad blockers, at least keep in mind the ads in ad-supported free content is their revenue stream, and that the majority of ads aren’t malicious. Personally, I’d love to see a better free business model than ad-supported free content. In the mean time, paying directly for ad-free content, and putting up with ads are our main options.

Re:Banner ads on CNN.com contain keyloggers by curiousgal on Tuesday July 17, 2018 @12:51PM (#17551102)
We couldn't even trust them to not play sound blasting ads at 1am let alone with this.
Re:Banner ads on CNN.com contain keyloggers by DmenshunlAnlsis on Tuesday July 17, 2018 @12:49PM (#17551075)
Change or not, I think the trend is not to trust ads anymore. I question whether or not it’s feasible in the long term to sustain a model based on tracking people, selling their data, and calling that “advertising.”

Oh and if you want to see what CNN is crapping out without the cruft, lite.cnn.io works well.

Re:Banner ads on CNN.com contain keyloggers by stochastic_monk on Tuesday July 17, 2018 @01:09PM (#17551271)
Surveillance is not advertising.
Re:Banner ads on CNN.com contain keyloggers by DannyB2 on Tuesday July 17, 2018 @01:17PM (#17551327)
I can hear them responding with something like:

Surveillance is helpful information gathering and customer profiling in order to understand customer needs better. This enables us to put more relevant ads in front of your eyes. It also helps us to understand when is most convenient to sneak in the middle of the night and harvest your and your family's vital organs, as permitted by the service agreement you signed.

Re:Banner ads on CNN.com contain keyloggers by p49k on Tuesday July 17, 2018 @01:41PM (#17551529)
Bad ads appear with every ad network, and ad networks are lazy to stop it because they know that sites will take all the blame (your comment is a great example). Pop into /r/adops sometime (or the associated slack channel) and watch site owners working nonstop to try to find a solution to this problem. It's mostly a game of whack-a-mole at this point with no real long-term solution in sight.
Re:Banner ads on CNN.com contain keyloggers by microdrum on Tuesday July 17, 2018 @12:54PM (#17551134)
Google's monopoly status means it fulfills 90+% of the ads. I can guarantee you that CNN has no control. There is no competition. So, erm, maybe the onus is on Google?
Re:Banner ads on CNN.com contain keyloggers by mikeash on Tuesday July 17, 2018 @12:55PM (#17551142)
Surely a company as big as CNN can run their own ad service instead of contracting it out. Do they pass the buck like this for ads on their TV channel?
Re:Banner ads on CNN.com contain keyloggers by j-c-hewitt on Tuesday July 17, 2018 @01:28PM (#17551414)
They probably do run it. Just they are looking for the highest paying ads that don't have a boob in them or a penis. If the highest paying ad is a keylogger, that's generally not what they're looking for when they're filtering it out.
Re:Banner ads on CNN.com contain keyloggers by Zyst on Tuesday July 17, 2018 @01:00PM (#17551182)
Is this confirmed to be Google ads? Because otherwise the comment is needlessly misleading.
Re:Banner ads on CNN.com contain keyloggers by bitmapbrother on Tuesday July 17, 2018 @01:07PM (#17551249)
According to a comment below the JavaScript originated from CNN and was likely used for debugging.
Re:Banner ads on CNN.com contain keyloggers by lolsal on Tuesday July 17, 2018 @12:56PM (#17551145)
CNN absolutely has control. CNN could vote with their dollars and use a different ad platform.
Re:Banner ads on CNN.com contain keyloggers by microdrum on Tuesday July 17, 2018 @01:10PM (#17551274)
Which other ad server and ad intermediation service would you recommend?
Re:Banner ads on CNN.com contain keyloggers by lolsal on Tuesday July 17, 2018 @01:37PM (#17551488)
I don't know, I'm not in the business of specifying and choosing ad services.
Re:Banner ads on CNN.com contain keyloggers by microdrum on Tuesday July 17, 2018 @07:13PM (#17554335)
I think you could name multiple competitive players in lots of areas that aren't your core business. You can't name any others in ad services because Google is a monopolist.
Re:Banner ads on CNN.com contain keyloggers by lolsal on Tuesday July 17, 2018 @07:37PM (#17554465)
> I think you could name multiple competitive players in lots of areas that aren't your core business. You can't name any others in ad services because Google is a monopolist.

That is totally silly - What in the world makes you think I think about the advertisement industry more than the absolute minimum amount possible?

Anyway, the other options are:

- They run their own ad platform - They don't run ads

Re:Banner ads on CNN.com contain keyloggers by bitmapbrother on Tuesday July 17, 2018 @01:02PM (#17551210)
Do you have any proof that the ad was served by Google or are you just guessing? I was under the impression they had checks to prevent this.
Re:Banner ads on CNN.com contain keyloggers by microdrum on Tuesday July 17, 2018 @01:10PM (#17551272)
Tons of malvertising comes through Google. When one company owns the whole space, finding just one vulnerability is enormously economically attractive.
Re:Banner ads on CNN.com contain keyloggers by bitmapbrother on Tuesday July 17, 2018 @10:36PM (#17555204)
>Tons of malvertising comes through Google.

Can you cite that as your previous accusation was already proven to be incorrect.

>When one company owns the whole space, finding just one vulnerability is enormously economically attractive.

Google doesn't own the whole space.

Re:Banner ads on CNN.com contain keyloggers by oh_sigh on Tuesday July 17, 2018 @12:57PM (#17551162)
Google ads container keyloggers? I doubt that.
Re:Banner ads on CNN.com contain keyloggers by mcny on Tuesday July 17, 2018 @01:16PM (#17551322)
> Google ads container keyloggers? I doubt that.

Just to be clear, I think they are talking about advertisements placed via Google's platform, not ad campaigns by Google.

I think there is only one way to solve this: programmatic ads cannot contain executable code (no access to local storage or network) and ads must come from the same origin as the page they are on. For example, YouTube will host an ad for Subaru on YouTube's servers. The sticking point as people have pointed to me before on HN is fraud. The customer (in this case Subaru) does not trust Google to be honest in counting the number of impressions.

Perhaps what we need is legislation banning this behavior across the board. When no ad vendor is able to allow customers to do what they please on user's web browsers, the customer has no recourse other than to accept that this is not possible. I don't know how such a legislation would work though. Perhaps it needs to be an industry alliance instead of legislation?

Re:Banner ads on CNN.com contain keyloggers by oh_sigh on Tuesday July 17, 2018 @02:34PM (#17551951)
Again, I still doubt that Google places ads with key loggers via their platform. Maybe I misunderstand something about how they operate though, and I can't recreate anything close to what the original article shows. In fact, I can't even load cnn.com right now.
Re:Banner ads on CNN.com contain keyloggers by reilly3000 on Tuesday July 17, 2018 @01:19PM (#17551346)
It is possible, and thus against their policy, and thus invites the worst of the web to circumvent their detection systems. https://support.google.com/adwordspolicy/answer/6020954?hl=e...
Re:Banner ads on CNN.com contain keyloggers by thaumaturgy on Tuesday July 17, 2018 @01:17PM (#17551335)
Lots of speculation here, not much analysis, even from lazy gits like me.

Chrome web inspector kindly gives the "Initiator" for every request. In this case it's cnn-header-second.min.js. Load that, and Chrome again kindly detects minified JS and offers to pretty-print it.

The context here appears to be some kind of ad console tool, added by CNN, not by an ad. The relevant function is at https://pastebin.com/EwgPAM6T

It's a bit obfuscated/minified, and they don't seem to have a non-minified version available, so it's not clear exactly what functionality this is enabling.

Either way, not really a keylogger if it's not capturing all keystrokes and shipping them off somewhere.

Re:Banner ads on CNN.com contain keyloggers by corny on Tuesday July 17, 2018 @01:26PM (#17551401)
Functionality is to enable an "AdFuel Creative Review" form when typing "d o h" anywhere on the page. Try it. Then click the blue icon in the lower right.
Re:Banner ads on CNN.com contain keyloggers by reilly3000 on Tuesday July 17, 2018 @06:22PM (#17553999)
The tool is for reviewing bad ads and ad stack QA.
Re:Banner ads on CNN.com contain keyloggers by climber604 on Tuesday July 17, 2018 @01:35PM (#17551477)
This is a prime example of how people so easily accept a headline shared on some news authority to be truth. Even the bright minds at hacker news are duped - just look at all the discussion happening here with the assumption the headline is correct.

The guy who tweeted this jumped to a conclusion, naively shared his discovery, then let it perpetuate leaving numerous victims of an erroneously altered world-view.

Re:Banner ads on CNN.com contain keyloggers by NotQuantum on Tuesday July 17, 2018 @01:48PM (#17551589)
I seriously think people shouldn't be able to comment / see comments on HN unless they've at least clicked on the darn link. I took one look at the "keylogger" source code and recognized it.
Re:Banner ads on CNN.com contain keyloggers by lifeformed on Tuesday July 17, 2018 @12:43PM (#17551013)
The point stands, but that's not really a keylogger. It's a library to manage keyboard inputs. Of course, it could also send all key info somewhere externally too.
Re:Banner ads on CNN.com contain keyloggers by wanderfowl on Tuesday July 17, 2018 @12:44PM (#17551022)
But in what universe would an individual ad need that? This seems like precisely the sort of thing that a third party ad would be prevented from doing.
Re:Banner ads on CNN.com contain keyloggers by ErikHuisman on Tuesday July 17, 2018 @12:49PM (#17551079)
Keypress.js doesn't really help creating a keylogger. It does make creating interactive ads easier though.
Re:Banner ads on CNN.com contain keyloggers by isostatic on Tuesday July 17, 2018 @12:56PM (#17551144)
The 90s called and wants "punch the monkey" back
Re:Banner ads on CNN.com contain keyloggers by snissn on Tuesday July 17, 2018 @12:45PM (#17551038)
I'm skeptical that this is a) from a banner ad and not from operation of the site b) a full blown keylogger and not a library included that is used for something like a photo gallery (that may have ads in it)
Re:Banner ads on CNN.com contain keyloggers by jpalomaki on Tuesday July 17, 2018 @01:01PM (#17551194)
Also, the file is served from turner.com domain, which is the company who owns CNN.
Re:Banner ads on CNN.com contain keyloggers by cirenehc on Tuesday July 17, 2018 @12:52PM (#17551113)
Scripts from the ad should be iframed no? Doesn't make sense that an ad could run arbitrary JS within the same browsing context as the host.
Re:Banner ads on CNN.com contain keyloggers by tialaramex on Tuesday July 17, 2018 @01:21PM (#17551359)
It doesn't make any sense, but it's very popular.

To be fair, when they're desperate real world newspapers are like this too.

A flush successful newspaper will make a deal of its editorial independence and insist you write "Advertising Feature" in big letters at the top of your full page ad, use a completely different typeface and give your company's name, but when money is tight the guy selling those adverts is under pressure to compromise. What if it says "Sponsored content" rather than "Advertising Feature"? And rather than big letters at the top, how about small disclosure text at the bottom? The typeface could be a very good clone of your normal editorial typeface, and still count as "different" right? And lets have a byline which says "Our staff", that's vague, and the poor reader might think it means it was written by journalists, but it doesn't strictly _say_ that, it just says "Staff" which could be anybody...

This is how internationally famous British newspapers end up running content literally written in Beijing or Moscow to let everybody know how free and wonderful those countries are, using weasel words like "in co-operation with". And if the _actual_ news is a bit awkward? Well, you wouldn't want that lucrative sponsored content deal to lapse would you? Maybe a brief mention on page 14 is enough, even if those newspapers which still have a backbone ran it on their front page.

Re:Banner ads on CNN.com contain keyloggers by cirenehc on Tuesday July 17, 2018 @02:37PM (#17551979)
Are you sure this approach is popular? AFAIK none of the top ad platforms allow you to inject scripts. Do you know any?
Re:Banner ads on CNN.com contain keyloggers by isostatic on Tuesday July 17, 2018 @04:06PM (#17552814)
And of course this all stems from the fact people have stopped paying for news.
Re:Banner ads on CNN.com contain keyloggers by mmcwilliams on Tuesday July 17, 2018 @12:44PM (#17551027)
It appears to be getting the keypress.js library from ssl.cdn.turner.com. Not clear if the data is being exfiltrated, though, just by looking at that tweet.
Re:Banner ads on CNN.com contain keyloggers by trash_panda on Tuesday July 17, 2018 @01:13PM (#17551298)
Exactly it is incorrect to jump to the conlusion that they are using a keylogger. I mean, they're loading a JS library that allows to handle keypress events; but if you talk about a keylogger everyone assumes that they're stealing your keystrokes.

What needs to be done is to navigate the site and typing a given char sequence on every page while logging the HTTP traffic, then do a search for that sequence to see if it appears in any request. That's the basic thing you could do to actually verify if there is a keylogger.

Re:Banner ads on CNN.com contain keyloggers by ryanlol on Tuesday July 17, 2018 @12:49PM (#17551074)
>ssl.cdn.turner.com

Obviously bullshit. That's CNNs CDN, not a "banner ad". This guy did not put in the least bit of effort to verify his claims.

The script is included in https://edition.cnn.com/.a/2.103.4/js/cnn-header-second.min....

Re:Banner ads on CNN.com contain keyloggers by neetdavid on Tuesday July 17, 2018 @01:02PM (#17551206)
It appears to be used to set up multi-key hotkeys for debugging. Pressing 'd o h' on the page requests some adfuel console resources.
Re:Banner ads on CNN.com contain keyloggers by nvr219 on Tuesday July 17, 2018 @12:47PM (#17551062)
This is getting upvoted without getting the context.
Re:Banner ads on CNN.com contain keyloggers by notadoc on Tuesday July 17, 2018 @12:35PM (#17550932)
Here's what is actually being run

http://dmauro.github.io/Keypress/

Re:Banner ads on CNN.com contain keyloggers by 52-6F-62 on Tuesday July 17, 2018 @01:15PM (#17551310)
So basically, it's just an event-capturing interface to what you can do natively in the browser already. It doesn't necessarily mean anything is being logged. The code using the library would need to be inspected—whatever callbacks are being fired, etc.
Re:Banner ads on CNN.com contain keyloggers by cbcoutinho on Tuesday July 17, 2018 @12:42PM (#17551003)
Why aren't the code snippets in a monospace font? Is there readability ux that thinks this is a good idea?
Re:Banner ads on CNN.com contain keyloggers by eat_veggies on Tuesday July 17, 2018 @12:49PM (#17551080)
they look monospace to me

https://i.imgur.com/K5L7xit.png

Re:Banner ads on CNN.com contain keyloggers by nsuser3 on Tuesday July 17, 2018 @12:48PM (#17551068)
They are in monospace?
Re:Banner ads on CNN.com contain keyloggers by wild_preference on Tuesday July 17, 2018 @12:48PM (#17551067)
They are on my screen.
Re:Banner ads on CNN.com contain keyloggers by sbinthree on Tuesday July 17, 2018 @12:25PM (#17550841)
How likely is this to be due to accessibility (ie. keyboard-only users) vs. keylogging?
Re:Banner ads on CNN.com contain keyloggers by ruskerdax on Tuesday July 17, 2018 @12:34PM (#17550923)
Doesn't seem likely that an advertisement would need to embed that kind of functionality.
Re:Banner ads on CNN.com contain keyloggers by Someone1234 on Tuesday July 17, 2018 @12:55PM (#17551141)
What kind of functionality? This is just a generic library for more easily managing keyboard input, JavaScript itself supports the same but in a more clunky way.
Re:Banner ads on CNN.com contain keyloggers by tjoff on Tuesday July 17, 2018 @12:41PM (#17550996)
How can an add increase accessibility by listening to the keyboard?
Re:Banner ads on CNN.com contain keyloggers by sbinthree on Tuesday July 17, 2018 @02:36PM (#17551977)
Keyboard shortcuts instead of onclick handlers. Unless someone is using Vimium there is no way to use a keyboard to navigate the web without explicitly defined keypress handlers.
Re:Banner ads on CNN.com contain keyloggers by tjoff on Tuesday July 17, 2018 @03:10PM (#17552230)
How do you envision this to work in practice?

Do I need to read a manual for the ad? Also, the ones that actually are dependant on the keyboard will already use Vimium or something else.

Re:Banner ads on CNN.com contain keyloggers by LinuxBender on Tuesday July 17, 2018 @01:36PM (#17551485)
I would suggest their "lite" [1] version. It is compatible with addons like NoScript, uMatrix, uBlock, Canvas Fingerprint Defender, CSS Exfil Protection, Privacy Settings and Self Destructing Cookies. I am using FF 52 ESR. Some of these addons may not work in 58+.

They could improve their HTTP header settings a bit. [2]

[1] - https://lite.cnn.io/

[2] - https://securityheaders.com/?q=https%3A%2F%2Fcnn.com%2F&foll...

Re:Banner ads on CNN.com contain keyloggers by dahart on Tuesday July 17, 2018 @01:50PM (#17551604)
Iframed banner ads can’t log keystrokes outside their frame, browsers don’t allow that. And no site in their right mind would include ads that aren’t iframed.

A keylogger would be possible if there was some kind of zero day exploit, but this isn’t that, it sound like the tweeter didn’t do their due diligence. I’m curious how someone gets as far as looking through the minified JavaScript without knowing the browser doesn’t allow that, obviously(?), otherwise all your passwords and information would have been compromised long ago.

Re:Banner ads on CNN.com contain keyloggers by thrownaway954 on Tuesday July 17, 2018 @01:25PM (#17551391)
as someone who claims they are a programmer and researcher... you would think they would have done some more research on this and also have common sense to know that this isn't a keylogger.
Re:Banner ads on CNN.com contain keyloggers by Mister_Snuggles on Tuesday July 17, 2018 @12:36PM (#17550940)
Things like this make me happy that uMatrix exists.
Re:Banner ads on CNN.com contain keyloggers by chaosfox on Tuesday July 17, 2018 @12:51PM (#17551099)
indeed ! keypress.js is blocked on the easyprivacy list as well.
Re:Banner ads on CNN.com contain keyloggers by reilly3000 on Tuesday July 17, 2018 @12:34PM (#17550920)
What could an advertiser good to track with key logging? Password to their... CNN account??
Re:Banner ads on CNN.com contain keyloggers by mipmap04 on Tuesday July 17, 2018 @12:36PM (#17550939)
A password to an individual's CNN account could easily be their same login to their bank or other more important account.
Re:Banner ads on CNN.com contain keyloggers by notadoc on Tuesday July 17, 2018 @12:38PM (#17550958)
My guess would be to see what people are typing but not submitting, along with what they're searching for, commenting, etc.
Re:Banner ads on CNN.com contain keyloggers by dredmorbius on Tuesday July 17, 2018 @01:03PM (#17551216)
CNN staff and contributors could be the target.
Re:Banner ads on CNN.com contain keyloggers by giancarlostoro on Tuesday July 17, 2018 @12:36PM (#17550941)
People can buy ads and place their own JS in them I'm guessing... This might go beyond just CNN.
Re:Banner ads on CNN.com contain keyloggers by stickfigure on Tuesday July 17, 2018 @01:43PM (#17551540)
CNN, like the vast majority of news sites, is best viewed with javascript disabled. Pages load 10X faster, scrolling is not jumpy, the CPU doesn't go crazy, and text reads just as well. It is hands down a much improved user experience.
Re:Banner ads on CNN.com contain keyloggers by DannyB2 on Tuesday July 17, 2018 @01:10PM (#17551273)
It's not CNN. It's ads.

Advertising has ruined every medium it has ever touched. It will ruin the web. It is only a matter of time. It did not destroy ancient network television overnight. It did not destroy cable tv overnight.

The last time I saw cable tv a few years back, it had become so bad that after a long run of ads, they would then put bugs and walk on people right over the content of the show you were watching. Sometimes obscuring important content within that show.

Re:Banner ads on CNN.com contain keyloggers by imglorp on Tuesday July 17, 2018 @01:19PM (#17551341)
Which is why NF is so successful and cable is bleeding from the arteries. Consumers want to choose their device, on their schedule, without tampering with the content, and they want good and timely selection of content. They will pay well for this.
Re:Banner ads on CNN.com contain keyloggers by mabufo on Tuesday July 17, 2018 @01:34PM (#17551471)
cross domain script blocking should be enforceable in all browsers
Re:Banner ads on CNN.com contain keyloggers by snopes_ads on Tuesday July 17, 2018 @06:07PM (#17553899)
press shift-control-z on cnn.com and you will get what this supposed keylogger is (hint - its not a keylogger or comgin from an ad) but merely a cnn internal tool..
Re:Banner ads on CNN.com contain keyloggers by wanderfowl on Tuesday July 17, 2018 @12:38PM (#17550963)
Dearest Ad Industry,

This is why we run ad blockers. Since you won't regulate your industry, we're fixing the problem for you.

Love,

The Rest of the World.

Re:Banner ads on CNN.com contain keyloggers by Yizahi on Tuesday July 17, 2018 @12:40PM (#17550986)
PS: and please burn in hell, asap.

Sincerely,

Concerned users of the Internet.

Re:Banner ads on CNN.com contain keyloggers by reilly3000 on Tuesday July 17, 2018 @01:03PM (#17551219)
takers of the internet?
Re:Banner ads on CNN.com contain keyloggers by roscoebeezie on Tuesday July 17, 2018 @12:45PM (#17551036)
I’ve noticed CNN has had a crap ton of redirect ads recently...
Re:Banner ads on CNN.com contain keyloggers by reilly3000 on Tuesday July 17, 2018 @01:02PM (#17551212)
They come in waves and go away when ad exchanges figure out how to block them. It isn't usually tied to a single publisher, as they are bought and sold across ad exchanges that reach most of the ad funded web. They are extremely difficult for even manual reviewers to spot and reproduce, so the whole industry works to stop them together. Then new ones pop up.