News for hackers. Stuff that matters.
Re:It's surprisingly simple to click jack using CSS4 by franciscoapinto on Thursday April 19, 2012 @08:57AM (#3862714)
Ah. Good old noscript.

http://i.imgur.com/Cb17T.png

Re:It's surprisingly simple to click jack using CSS4 by Keithamus on Thursday April 19, 2012 @08:34AM (#3862631)
The trick is to overlay an element over the top of a link, with the CSS of "pointer-events: none;".

Clicking the div will click the underlying link, which will (if you're logged into facebook) "like" the Facebook Developer group.

Is this an issue with HTML5, or is it really an issue with how easy sites can manipulate your Facebook account?

Re:It's surprisingly simple to click jack using CSS4 by pestaa on Thursday April 19, 2012 @08:56AM (#3862708)
Neither. The problem is that your browser handles click events on an invisible layer.
Re:It's surprisingly simple to click jack using CSS4 by drostie on Thursday April 19, 2012 @09:46AM (#3862935)
Well, no; there's two problems now. The first one is that your browser will handle click events on invisible and near-invisible layers. The second one is that your browser will allow click events to flow through opaque and near-opaque layers.
Re:It's surprisingly simple to click jack using CSS4 by tomg on Thursday April 19, 2012 @12:54PM (#3863934)
Those are not bugs, IMO.

A lot of web Javascript would be useless if events didn't bubble, and being able to define invisible click areas is useful in a variety of contexts.

Sucks that a few people are going to be malicious about it but I think the benefits outweigh the drawbacks.

Re:It's surprisingly simple to click jack using CSS4 by pestaa on Thursday April 19, 2012 @02:12PM (#3864324)
The problem is not that events bubble, but that clicks fall through visible layers to lower ones and get caught invisible ones on top of what you intended to click on.

Invisible click areas as you called it are not the same as multi-layered click targets imho.

Re:It's surprisingly simple to click jack using CSS4 by pestaa on Thursday April 19, 2012 @10:14AM (#3863059)
Yes, there is a different term for each case, but both boils down to "if I can't see it, why would I click it".

I hope this doesn't mean the end of niche browsers, or at least not those built on well-known rendering engines like WebKit.

Re:It's surprisingly simple to click jack using CSS4 by gue5t on Thursday April 19, 2012 @12:55PM (#3863948)
This is just another brick in the wall. The web is /not/ a platform that's friendly to new implementations, and it never will be; the complexity that's constantly being added ensures this. It also means we're all going to have a lot fewer guarantees of anything like sane behavior when using the web in the years to come.
Re:It's surprisingly simple to click jack using CSS4 by simonw on Thursday April 19, 2012 @09:16AM (#3862799)
Even without this trick it's trivial to clickjack a like button - just place the button on a div with an alpha transparency of 0.01 and trick the user in to clicking it.

Unfortunately it simply isn't possible to provide something like the Like button without being vulnerable to click jacking. I assume Facebook decided that the benefits outweighed the drawbacks. There's probably something clever they can do on the server side to statistically detect and penalize likely clickjacking attempts.

Re:It's surprisingly simple to click jack using CSS4 by citricsquid on Thursday April 19, 2012 @09:33AM (#3862884)
They do, eventually (unsure of the criteria) it will start showing a second confirmation dialog if they detect something untoward which you have to confirm your like with, although click jacking that too might also be possible.
Re:It's surprisingly simple to click jack using CSS4 by duopixel on Thursday April 19, 2012 @09:21AM (#3862824)
You don't need CSS4 to clickjack, just put the Facebook Like button on top of the link and apply opacity: 0.

http://jsfiddle.net/txbYs/

Re:It's surprisingly simple to click jack using CSS4 by pestaa on Thursday April 19, 2012 @10:16AM (#3863074)
The problem is that this new directive makes this exploit first-class citizen.
Re:It's surprisingly simple to click jack using CSS4 by batista on Thursday April 19, 2012 @10:57AM (#3863294)
That's not a problem at all. If it's worth it to do it, people will do it even if it takes 200 lines. If it's not, they won't bother. So, even with it being achievable as a "first-class" option in CSS4, I don't see any particular rise of this exploit happening.

It's like arguing that something is safer because it requires 10 lines of code instead of one to do the exploit. That's security by obscurity.

Re:It's surprisingly simple to click jack using CSS4 by pestaa on Thursday April 19, 2012 @11:41AM (#3863511)
I guess you're right. Maybe the effect is reverse even - by raising attention to potentional pitfalls.

Still, I can not think of a possible use case this can be useful. Maybe other options will make it worth knowing about.

Re:It's surprisingly simple to click jack using CSS4 by acomjean on Thursday April 19, 2012 @09:23AM (#3862834)
Looks like the same game as the "don't click" twitter button (that everyone clicked anyway) from 2009. That was iframes/css.

http://shiflett.org/blog/2009/feb/twitter-dont-click-exploit

Re:It's surprisingly simple to click jack using CSS4 by enr on Thursday April 19, 2012 @08:34AM (#3862629)
It prompted me to log in even though I have FB open and am logged in in a separate tab.
Re:It's surprisingly simple to click jack using CSS4 by Khao on Thursday April 19, 2012 @08:46AM (#3862670)
I tried it and I did not have any prompt. I liked the Facebook Developers page without seeing any prompt or confirmation so it was completely transparent.

Maybe our privacy settings are different and that's why you saw a prompt even though you were logged in.

Re:It's surprisingly simple to click jack using CSS4 by richbradshaw on Thursday April 19, 2012 @02:02PM (#3864278)
I've used pointer events ages ago - surprised it's part of CSS4… (the nav bar on http://www.splashdisplay.co.uk/ uses it so the nav can be behind the curve)
Re:It's surprisingly simple to click jack using CSS4 by Loque_k on Thursday April 19, 2012 @08:37AM (#3862638)
I don't see how this is any different XHTML or HTML 4... what am I missing?
Re:It's surprisingly simple to click jack using CSS4 by ansman on Thursday April 19, 2012 @08:41AM (#3862648)
I updated the title, it should have been CSS4 since that's where it's being defined.
Re:It's surprisingly simple to click jack using CSS4 by matznerd on Thursday April 19, 2012 @01:13PM (#3864040)
I know people who used tricks like this and some clickjacking on the share button to get 1 million+ person fan pages. Many of them were seized, but for a while it was easy.
Re:It's surprisingly simple to click jack using CSS4 by jonknee on Thursday April 19, 2012 @10:03AM (#3863015)
I run Facebook Disconnect and it makes the web much nicer, this demo is non-functional with it.
Re:It's surprisingly simple to click jack using CSS4 by eli on Thursday April 19, 2012 @01:43PM (#3864212)
That's not really the point. I mean, not having a Facebook account stops this demo too. There are other things you might not want to be tricked into clicking on.
Re:It's surprisingly simple to click jack using CSS4 by rex_mundi on Thursday April 19, 2012 @04:02PM (#3864824)
This has likely been happening quite some time, especially on file locker sites.
Re:It's surprisingly simple to click jack using CSS4 by StCroix on Thursday April 19, 2012 @09:54AM (#3862979)
CSS4? Where was I? and When??
Re:It's surprisingly simple to click jack using CSS4 by TazeTSchnitzel on Thursday April 19, 2012 @10:24AM (#3863115)
They make a new version every time there's been enough changes...