Hi, everyone. Thanks for coming. Today with Baptiste, I'm going to present you Bad Memory. For those who wonder, Gustav is not here today. He has a visa issue, so he's stuck in Stockholm. So Bad Memory is a talk a little bit different from what you might have seen before. We try to give you something which is out-of-the-box thinking, and we're going to show you a lot of cool attacks. And we have made a lot of videos for you because usually the gods of demo are against me, so now I'm doing video. They are on YouTube, so if you want to watch a video afterward, you can just browse the channel and you have them. Usually, and you're all there for security, there are three ways we can know and know how to break a security mechanism. The first one is when you find a design flaw. For instance, WEP is broken by design. You all know that. And you also have the most well-known way, which is we try to find an exploit and find vulnerability into the code, its implementation. And the third one, which would be the focus of this talk, is how you can try to make this security mechanism a little bit irrelevant. Closer, okay, sorry. So what do we mean by irrelevant? For a second, bear with me. Let's assume you have this nice house in Wonderland, and of course you like your house, so you're going to prevent people to try to break through it. The way you do that is you have a nice security mechanism, which is a door. So the bigger the door, the more secure you are. But a clever attacker might try to do what we call side channel, and that would be the focus of this talk, is try to break through the windows or try to break through the roof, right? So that's what we call side channel. Now what we're going to tell you is not about Wonderland, it's about real security. So what we have is four different stories in this talk. So the first one will be how you can actually break into a WPA network from a web page. The second one will be how you can attack HTTPS with cache injection. The third one would be how you can steal private data with what we call framework attack. And the third one would be how to attack this guy, smartphone, with something which is a new generation of click jacking. So, well, hopefully we'll be as loud as this guy. So, obviously, over the year, we see something which is really good. We see people moving away from web, or at least they should, from something which is more secure, which is WPA, right? And so the world is more secure. And even at the DEF CON this year, we have a secure network. So the world ship is kind of empty now. But, hey, still something remains. We are still storing the WPA key through a web interface. And our idea was, well, maybe we can't break WPA because we don't really know how to do that right now. But we probably can try to attack this web interface. And to confirm that, we went to a store and by like a huge bunch of routers from different brands, eight of them, and try to our hypothesis. And the result was that we are able to break all of this brand and actually retrieve the WPA key. What I'm going to show you now is how we do that. So the basic idea of this attack is we are able to execute a malicious JavaScript inside the local network because the user is browsing the web. It's not an unreasonable assumption. First reason is because a lot of websites have XSS vulnerability. Go to XSSD, the website, if you do not trust me. There is a ton of them. But also because you can serve ads. And actually, ads contain malicious code. It's well known. For instance, at the beginning of this year, Avast released a study which shows that a lot of ad advertisement networks did a very bad job at sanitizing the advertisement. And as a result, there is a lot of malware which are distributed via an ad network. In case you wonder how much it costs, if you want to have 100,000 impressions, it's about $100. So it's a really cost-effective attack. How many of you are familiar with what we call the browser same origin policy? Raise your hand. Not that much people. Okay. So just make sure everyone is on the page and will follow what we're going to explain. So same origin policy is one of the key security mechanisms you have in the browser. It's basically meant to protect you when you are browsing multiple websites online. At the same time, because you have multiple tabs or you have one iframe inside your page, the basic idea is the following. If you have two origins, in the screen you have evil.com and you have mail.google.com, the same origin policy, do something very simple, which is you can, one origin can post data. Doesn't mean that the other origin has to process them, but you can post data from one origin to another. That's how web service can interact together. But you are not able from one origin to read the other one, which effectively prevents a bad. So you don't have to die to read your Gmail or malicious page to read your bank account, right? That's the same origin policy. So we can post data, provided there is no CSR defense, but we can't actually read data. And you will see that it actually makes this attack a little bit hard, and as a major hurdle we had to work around. Okay. So back to the attack. The attack work as follows. At the beginning, the attacker will pay ads or fail an XSS in a well-known website and will be able to inject a malicious JavaScript inside the local network. At this point, you have to realize that the firewall is completely useless. There is not any more firewall because you're already inside the network. Similarly, you might say, hey, the router interface is only available from inside the network. Well, that's not an issue because we are already inside, so we can access from the browser of the user the web interface. So the first thing we have to do, the first thing that this malicious ad has to do is to locate the IP of the router because we have no clue of that. A good way to do that is to look at the RFC and try all the probable IP. We do that by using such a request, which is a synchronous request. And we try to see the page load or not. If the page load, then there is a web interface, and it's likely that it's a router. So we go to common IP until we find the right one. Okay. So at that point, there is two kinds. There are five routers in the world. One which is web authentication or web login, which is the same thing you see on Facebook, Gmail, all that kind of stuff. It's basically an authentication where you have the username and password which is inside the HTML form. The other type of authentication is the one you had in previous life or web 1.0, which was the basic authentication. It's an ugly pop-up you have with username and password. And we kind of have to know which one you are using. Because if you are using a basic auth, we can't really try to brute force it. And the type of attack is a little bit different. And once again, the same origin policy prevents us to read the page. So we don't have any idea which kind of authentication is used. Fortunately for us, we found one or two bugs in Firefox that are currently reported. And we are able to know with 100% accuracy because of this bug which kind of authentication you are using. So when we know which authentication you are using, what we are doing is what we call fingerprinting the router. We need to know which model and which brand you have. Because each brand and each model have a different kind of vulnerability. To do that, we do two tricks. The first one is really well-known, is we try to fetch well-known image from the routers. Every brand has a different logo, which has a different size. So we can fit them in JavaScript and read the properties to get an idea of which image are present. The other one which we come up with is actually to defeat the basic code idea. Which is, if you have a basic code, if you are mistaken, you will see an ugly pop-up and the user will click cancel and you're dead. So we're doing port scanning, because you can do that with XHR requests. XHR requests are not bound to a specific port. You can do a lot of them, except some specific one like support SMTP port. So with this, we first do a first pass of scanning all the port. Get an idea of what router you might have and do further fingerprinting with image. As a result, we can tell which one are positive, which one are negative. And have a pretty good idea of who you are. Actually, now we're in implementation, we have a fingerprinting which works 100%. And we were able to actually know each brand and each model at 100% accuracy. When we are at this point, what we have to do is authenticate to the router. Remember, the router is protected by a password. So before I'm going a little bit further, how many of you ever change the router password at home? All of you. Fantastic. I don't trust you. No, seriously, I don't. But okay, let's assume you are all making the right choice. And of course, let me raise your hand. Who chooses a password which is more than 10 characters? Raise all your hand. Come on. Okay. Right. So everyone has a secure, strong password. Never use one-time password only for their own router. Right. Well, the nice thing for us is if the default password doesn't work, what we can do, is we can actually brute force it for two reasons. The first one is this kind of router do not have CSRF defense. So we are able to try as many login as we want. And we're able to inject page from the malicious JavaScript to the router. And the second one is we know we are successfully logged or not by using what we call timing attack. So a timing attack is the idea that if the page is not logged, you only see login and password which is really fast to display. So the loading time will be really, really fast. In the order of 300 milliseconds. If we are logged, there is a ton of stuff like basic setup, router setup, wireless setup, you know, this whole huge page. So which takes about one second to one second and a half. Since we are on a local network, it's really reliable because we don't have any latencies. Remember, it's from the router to the browser which is inside the local network. So the latency doesn't play a role here. So we can do a good guess. If you are using basic code, and that's kind of the irony of the story, is basic code is more secure because we have only one try. We don't have a way to brute force basic code because we have no way to actually tell whether you're successful or not. And if we fail, we have a pop-up. We found a way at some point to actually remove the pop-up, but we can't still know whether it's successful or not. So, well, in any case, we are able to brute force most of the router which moves to the web authentication part, a web login form. And as a bonus point, at some point we had one which was even better, is we tried to authenticate, and somehow our code was messed up, and Bati showed me, hey, it's still working, and we are looking at each other and what happened. Actually, some of the routers actually do not enforce permissions, so you can actually inject anything you want in it with a supplying password. I'm not going to tell you which brand because otherwise everyone is going to throw them away. But, yeah, very famous brand. So, once again, even if we are able to be authenticated to the router, we have no way to do that. We have no way to read directly the page which contains the WPA key, right? So, at that point, we have to find new vulnerability, and this time we found vulnerability inside the routers. And what we are going to use is we are going to use XSS vulnerability. We found five out of the eight brands we looked at had XSS vulnerability. And what we are going to do is very simple. We are going to inject a payload, which is an external JavaScript. And this external JavaScript will be injected into the router, and we can do that because, once again, there is no CSRF defense, so there is no check where the input came from. So, some of you might wonder here, well, this might work, so you can have an injection, but what about if the injection is not in the right page? So, usually when we found an XSS is not on the page which has a WPA key, well, it doesn't matter because we have what we call cross contamination, origin contamination, which means that if you have an XSS in one page, we can use that to actually open an iframe, and this iframe would be inside the same origin. So, this time the same origin policy doesn't prevent us to read inside the iframe. And from this, we are just able to read the key. At this point, we are almost done. It's almost mission complete because nothing prevents us to send back the key home to the attacker, right? So, you might wonder, well, what happens if you can't find an XSS vulnerability? Well, there is two things for you here. The first is you can use click jacking, and we found that most of any routers do not have any click jacking defense, so you can use a trick found by Paul Stone, showing that the blackouts are up to a 10, which is the drag and drop click jacking. If you can lure the user into drag and dropping, which is not that hard, think of making a fake game, then you can extract any data you want from a page. So, all you have to do is frame the page and have the user do a drag and drop, for example, feeding a puppy or moving around their mouse, or whatever. And we found that 8 out of 8 routers have never done that. And two days ago, Craig Effner also showed that you can use DNS rebinding attack to actually access a page from outside, so you can do this as well. And so, you have the key, right? So, the key is gone, and we have one problem. Can you guess what it is? Well, I have a key, but where is the network, right? You have a nice key, a long key, and the key doesn't tell you much, where the router is. So, we have the key, we don't know where the router is. Well, turns out that there is an app for that. And actually, it's a courtesy of Firefox. So, Firefox did introduce, for those who don't know that, in 3.5, I guess, something which is called location-aware browsing. So, what it looks like, for those who never see it, is it's a little pop-up on the top which says, do you want to share your location with the page? It's used to give you, to give the page information of where you are, so they can provide you more relevant information, like a restaurant or a place to go to. And under the hood, what has happened is there are partnerships with Google, and Google uses this little car you see on the bottom, which are touring all the cities in the world and gathering a lot of information. And there were a lot of discussion whether it's a good thing or a bad thing for Google to collect that much data. Well, this is one example of where this data is actually harmful. So, what happened under the hood, and it's also has been found by Sammy Canva, which do, I think, a talk here, which is how I met your girlfriend. The idea is that Google, you can, there is a protocol with Google where you actually supply the MAC address, and Google will do a lookup in the database and give you what they believe is the correct coordinate. And since your access point is usually up 24 hours a day, there is a good chance that if your city is big enough, they will know where you are, and you can know where your location is, with a 500 meter precision, more or less, at least in our test. So, you do all these requests, you get longitude, latitude, and of course, if you're using Google, what about just asking for a map? So, actually, the attacker just gets a nice map of where the network is. So, you have the WPA key, you have the network position, then you're all set, right? What about, who cares about WPA? You have the key. And who wants to see how it looks like in real? No one? Yeah. Yeah, okay. Okay, so this is a demo of our code, fully written in JavaScript. So, you see in the step one, we are doing a fingerprinting of the browser to know which kind of exploit we can use. Then we're going to port scan, find what kind of authentication we are using. It's a bug in Firefox. Then fingerprinting the routers, injecting an XSS in this case, and then we have to wait, because it's an injected XSS in this case, in this SMC case. So, we have to wait 20 seconds until it reboots, and then we're going to, in an invisible iframe, open it, and here's your MAC address and your key. And this is actually the location of my own house. So, if you live near me in Palo Alto, happy to take a free beer, right? Wow, it doesn't hurt to try. And that's the end of our first story. The second story is about HTTPS. And HTTPS, so we're going to show you how we can actually try to make HTTPS a little bit irrelevant. Same idea. It's a kind of complex attack, so I'm going to go through five steps. First, I'm going to give you a background on how a page is actually constructed, because that's where all the stories begin. Then I'm going to discuss a little bit about what a cache injection attack is, and I'm going to show you what are the current defense in the browser against that, because there is some. And then I'm going to show you how we were able to bypass them, actually. So, a web page starts with an HTML5. We all know that. HTML5, sorry, not 5. And we add to that a bunch of images, and we usually add a lot of JavaScript. And maybe some Flash. And all of this came from different origins. You don't see it in your browser, but you can have, for instance, a map from Google, some accommodation from Yelp, and even some information from Facebook. Just yesterday, I went to Pandora and said, Hey, this is a group you like on Facebook. Do you want to listen to it? They didn't ask for it, but they're probably communicating with Facebook. So, to make this faster, there is one key mechanism into the browser, which is the cache. The cache mechanism works as follows. When you request a page, this page might embed a JavaScript library. And so the browser is going to fetch it the first time, and if there is a proper header with this JavaScript library, it will stay into the cache. And the headers say, do not request me this file until a certain amount of time. So, the next time you're browsing a page, and this page has the same JavaScript, then it's not going to download it. It's going to get it from the cache, right? And this is a fairly common practice. I did a bit of crowding on the top 100, 100,000 websites, and I see that 43% at least have an external JavaScript. Can you guess which is the most popular JavaScript library in the world right now? Google. Which one of Google? Google Apps. Google Apps? Google Ads. Google Ads? No, you're wrong. Google Analytics. Google Analytics. You're right. And the second one is the Jig Query. So, the first one is Google Analytics by far, followed by Jig Query, and then you have SWF Object, which is basically the library used to load Flash objects into your page. Google Ads is fourth. And then you have Prototype, which is another JavaScript framework. So, all of these guys are JavaScript libraries shared. So, some of them are different. Google Analytics is shared. You have one instance of Google Analytics shared by everyone, and some people have their own version of Jig Query, right? But all of them are external JavaScript files embedded into the page. So, the attacks already work like this. One time, let's say in the middle, after a huge work, you go back to a coffee shop and you browse your email. So, at that point, you are in the middle. You have an insecure network, let's say, as in the DEF CON. You connect your laptop and God knows what happened to you. Well, in this case, what we know for sure is that there is a guy who is going to do a man in the middle. What happened during this man in the middle is you're going to request any page. It could be CNN. It could be whatever you want. And the attacker will stop this page and will add a link to a JavaScript library, which you didn't request. But it doesn't matter because you can modify any HTML. You can change the page, which is not over HTTPS. There is no integrity on that. And your browser will, after that, parse it and actually request it because that's his job. And at that point, instead of requesting it to the real server, the attacker will supply you a malicious version of it, right? So, later, you go back home and you might decide to write a blog post, like how awesome was the TalkBad memory. And you go there and you try to log in. And actually, bloggers use Google Analytics, I guess, or Gcoin, one of the two. And so you're going to go there. And instead of looking for the real JavaScript libraries, what he's going to do is he's going to load the JavaScript, the poisoned JavaScript library. And this poisoned JavaScript library will not trigger any error because it's already accepted. And this malicious library will actually steal your login and password over HTTPS. And you will see nothing. It doesn't matter if you move any location. As long as you didn't clear your browser cache, it will be in effect. And as I said, a single library is used by many websites, which makes this attack so powerful is that Google Analytics is used by many, many websites. GQuery over CDN, Google CDN is used by many, many websites. So if an attacker is able to inject one of these libraries to you, he's going to compromise the law of your HTTPS session. So you might say, hey, there is a defense against that, right? What is the defense against this one? You have a warning, remember? Every time you try to connect to a site over HTTPS which don't have the proper SSL certificate, you get a warning. Did you attend the talk before? So, yeah, you have this warning, fairly strong warning. Say, hey, this is not the correct certificate. The domain name mismatch. Do not click through it. The Firefox one has three clicks until you get to the point. So every time the attacker tries to connect to a bad library, malicious library, he will have to defeat this warning. So how do we defeat that? Well, the first thing is you can always trust the user to do the bad choice, right? Just trust the user to just ignore the warning and go through. And actually, the user is kind of right in this case. So this is Twitter.com, right? How many of you have a Twitter account? Okay, so many people. So if you go to Twitter.com over HTTPS, it works. Now, if you go to www.twitter.com, you get this. Why? Because the Twitter certificate is for Twitter.com, not www.twitter.com. And actually, EV cert prevents you from having a wildcard in it. So until they have two certificates in two different IPs, they can't do that. Same thing for YouTube. If you try to go to youtube.https.youtube.com, you get a Google certificate, so you get a warning. So the user is kind of trying to disobey this warning. How many of you ever clicked through this kind of warning? Yeah, a lot of people as well. See, you're trying to not pay attention to this kind of warning. And even from quality shows that actually 92% of the SSR certificates have a mismatch. So it's likely that at any point, the user will go through them. Same thing if you think that the positive warning, like site identity, gives any idea and the user will pay attention to it. This is a Firefox study for Firefox 4. It's a heat map where users are clicking. The one you don't see is actually the one where you have HTTPS information. No one is clicking on it. So positive warnings don't work as well. This is a more detailed stat. And actually, the more expensive the SSR certificate becomes, the less people are clicking on it. And it's bigger, right? So... But... It wouldn't be a DEF CON talk if I was just saying, hey, just trust the user. What about we try to trick the browser into not displaying the warning so it's actually more effective? Right? So we're going to do that. The first one is IE. So this is a warning you have for Internet Explorer. It's a pretty strong warning, right? You have two red shields and it says, it's not recommended to continue. It will happen a lot of bad things to you. And they hope that the user won't click. Of course, he will click. But assume for a second the user is responsible like you and won't click. Then we can actually find a corner case where actually it's not displayed. Or it's displayed in such a weird fashion that you might be confused. Do you want to see a demo of that? Thank you. So here you go. So this is a page. We're going to click to the page with the bad warning. And this is the warning you get. This yellow bar on the top. And that's it. And what you can do is just display the content. Or display the content. There is absolutely no choice for you. And you're going to accept it, of course. And then when you go to Blogger, you're already dead by now. Right? It's in the cache. And now the SSL certificate on the top is valid, as you can see. And if I enter a login and password, I'm not going to give you mine. But then you see we are displaying it. And this will last until your browser is cached. And the nice thing about this vulnerability in IE is that you can do this. You can cache. When you click your display and secure content, we actually did cache five different libraries. So if you go to Twitter, over HTTPS, and you see the on the top. And we're going to do non-mixed content. This is not a warning because of the attack. But because on the bottom left, there is image over HTTP. So we're going to do fully over HTTPS. And you see the bar is green. Everything looks secure. You enter your email and your password. And guess what? Here you go. So no warning, no nothing. And you get all your SSL session compromised forever. Or at least you change browser or clear cache. How many people are clearing the cache? Everyone. Okay. I'm going to stop asking questions. Okay. So we found a bunch of these. Microsoft asked us to actually do not explain you how we find them until they are all fixed. So we're not going to give you any details. We're going to show you a screenshot. This is one other inconsistency. This one is really weird. Basically, they show you the name is not correct. And you have your certificate. But you don't have the right warning. So people might also be confused by this one. Although I prefer the previous one. Let's move to Firefox, right? So here is the Firefox warning. This one is different. They actually try to make it very painful to the user by doing three-click. So they hope that the user... It's not responsible but lazy. So it's not going to do three-click to get to the page. And actually Firefox do a very, very good job into displaying the warning. And sadly we didn't find any corner case where we are not able to display it. So we had to become more creative. How many of you ever heard about click jacking? Raise your hand. Okay. Half of the audience. So for those who never heard about click jacking, just one slide. Everyone on the same page. This is click jacking. So the idea is the attacker displays you a page like the best game ever. Download this awesome movie, Iron Man 2. What's the next new movie? Inception. You can click here to download it. And the user is going to do that. What happens under the hood is you have a transparent div on top of it which has another input box. And when the user is trying to do something, what will happen is he will click on this invisible button and do something he will regret later. Of course, here for Twitter, they have frame bursting defense so it doesn't work. But just to give you an example. So you click and instead of clicking to download or start, you're actually clicking on leaving Twitter. So that's how we solve the Firefox challenge is, well, sure, we can't remove it. But we can click jack it. And that's exactly what we're going to show you. So we were able to remove two out of the three clicks. So I assume you have this. You want to download something and you have a user argument. So you click on it. And actually you just click jack your warning. And you see only the last pop-up. The big warning is completely gone. And if I go to Twitter.com, same as previously, you're going to blogger. Sorry. Oops. If you go to blogger and enter your username and password, same story. The warning is the SSL is perfectly valid. And you see the shirt on the top, the blue indicator for Firefox. And you see the user and password. That's how you can do cache injection against HTTPS. For the third part of the talk, I'm going to let Baptiste show you how it works. And they're all yours. Thanks. So for the third part of this presentation, I will show you how we can actually steal private data from users using framework attacks. Framework attacks is an evolution of click jacking and scrolling attack. Click jacking, just presented previously by Ellie, is a term coined by Jeremiah Grossman and Robert Hansen in 2008. Scrolling attack is a new attack shown by Paul Stone in the Black Hat Europe this year. This attack works as follows. In the first step, the attacker will double frame the target website. Here in this example, it will be the mobile version of Yahoo Mail. In a second time, the attacker will use a browser feature called the Anchor Scrolling. This feature makes the page scroll automatically to a specific ID. When adding it as a hashtag in the URL. So here in this example, every email can be associated to a specific ID. For example, the first mail from Jocelyn is associated to the ID checkbox 29. So if I add this ID in the URL, automatically the page will scroll. Paul Stone showed that actually from the outside frame, the attacker frame, you can actually know if the targeted website scrolls or not. And at this point, it breaks the same origin policy because you can know if an element is present on the page or not. If the page doesn't contain any email, the checkbox element will not be present. So the page will not scroll. So we can actually know if there is any email in the inbox or not. In the following demo, here I will show you how we can actually conduct an attack against the mobile version of Yahoo Mail. Here you can see the victim inbox containing an email from me. So if I search for my email, automatically the page will contain the ID checkbox 29. So we can actually scroll to it. But if I search for a non-existing sender, the search will be empty. So the ID will not be present. We use this binary test to actually search in the inbox to know if the victim is present or not. So we can actually know if the victim received email from specific senders. Here, as you can see, I can know if I received an email from any of you from me. This is a very serious security breach. As you can imagine, you can actually know if the victim received an account in a specific bank or other drugs on a specific website, looking in his inbox. However, to prevent this kind of attack, framing attacks like click-jacking and scrolling attacks, most websites use a specific defense called frame-busting, which makes a framed page become the top of the page automatically. However, Facebook uses a slightly different approach. When framed, Facebook displays a huge dark div on the top of the page, which prevents the user from interacting with the content. But he's still able to see his information. But when you click on this dark div, automatically the page will frame-bust. However, it will not prevent us from scrolling to specific IDs. So we can conduct an attack, a framing attack on Facebook. Using three different IDs, we can actually know if the user is logged on Facebook, who he is, and who are his friends. For example, to know if he's logged or not, have you any idea for an ID we can try to check? Actually, we are not searching for a specific ID if he's logged. We are searching if an ID is not present on the page. For example, the registration form is shown only on a non-logged page. So if I frame the first page, it will not scroll, so I will know that the user is not logged. So here is the demo. On the left side, you can see the framing attack result. And on the right side, what really happened under the hood. On the real attack, it will be definitely not shown. Here, as you can see, the page on the right didn't scroll. So I know that the user is logged. Here, we are looking for the logged user and the page scrolled. So we know that the ID we are looking for is not the right one. If we search for the AD ID, here the page doesn't scroll, so we know who is logged. This is basically the same test to know the friendship relation, but using a different ID to search. But actually, Facebook updated their defense against this kind of attack. Just yesterday, well actually Wednesday, Facebook made a different defense. Now they don't display any contents anymore, they just display Facebook logo on the framed page. So we cannot anymore use framing attack on Facebook. Okay, that's it for this third story. I will really finish with maybe the more powerful attack in the fourth story. Okay, so for the last ten minutes, we're going to speak a little bit about this guy, smartphone. How many of you have a smartphone? Okay, once again, everyone. Good. So, I mean, it's not a surprise, it will not come as a surprise to anyone. A lot of smartphones have been sold. 54 million in this first quarter in 2010, so it's a lot of smartphones. This has two effects. The first one is AT&T is not working anymore in San Francisco. And the second one is many popular websites have rolled out a mobile version of their website to accommodate this kind of small device. And people might not realize that by now, but the browser you have in your iPhone, or in your Android phone, or Nokia, or Blackberry, is very, very different from the one you are using on your desktop counterpart. In particular, because there is a lot of new feature, which has been added for usability purpose. The screen is so small that what you try to do is to maximize the space which is used for display. And this actually conflicts with something we have been used for almost 20 years now, which is the idea that all the security indicators you have, in your browser, are located on the top of it, which is what we call the Chrome. So privileged version, privileged part of the... Okay. Wow. Impressive. Micro attack. Okay. So we try the Chrome. We really try the Chrome on the browser to display information, such as the URL that you can't spoof, and the identity. And the phone, people try to do full usability purpose, so they are trying to remove as many information which are closer to the screen. There is also something which makes them very, very different under the hood, is because phone, you're actually moving from one application to another, and since Apple did not decide to do multitasking yet, or to claim, then the cookie that usually expire when you close your browser, and the data couldn't write, do live into the browser forever, and basically they're not killing session cookie. So let me show you a demo of what I mean, because I think it's more visual than... and it would work a thousand words. This is Wells Fargo mobile website. Any Wells Fargo user here? Okay. Does it look like the real website? Completely? Yeah. And that's the correct ID. And if you see, the lock is here, and the URL is correct. The lock is correct. There is no warning. We didn't fake anything on this part of the list. And look what happened when you click on sign in. Here you go. Any idea how we did that? No fake keyboard. No, we didn't fake the keyboard. That's a capture of a real Android keyboard. Yeah, you get the correct idea. The problem with the phone, and I think if I show you this picture, people will see better what I mean, is actually we can draw an image which looks like a URL bar, which is not one, and actually we can use the usability feature to scroll to it. That is not our idea. It was in the paper. When we come up with the idea, we look back in the reference literature, and actually there is a paper two years ago. We say it would be very, very dangerous, and I think no one pays attention to it. I hope people will start to pay attention to that, and that's really... I mean, that's the most easy attack to do, right? You can display any website. We choose WebFago. We can choose Gmail, whatever. So there's a scrolling attack. What we want to show you is tap jacking. So what is a tap jacking? Well, you take a click jacking, you take the mobile phone, you squish very, very hard, and bam, you have tap jacking. And tap jacking is actually click jacking on a phone for a very, very good reason. Six months ago, we looked at how many websites are using frame-busting defense against click jacking, and this is the desktop part of this website, and you see that people are kind of doing a good job. Can you guess how many websites are using click jacking defense on their mobile site? One. Two. Like this, right? Yeah, that's Twitter and Facebook, because we went to them and knocked on their door. And say, hey, you should do something. Actually, how many of you remember the worm on Twitter which was in May 2009 where we actually had this thing which is a do not click here, and you try the user to disobey and click here, and generating more and more tweets? Do you remember this one? It was a huge one. We actually took down Twitter for at least a day. We were able to actually reproduce it on the phone. Here's the demo. And what happened here under the hood is you have an invisible iframe, and we are using a very cool feature from the phone, which is zooming. So basically, the tweet button is actually the entire screen. So it doesn't matter where you click. You're actually clicking on I want to tweet, and you're going to tweet something for us, and you don't see it. So if you go to Twitter.com, and we're not picking that up, we go to the mobile website, because at that time, they didn't have a frame-busting defense. We were able to do a tab jacking. Of course, we could have said, do not click on this link. Show us a game. Click on it, and do a worm. Of course, we're good guys. We didn't do that. So that was a tab jacking. Twitter was really, really efficient to fix that code, so now they have a frame-busting code, so this worm is safe. But I really hope that you will try to scroll up when you try to log to your bank and realize that, actually, if someone is using JavaScript, it will prevent you to do that. So it's kind of a plus right now. If I have two more minutes, what I want to show you is what we're going to demo. We're going to demo Sunday. Sunday, we have another talk. We hope you're going to join us. We're going to speak about game security and to show you how cool it is. Here is my invincible tank. You can see he's . And we're going to show you how we can do attack on a game on Friday afternoon. So I hope you will stay at DEF CON and come to see us. Track five. Thanks, everyone, for showing us.