Welcome to the annual DEF CON convention. This meeting was held in exciting Las Vegas, Nevada from July 9th through the 11th, 1999. This is video tape number 40, Security Problems Associated with Giant Sign Scripting. And what we do is we find and we fully disclose the holes that we find in these web services. So what kind of holes are these? Okay, these are the kinds of holes. By holes, I don't mean hacking into eBay and changing their website, posting up some alternate message. What I mean is gaining access to an arbitrary website. An arbitrary number of usernames and passwords from the eBay servers or the Hotmail servers, Exciter, Yahoo Mail, things like that. And the way that, what we focus on really is not working at the level of networking. So we work a little bit higher. We work at the level of the application itself. So we're not going in and we're not trying to compromise a firewall. Okay? We're not taking root on the server. We're actually taking advantage of holes that are in the web application layer. So hypertext transfer protocol and above the actual application itself. Okay. And we'll see how that's done. And some of our targets have been, like I say, Hotmail, Yahoo, eBay, Lycos, Eudora, a whole bunch of services powered by iNet Address and ExciteMail. So, yeah. So we are going to spend some time talking about Java, JavaScript, VBScript, Shockwave, and all these client-side technologies. Okay? Because the way, it's funny, a lot of these large corporations spend a lot of money, a lot of energy, pay a lot of attention to gaining a really secure network. And it turns out that the application itself is inherently insecure. So you don't have to know a bloody thing about networking in order to get in and compromise the system. And frighteningly enough, you don't actually even need to know a lot about server-side, I mean, client-side programming. A few lines of JavaScript is all it took to gain an arbitrary number of Hotmail usernames and passwords. Okay. And just a little bit about our resources. Like I say, we're a small group and everything we do is pretty well financed out of our own pocket. We run our stuff off really old boxes, 486s, running free BSD, and we lease a backroom space from our internet service provider. Our major cost is our internet service provider, which is about $200 a month. We do most of our work from home. So we don't collect any money from the holes that we find. We don't have any form of advertising or sponsorship, and we don't sell a product or a service. So we all have, you know, day jobs, and this is sort of what we do when we come home and to unwind, I guess. Okay, so the philosophy behind these sort of the exploits that we find, like I say, we find that in order to, when we do find a major hole in a large web service, we find that the best way to get it fixed is basically to fully disclose the nature of the problem. That means provide full source and instructions on how it can be done, and also, and this is really helpful for working with the media, actually provide an online working demo so that anybody can go, go to the site and pop credit from themselves. And, you know, there was a really interesting talk yesterday about a fellow here that was talking about how to, how you can interact with the media. And he was suggesting that you shift the onus to the hacker to educate, educate the media. Whether or not that's fair, that's actually the case. And my recommendation is that don't let the media write your story. Write your own story. Put it up on your own website and then just point them to the website. That's the best way for them to get the facts straight. Okay. Anyway, the net result of finding these holes is that they result in a better web-based service. Okay. So the whole point of finding these security holes is to improve the service, not to go out and, you know, bring them down by storing thousands of user names and passwords in a database and then writing a program that does some funny stuff. Okay. So in the experts we found, there's been sort of a funny kind of a pattern, a life cycle, almost, to the exploit. It tends to be the same thing over and over again. When you find a hole, and again, I'm focusing on these holes that are accomplished through client-side programming. Generally, the first thing we do is we warn the web-based service that they do, in fact, have a major security hole. And it's quite common, actually, to get ignored or banned or just plainly refuted, or all three. So the next step, the next thing that we do, is we post a working demo on the source code on our website. After that, usually, the web community picks up on it. It gets into bug tracking news groups, and the web media picks it up. Align.com and news.com and slash.com and things like that. And if it generates enough interest, which is usually the case if it's a major enough hole, then the paper media picks it up. A local paper or a national paper or something like that. And it starts getting thrown around the papers. And basically, once the web media picks it up, the online service itself will have a knee-jerk reaction. And they will quickly try and fix the problem overnight, which is a sort of a, uh-oh, patch. There's a major problem, and that suddenly the information is posted out there on the web for anyone to see. And the first thing that they want to do is they want to patch the problem as quickly as possible. So generally, they will put out a patch that specifically targets, uh, the, uh, the demonstration that's been put online, right? Without actually, in many cases, solving the underlying problem. So it's not uncommon for them to release a quick fix and then to be able to compromise that again the next day. Which is pretty funny. And, of course, the net result is that we all get rich and famous. Well, not rich and famous. But it does result in a better product, and we feel much better about ourselves. Okay. So, just briefly, I'd like to talk about, just to sort of set the stage for, uh, set the stage for understanding how, how can it be so easy to gain access to all this data sitting behind ultra-secure firewalls, etc. To set the stage, I'm going to have to talk a little bit about, um, HTML and the interaction between a web client and a web server. Okay. Okay, so HTML in brief. Let's get this over with in 22 seconds. Just out of curiosity, how many people here actually have worked in HTML? Oh, the vast majority. Okay. And I was sort of thinking that you were all networking gurus that, uh, didn't bother going up that high. Okay. That's cool. Okay, so, in that case, I, I really can make this brief. As we all know, at its simplest, uh, HTML is, uh, is a series of tags that, that's applied to a text in a text document to mark it up so that when it's displayed by a browser, the browser will, you know, to make a, a long story short, so that the browser will know how to display it, right? How to format it, what images to display, um, and things like that. So, yeah, the browser reads the tags for information on formatting, uh, you know, creating hyperlinks, displaying images, and that's really what a super simple web page is, right? At its heart, the web is all about text and images. At least that, that's what it was originally. And then, the web became more complicated than that, right? Suddenly people, well, actually this was built in from the very beginning, but the web became more complicated because we now had the power to do server-side processing, right? We had the ability to tie the front end into a back end through HTML forms. So, that's server-side processing, right? CGI scripting initially. So we could connect the front end to the back end. And then another cool thing came along. Suddenly we found that we could do client-side scripting, right? So using things like JavaScript, Java, Apple, Shockwave, Flash, right? And all the stuff that comes in with the plug-ins. Suddenly we had the option to either do processing right in the browser itself, or to transfer all the knowledge or all the data that a user fills out in a form, send that back over to the server, and then have the server do some form of processing and create a follow-up page. Okay. So. The link between the front end and the back end. Let's look at that. Okay? Because I want to talk, focus a little bit on the back end. The server-side programming. The link between the front end and the back end is an HTML form. What is a form? A form is just a collection of graphical user interface elements. Right? So things like text boxes, text fields, radio buttons, check boxes, things like that. Right? That's a form. And it's implemented as an HTML tag. Okay? Now the tag, that form tag that makes those graphical user interface elements also provides other information. Okay? It also points to, you can see up here. Here's an example of a form tag. Right? You can see that actually, it has an action attribute there that actually points to the server-side programming that's going to process the form data. Right? It also has an attribute called method, which can either be set to post or get. That just basically, that basically specifies how the data is going to be transmitted to the server. And here you have some input tags and those actually create the graphical user interface elements themselves. Okay? So in a form you have two things. The form allows you to create the graphical user interface elements. And inside those, inside the form, the form holds the data. Okay? That the user will be typing in. Okay? So if you have a name and password field. Right? In a web application, someone types their name and password into a form. That data is a part of the form and can be accessed, as we'll see later, through client-side scripting. Okay? It's considered to be a part of the form now. Accessible through the document object model, which I'll talk about a bit later. Okay. So anyway, the big picture is that the form ties the front end to the back end and it contains the data that people fill in in the form itself. Okay. So people go to the form. They fill out all their information. They fill out their username. They fill out the password. They click the submit button. And what happens? All that great data in the form gets packaged up and sent over to the server-side program that is specified here in this action field. All right? So it gets sent over to the server-side program. The server-side program takes those name-value pairs, in other words, the data from the form, does something useful, who knows what, and then creates a follow-up page. Okay. We're all familiar with this. I'm not going to belabor the point. But, you know, we've all used search engines. Right? We've all, many of us have probably used webmail and e-commerce sites. Okay. This is the basic premise behind all that cool stuff. Okay. Most of the time, you're actually just sending the data over to a server-side program. So what is the form? The form really constitutes the basis of a web application. Right? It's pretty hard to have a web application or a portal site or whatever you want to call it without using forms, without tying the front end to the back end. Right? This form will contain user authentication information. In some way, shape, or form, a web application has to keep track of its users. Right? It has to keep track of who you are. What are you ordering? What's your credit card number? Okay. But the basic user authentication information is quite likely, quite often, passed back and forth between the client and the server. Okay. So usually, just by looking at a form and a page, you can pick up a lot of really useful information. So the bottom line is that when you are in a session with a web application, what you don't want is you wouldn't like it if somebody else could see the values inside your form. Okay. Because that's your data. It's your username, your password, your credit card number is what's sitting in that form. Right? And generally speaking, it would be pretty hard for someone to be able to reach into that form and grab that data out of there. Because it's on your webpage. Right? Nobody else has it, just you. Everybody has their own username and password embedded in the form that they get from the web application. So what's the problem? How can there be a security hole? Well, to understand that, we have to have a look at the other side. Let's look at the flip side now. Let's just look at the client side. Let's say we want to do processing but we don't want to communicate with the server. Right? We don't want to send all that data back to the server for processing. We want to do it all in the browser itself. We can do that using client side technologies like JavaScript, VBScript, Shockwave, Flash, Java applets. Okay? So of those, you can sort of break all those client side technologies down into two major groups. In one case, the actual code is sitting right inside the HTML document. Okay. So it's right inside script tags, smack right there in the HTML document. Okay? Examples of that are JavaScript and VBScript. In the other case, the code is not sitting right in the HTML document, but it's actually sitting in a separate file on the web server. And what the browser does is the browser has to go fetch that file, download it, execute it. Okay? So either the code is directly in the HTML document or it's in a separate document, like a class file if it's Java. Right? Okay. So which of these, out of these two categories, which is the most powerful? Which presents the biggest threat? Well, we all present a threat. We've shown holes with both kinds of client side technologies. But generally speaking, category A is more powerful. Okay? Category A has more direct control over the document object model, has more control over being able to manipulate the different aspects of an HTML document. Okay? So JavaScript and VBScript are more powerful. And of those two, JavaScript is more powerful simply because it's supported in more browsers. Okay? JavaScript is supported in both Netscape and Internet Explorer. Although I'm sure Microsoft is calling it JScript or something ridiculous like that. Oh, I already seen that one. I think we just saw this one. Okay. So how powerful is this JavaScript anyway? What can it do? What can it not do? Okay. Well, first that's, I mean, it's very powerful. So let's start with what JavaScript can't do. Okay. JavaScript cannot reach into the local file system. Okay? And that can be very powerful. and I know that you can use JavaScript to set cookies and stuff, but in general, JavaScript cannot reach into the local file system. So you don't have to worry about downloading somebody's HTML page and having a rogue JavaScript applet, or a rogue piece of JavaScript that's going to go deleting your hard drive. JavaScript can't reach into your local file system. Now what it can do, there's another restriction that I want to talk about, how many of us, well I suppose that if many of us are familiar with HTML, we're also familiar with framed documents, right? So that's when you go to a website and the website is broken up into frames, each frame holds a different HTML document, right? So in that case, the website is containing more than one HTML document at a time. Can JavaScript be in one of those documents and reach over and manipulate what's going on in one of the other frames? It depends. If the HTML document in those other frames is basically coming from the same, same domain, no, it can't. If it's a different website entirely, no, not really, it can't. Same applies for actually having another browser window open at the same time that has another HTML document loaded into it. Okay, so that's what JavaScript cannot do. What can JavaScript do? Well, JavaScript can do a lot. Usually it's used for things like validating its legitimate uses, or things like form validation and image swapping. You know, when you surf around the web and you move your mouse over and then your bar in the image lights up or something like that, right? That's done with JavaScript. Or you type in, you go to a page and you type in your name and you click the submit button, but you forgot to type in your last name. Even before the browser bothers to contact the server, a client-side process will occur where it validates a form input to see whether or not you forgot to fill in one of the fields, right? So that's called form validation, you do that with JavaScript. Now, what makes JavaScript powerful is that we can open up a sort of HTML document for output. So it can write arbitrary text to the browser. So it can create a follow-up page, right? It can dynamically create an HTML document, okay? It can also look around in the HTML document that it's embedded in, okay? So it can, if there's also a form on the same page as the JavaScript, or even in a separate frame that it has access to, the JavaScript can reach right into that form and pull out whatever data is in that form, okay? So JavaScript can suck the data out of a form. Now, so far, it still isn't clear how this could compromise security, right? Because the JavaScript is on your page, the form is on your page, right? Or the page of an internet service provider. So why would anybody write JavaScript to compromise their own form? Well, let's see what the problem is. Actually, before I tell you the big secret about how it compromises security, there's one more thing I want to cover. Is JavaScript only limited to, is its power only limited to the client side? Or can it actually interact with the server? Well, it can't directly interact with the server. But like I say, what it can do is it can read information from the form. And what it can do is it can also send data, okay? It can basically redirect the browser to a new arbitrary URL, okay? So using a GET request, it can actually contact any server-side provider. It can send that data to the backend program anywhere on the web, okay? So it could read the information from the form and then send that data to an arbitrary server by a GET request. Or it could change the data in the form so that it's sending bogus data to the backend program, right? And also, like I say, it can redirect to any, it can create dynamically any follow-up page or it can redirect to any existing webpage on the web, okay? So it's still not clear how this compromises security. I'm just giving you a taste of the power of JavaScript. Okay, but what we've learned so far is that, obviously, JavaScript can manipulate an HTML document in which it is embedded, okay? So it has almost total control over the HTML document in which it resides, as well as being able to control follow-up documents or documents in other frames and windows from the same domain. So, given that information, would it be wise to allow a user to post their own JavaScript into a browser? Would it be a public web application? If you were a portal, okay, if you were a web service provider, would it be a good idea to allow users to post JavaScript onto the same page as your own forms, the forms that thousands of users are going to be using to authenticate themselves and send data back and forth to your service? Hmm, let me think about that. No, it's not. Okay, but surprisingly, surprisingly... It happens all the time, okay? So what are the susceptible online services? Well, the susceptible online services is any web application that gives the user the ability to post HTML, okay, including JavaScript, that will be incorporated into the website's own HTML content and then viewed by other people, right? So what are some examples of these susceptible services? Things like webmail, online auctions, web-based chat rooms, basically any service with a chat area, okay? So that's just, those are just some general categories, but basically any service, okay, any service where a user can post their own stuff into the web application is walking on thin ice. So let's have a look at webmail services. Okay, so what we were able to do, we posted online working demos that stole usernames and passwords from Microsoft's Hotmail using JavaScript, both before and after they released a patch, Yahoo Mail using Java, and Microsoft's Hotmail, again, using Shockwave. And we also found vulnerabilities in the webmail services of Yahoo, Lycos, Eudora, Excite, Eudora, and all the sites powered by iNet Address and Mail Excite. What was the real-world effect if this had gone unnoticed? Well, the implications of stealing usernames and passwords from these services is that it's not a good thing. It allows the bad guy to, in the case of a webmail service, to delete, send, and read the victim's email, okay? To check other mail accounts by mail checking. For those of you that use Hotmail, you'll know that you can configure it to check email on your other accounts, okay? Access the address book, change the password of the webmail account itself, play around with preferences. Basically, it's just, you wouldn't want a script kitty getting into your webmail. And I know I won't help you crack Hotmail to find out if your spouse is cheating on you, just to answer a lot of the email that I tend to get for some reason. Okay, so how does it work? How is it that a large webmail service, how is it that posting JavaScript can affect a large webmail service? Okay. Here's... Here's... Here's one example of an algorithm that illustrates the problem. Okay, so imagine that you've logged into your Hotmail or some other webmail account, right? And you send someone an email, okay? And in many of these webmail services, you're allowed to use HTML to, you know, make your email a little more interesting, right? Maybe you want to send an image, right? Maybe you want to include a shockwave or something like that. So... So many of these webmail applications allow you to include HTML. So imagine that your email, your webmail, actually contains some script tags with some JavaScript in it. Okay, so you send it off to the other person. The other person checks their webmail, and what happens when they view the page? Well, the JavaScript starts running, and the first thing that it does is it sucks the authentication information from their form. Okay? Then it goes and it changes every hyperlink in every frame to point to a different server-side program, not Hotmail, for example, but instead your own server-side mailing program, okay? To be more specific, you're pointing to a server-side mailing program, and you're including your own query string, okay? Your own information that you're going to send to the server-side program. And what information might that be? Well, in a worst-case scenario, it could be that authentication data. Right? The username and password, for example. So the JavaScript redirects to this mailing program. The mailing program sends the username and password off to who knows who? Mr. Bad Guy, I guess. And the mailing program itself then does a redirect and sends the user back to the normal, legitimate follow-up page of the web application so that, in their eyes, nothing unusual has occurred. Right? It's all transparent to the user. Now, up at the very top, I think. Let's say that this is webmail x.1, snagging username and password old. And the reason that's old is that very few webmail services now will include any really useful or directly useful authentication information in their forms. Usually, it's a little bit hard to decipher. More like a session key or something like that. Okay. So this may have worked a little while ago. It may work in the smaller services still, but generally, it wouldn't work that well nowadays. Okay. Something a little trickier. Let's have a look at how you could get the same effect using spoofing. Okay. So again, you go and you send someone an email that contains JavaScript. Now, this time, again, the JavaScript alters every hyperlink in every frame of the web application. Right? So guaranteed, at some point, someone is going to click on one of these rigged links. Right? Right? Right? Right? Right? On those links. The JavaScript dynamically creates a follow-up page. What does a follow-up page look like? Well, the follow-up page is an exact duplicate of a legitimate page that says, well, you have just timed out of this service. Please re-log in. Enter your username and password. Right? And these web service applications generally really do have a page that says that. Right? So in this case, you make it look exactly like that. You inform the user that they've timed out. Of course, they really haven't. Right? And then they wonder, ah, didn't they experience that moment of frustration? Like, jeez, I didn't time out. Oh, fine. Whatever. And then they go and they type their username and password back into the form, which you conveniently provided. And of course, that form is of your own engineering. And where does it point to? Well, again, it points to, let's see, and this is, what does it do? Yeah. So in this case, you. Once you've gone that far, really, it's in your domain. Right? So you can do whatever you want with it. You can redirect to a service side mailing program, mail it back to the bad guy. This is not so old. This is, I think this still works, actually. We pointed this problem out in Microsoft's Hotmail service, and they came up with a couple patches. But as far as I know, it still works. It works for their, you can't actually send data in the message body of an email, but it still works as an attachment, using, not using JavaScript, but using another client side technology, which I'll leave you to figure out what it is. Okay. Example three. Here's another twist on the same theme. So let's say that the web service provider finally catches on, and they say, hey, wait a minute. This JavaScript is bad. Bad news. That's it. I am filtering out JavaScript. So, fine. They filter out their JavaScript. Does that mean that the web application is now secure? Actually, no. What happens is, it turns out that you can do the exact same thing using slight twist. You can do the exact same thing with many client side technologies. Okay. So let's have a look at how you can do it with applets. In this case, you send someone an email containing a Java applet. What does the applet look like? Well, it doesn't have to look like anything. It can just be a one pixel by one pixel app. Applet that is white on the white background so the person can't even see it. It doesn't have to be a visible applet. Okay. So the, obviously, the user receives your email. They receive the applet. And the applet starts running. And what does the applet do? Well, it turns out that applets have a method available to them that can actually load our HTML documents into a specific frame of the frame set. I think it's called set applet.com. Text or something like that. So the applet itself has the ability to load an arbitrary HTML document into a different frame. Okay. So what does the applet do? Well, it loads a, now, for those of you that are familiar with web mail service, you'll know that it's a framed environment, right? On the left-hand frame, you have your control panel, right? It's like, you know, compose new mail, check mail. You can do whatever, all these options. And the right-hand frame, you actually have email messages themselves, right? So what does the applet do? Well, the applet goes into the left-hand frame, the frame that contains all the, basically, the control pad for the mail service. And it replaces it with the bad guy's own HTML document, which, lo and behold, is an exact duplicate of the control panel, okay? But, of course, it's been engineered to do something slightly different. Okay. This new control panel is engineered so that every single link on the control panel basically is a link to load, guess what, a timeout message into the right-hand frame, again, from the bad guy's own UI server. Obviously, that page is totally under the control of the bad guy, and whenever the user enters their own re-login information, it's sent right back to the bad guy. Now, it turns out you can also do the exact same thing with Shockwave. Now, the interesting thing here is that in the eyes of the browser itself, no security violation is going on with JavaScript, right? Because where is the JavaScript? The JavaScript is in an HTML document that's actually being served out from the web service itself. As far as the browser is concerned, that JavaScript is Hotmail's JavaScript. It has free reign to go into any frame, change whatever it likes, alter the forms, right? And why? All because... The web mail services allow people to post up their own JavaScript, which then gets incorporated into their own page. See, that's the problem. Once that JavaScript is incorporated into their page, it has free reign. Okay. Web-based auctions, same general idea. We posted an online working demo of JavaScript exploit that stole usernames and passwords, using keywords of eBay users, and also, interestingly, it can be extended to replicate itself by inserting itself into people's own auctions, and this was coined the eBay-la virus, and it caught a little bit of media attention. That was a pretty funny name, I thought. eBay-la, Ebola, get it? Okay, so what is the exploit? In this twist, you post an item up for auction at eBay, and I don't know how many people here have actually been to eBay. Right. Okay. So you know that when you post an item at eBay, right, all the items have associated descriptions. And when you go to post your own item up, there's a place where you can type in your own description of what the item is going to be, right? And eBay has decided to let you use any sort of HTML tags you want in your description of the item that you want to sell. Uh-oh. So, in your description, you type out your script tags, insert some JavaScript, and what does this JavaScript do? Well, let's talk a little bit about eBay. It turns out that when another person comes, right, to view your item that's up for auction, what does that look like on the screen? Well, there's a description of the item, right, and right underneath the description of the item is, oh, a form, so that if you want to bid on the item, you can enter your username, password to make your bid, right? So, basically, the description of the item is on the exact same page as the form where you enter your username and password. Uh-oh. All right. That's bad. Because, as we all know, the item description contains JavaScript. What does the JavaScript do? Well, the JavaScript will immediately start playing around with the form, okay? And there's a whole bunch of things that it can do. It can suddenly say, well, yes, thank you for typing in your username and password, but I don't think we'll be sending that to eBay right away. First, let's send that off to Mr. Badger. And, uh, on a server side mailing program, that does a redirect to a normal, back to the normal eBay follow-up page, right? So, from the point of view of the user, what's happened? They've seen an item description. They placed a bid on it. Next page. They're told that their bidder was registered. Great, right? From their point of view, nothing unusual has happened. Okay. So, what are the implications of, in this case, with this web application, what are the implications? What are the implications of stealing the usernames and passwords? Well, in this case, you can use them to, uh, create new options. And, uh, what does that do? That actually automatically charges the victim's account. Right? So, suddenly, we're not just dealing with, with, uh, email. We're dealing with real money. You can place the bids in the victim's name. You can retract legitimate bids in the victim's name. You can change the victim's username and password. You can prematurely close an auction. And, uh, also, eBay is, uh, has, uh, you know, it's, it's a, it's a, it's a, it's a really big, really, really, really powerful, server-side programs that allow you to change the description of your own item even after it's gone up for bid. How do you do that? You enter your username and password. So, if I know your username and password, if I've stolen your username and password, and it turns out that you, yourself, are an eBay user that is running an auction, well, now I can go into your auction, post my eBay code into your auction. Right? Right? That can actually be done automatically, so that in effect what you have is a virus that is spreading from auction item to auction item. Somebody goes to the auction, they place a bid, if they themselves are running an auction, bang, suddenly the code is in there, auction item description. Now that was never actually, I never actually wrote that, I just wrote, I never wrote the self-replicating kind, although it would have been trivial to extend it. And eBay eventually patched the problem after two and a half months. Okay, so that's the bad news. What's the good news? Is there a way that designers can take advantage of this information to improve their site? Yes there is. Okay, if you're running a kind of a web service where users must be allowed to post their own HTML content to public areas, okay, especially to public areas that contain forms, right, then you should take the following steps. One, filter the content for client-side processes slash tags, right? So try, you know, it's hard, but at least make the attempt to filter out script tags, applet tags, shockwave, flash. Things like that, okay? And when the time does come for you to write your filtering software, a common mistake that I see is that the programs are written from the perspective of filtering in, from filtering out instead of filtering in. What's the difference between filtering out and filtering in? Well, it's the difference between starting from the premise that you're going to let everything in, except for that, that, that, and that, as opposed to saying, I'm not letting anything in. Except that, that, that, that, that. The latter is what you want. You want to start with the premise, I'm not letting anything in. Well, okay, maybe some plain text. Well, okay, maybe hyperlinks. Maybe this, maybe that, right? So be choosy about what you let in. Don't try and figure out everything that you want to filter out because, you know, there are a lot of sneaky ways to embed JavaScript and client-side processes into a web page. And there's no way you're going to be able to keep up with the technology. The evolution of the technology. It's much harder to try and keep up with all the latest tags and all the different ways to embed it in the HTML than it is to just say, I'm not letting anything in, except you, you, and you. And one of the reasons that it's really hard to filter out this client-side technology is because you can write a filter. Sure, it's easy to write a filter that will go in and, you know, filter out all the script tags and stuff. But, you know, to do that, your program is going to have to be looking for certain tokens. Right? It's going to have to be looking for HTML tags that have a certain structure. But browsers are so flexible. It turns out that even if you do type in a tag, and let's say you leave out the closing bracket, well, the filter won't pick it up because it's not a well-formed HTML tag. Right? But the browser will figure out what the person is trying to do. Okay. So it's just really hard. Don't even try. Don't even try to pick out what you want to, you know, filter out. I strongly recommend filtering out. Just bring it in instead. Okay. Also, if you really must allow your users to post JavaScript information, to post their own JavaScript content, display it in its own browser window. And you can use your own JavaScript to make sure that that new window does not contain a reference to its parent window. Okay. That way, any JavaScript that's posted by a user will not be able to make a reference to the parent and will not be able to go and start playing around with anything other than the window in which it is displayed. And obviously, you should never place a form on the same page or a follow-up page from all unfiltered content. So those are just some tips. Hopefully, it will propagate its way back to the designers of web applications. It's, like I say, it would be great if this information was used to maybe shift, at least in some cases, you know. It's great to have excellent network security. It's really great to have great network administrators and have a totally secure network environment. But, hey, if your web application itself is insecure, you're spending a lot of money to protect stuff behind a firewall that can be accessed, you know, in a few lines of JavaScript, right? So what are the priorities? Okay. I'll take some questions now. And, unfortunately, I have to leave in half an hour and go back to Canada. But I'll be out by the pool for about half an hour if anybody wants to talk to me before I leave. And I'll take some questions now. Thank you. . Well, when I say the web, I'm talking about webmail applications, right? So I'm talking about things like Hotmail and stuff like that. Now, there is also some ability to tinker around with things like Outlook and stuff. If you can shut off JavaScript, I mean, if you're paranoid, yeah, turn off JavaScript. But JavaScript isn't the only problem, right? Yeah. . . . . . . . . . . Could you either say that louder or can someone in the front repeat that so I can hear the question? Yeah, there have been a lot of, there's sort of been a stream of holes that have allowed you to do things like that. And yeah, sure, another approach is to look into your cache and stuff like that and mail that back. Usually the most, for the purpose of our demonstrations, you know, it seemed that the most, the way to catch people's attention that there's a security problem is to just steal the usernames and passwords because that, you know, the goal is to get the media's attention and to create a solution to the problem. So you have to do something that people can identify with. That's right. Everybody knows what it means to steal a username and password. But yeah, obviously, you know, this isn't the only thing you can do. You can use this. If you're a designer of a web application, you want to patch this because, you know, I'm sure there are much more creative ways to do bad stuff than I've been able to show up on with my overhead. Yeah. Can you bring up the concept of using all of those for using the edge of the application that you're using? Yeah, well, cookies are just, I think it's a good question. Cookies are just another technology at the disposal of someone that's doing client-side scripting. So it's just a facet, something that you can take advantage of if you want to, you know, if you do suck some information out of somewhere, you may want to store it in a cookie for whatever reason. Cookies in and of themselves are not inherently dangerous. They're just a tool. There's nothing particularly inherently dangerous about a cookie. Okay, I guess I'm running out of time. So thanks a lot. Thank you.