Here, y'all hold that one. Well, don't clap yet. You might not like it. We're here basically to want to talk about Lotus Notes and Domino Security. My name's Chris Goggins. I'm with Security Design International. And we have with us Kevin McPeak, Patrick Gunther, and Valter Acuma from Trust Factory. Yeah. That's the one from the sub that you saw in that movie recently. So basically what's... Before we... Before we go into this, I just wanted to touch on something. I understand there was a little talk a few days ago where someone didn't particularly like the idea of disclosure. But you know what? There's a whole difference between reckless disclosure and responsible disclosure. Now, reckless disclosure is someone who doesn't give anybody's customers, vendors, or what have you, any heads up and just blast the thing with exploit code so that everybody in the world can suddenly break into things and catches everybody off guard. The idea of responsible disclosure... Which we've tried to do with the series of vulnerabilities that we're going to talk about here. We've been working with Lotus, made them aware of things, been working with very large notes deployments throughout the world. Trying to make people aware. And just so I don't disappoint anybody, some of the tools you're going to see demonstrated in here, we're not giving out. But once we tell you how it's done, those of you who are clever in the audience will probably turn right around and do so. And what you do with them at that point is strictly up to your conscience. So. So. Sorry, Marcus. Here we go. Basically, some time ago, Trust Factory contacted us and said, listen, we found a couple of things that look a little weird. Can you help us? We want to take a look and validate that these things are real and then work with us to try to make sure that we can get the maximum exposure. That's what's bringing us here to DEF CON. With all the media and everything that DEF CON's turned into, I would imagine we'll probably get a little bit of exposure to this. And in working with Lotus, Lotus, when we told them we were going to do a... a presentation on note security at DEF CON, they said, go for it. So, we're here with their blessing, although I really don't think they knew what DEF CON was when they said that. So, starting off. Basically, for those of you who don't know what Lotus Notes is, you probably won't get anything out of this at all. But just for your benefit, so you can at least follow the bouncing ball, Lotus Notes is basically a secure groupware platform. It gives people the ability to have email, various applications, web and database connectivity. It's basically a little secure sharing service, right? Lotus Notes is also really powerful in that it has several different ways in which you can write applications that run native to the Notes environment. It's got its own little formula language. It's got its own macro language called Lotus Script, which is really powerful. And you can use it to basically manipulate anything within the Notes environment. On top of that, it'll support things in JavaScript and in Java. And there's a C++ API. That you can actually code external applications to talk directly into Notes. And through that, there's also a way to talk to Notes through Olay-enabled applications by using a Notes.NotesSession Olay object. So, you can actually do things with Word macros and talk to things. But I'm getting ahead of myself. Now, to give you an idea about how big this is, Lotus says at this point they have approximately 60 million corporate users worldwide. That's kind of a lot. Now, the majority of these are running on version 4.6. It's probably the most user-friendly and it doesn't take up nearly as much space as the later versions. The remainder is running on 5.0, the various versions and releases of that. To give you an idea about the kind of places where Notes is, you'll be hard-pressed to find anything in the global 1,000 that doesn't have some sort of Notes installation within their corporate environment. Just in terms of customers that we've worked with, large power companies, telephone companies, big manufacturing concerns like a lot of major big computer manufacturers, pharmaceutical companies, petrochemical companies, most of the major defense contractors. Those of you, some of you are in the audience, know. Government installations, state legislatures and federal legislature, military systems, intelligence agencies. Again, everybody who's been spotted from CIA and NSA, you know exactly what's going on here. And for those of you who we probably talked to before, who came here to see the talk, hope you enjoy it. The CIA is probably one of the largest users of Lotus Notes out there. They pretty much store everything they do within Lotus Notes databases. Going into financial services, big accounting firms, especially those, you know, any of the major big five accounting firms are all using Lotus Notes in order to keep track of merger and acquisition data, corporate tax information, and any professional services project that they need to schedule. Banks, insurance companies, and the list goes on and on. Now, why on earth would all these people use this? Well, Lotus Notes is known as a secure platform. It has a lot of security features, specifically in the way it implements its own little public, its own little PKI implementation. It has a strong mechanism for authentication. And it gives you a facility using your Lotus Notes ID file as a key to actually encrypt different databases. It provides access control on a bunch of different levels, including the server, database, document levels. Even within particular fields in the document view, you can set an access control. And for our friends in the government, it meets the standards. It meets the DMS requirements. So that's probably why a lot of you use it. Now, in the coming hour, we're going to demonstrate a lot of stuff. And it's going to go by really fast. So I'll preface this now by saying the slideshow will be available on our websites after we're done. But we're going to go through several vulnerabilities, including two new kind of major security vulnerabilities that exist with Notes. The first one has to do with bypassing the Notes execution control list feature. And the second one is probably the most serious. It's the scariest vulnerability I've ever seen. It basically allows you to use a Lotus Notes password hash and a stolen ID file to authenticate to the server without knowing anything about the password embedded in that ID file. So these attacks, as you might imagine, can allow users to gain complete control of the Lotus Notes network in a matter of seconds. And it will give you the facility to completely hide your tracks. Now, I'm going to turn it over to Kevin McPeak to continue on with some intro vulnerabilities. Hi, I'm Kevin McPeak. You know, I have to give a little disclaimer here. Sitting up here, I just now realized there's a whole bunch of people from the intelligence community. Being someone from Texas who's now started his own security company in the Netherlands, it looks a little funky. So I don't need anybody. And I would ask. I don't need anyone pegging me or raising any red flags. Please don't kill Kevin. Yeah, please don't kill me. I'm still loyal to this country and all that good stuff. We're out here just to make better software. All right. Some of these vulnerabilities here, which we're going to be detailing, actually fall into the following categories, in which a particular user could commit acts of vandalism. Theft, fraud, and all those combined together enable an attacker to conduct informational warfare. And this is quite a serious issue because there's a lot of government agencies, as Chris outlined, as well as commercial organizations that are just trying to go about their business and do it securely. Now, some of the things, I'm actually going to set this down. Try to go on the ones that are here. Several of the major one security problem that we have that we commonly find is security consultants auditing notes installations are problems where users have misconfigured settings because they don't know what they're actually doing or using the default installation settings of Domino. Now, this may seem really simple and everything else. Everyone should know better. But nobody does. I would say over 80% of the installations we've audited have this problem inherent in their infrastructure that they've rolled out. These problems consist of access control list, the ACLs, improper settings in the names and address book, server ID passwords, execution control list, stored forms. And there's been several of these security advisories, which have already been released by various other organizations, including Loft and various other ones, that have addressed this. Unfortunately, it seems nobody's really listening because we're still finding the same problems. Now, in the access control list, if I can get Valter to log me in here, I'm going to just give you a quick example of what an access control list looks like under Domino. All right. Sorry. There we go. Now, for those of you who have never seen one or don't use Domino that much, this is your access control list here. You actually have entries for Domino servers internal to the organization. Domino servers, these are groups which are created in the names and address book. This here is usually used for external organizations which are accessing your server. This is for the server itself. And this is for either a user or you could create a group of users. And you can see over here that right now this person is a person, not a server. Although you might think he is. And he's a manager to this database. Default is anything which does not fall into what is listed below. So any other user inside this organization will typically fall under the default category. Now, it's a very... It seems to be a way of saying, you know, a well-known fact but a very poorly implemented is the anonymous entry. The anonymous entry is anything that is not signed inside Lotus Notes. There's no signature on that database or from that user identity. So anyone accessing this database over the web will have total access because as you can see, he's actually got manager access. The default installation of Domino comes with several of these databases, including configuration and setup databases, that are configured either with anonymous access as manager or there's no entry for anonymous period. This allows somebody else or somebody remotely to conduct... I guess you'd call them pseudo-attacks, as I'll demonstrate here. This is actually a result of the misconfiguration of the names and address book in which they're allowing browsing of all the databases, within Notes. Now they can just... The nice thing about this is you can just click on any one of these, such as the address book, and you can... You're now in the address book. If you don't mind, can... Do you mind if we hold questions till the end? Yeah, I have a couple questions. Okay. We will get to you though. So typically within many organizations during the configuration, either they will accept the default installations or they will enable total access. So just to ease the installation process. And it's always forgotten to go back and tighten these security settings. Now as a problem of this, these are various examples of URLs which could be entered into a browser or some other application which could go off and retrieve the entries using HTTP commands. And these will all grant access to those types of databases if your access control lists are not configured. And that is what I was showing back over here. If we actually take a view of the database here... I'm sorry. Oh, sorry. One more. Oh, one more. All right. That's back what I was doing here. This is the same command that you saw on the other screen in the URL entry. You'll actually see the same command or very similar command which is demonstrated here. The only difference with this, if somebody has actually gone into a database and implemented their own customized navigator, this will take you back this particular command. And this is actually a function of Domino. This will bypass any customized navigators and take you back to the default views. This type of information... I'm sorry we're having to switch back and forth. We thought we'd have a few more screens. Enables me to go in and select a particular user. I'll select myself. And as you can see, I was secure and removed my ID file. We'll take a look at the some user. And you'll see later in the demonstration where this is a valuable little attachment. Because now I have access to this. I can read it. I can attach this to my hard drive. And you'll see where that comes into play later on. And you've got to protect that type. You've got to keep attackers from having that type of access to your names and address book as well as these other databases. Commonly misconfigured databases. These are examples. There's many more. You have the names NSF. That's your Domino directory or before release 5, it used to be called the names and address book. That's what I just poked around in and opened up the person document for. The catalog database is actually a database in which it's an inventory of all the other databases on that server. So I can find just by simply opening this database from a web browser, find all the other databases, the mail files for that particular server. The Domino configuration database is one that's used in release 4.6 to actually set up virtual hosts and virtual servers on the web. So you could actually, an attacker could actually manipulate this. And this one, I believe there was an advisory. I'll have to go back and check. But I believe Loft had actually made an advisory about this because what you could do is you could actually modify and give special UR commands and create a new virtual server remotely. The log NSF, this is where everything in Domino is actually logged on the server. Everything in Domino from SMTP emails, serial replication, TCPIP replication, all that is logged on one central database and that's this one right here. If you've got read-write access to this, you can erase your tracks for anything you've done on that server. This is, the web admin is one that's used often to, for especially in release 5 since there's no more client on Unix host and AS400, as well as the mainframe versions of Domino. This is commonly used to configure and install, I'm sorry, just configure and maintain the Domino server remotely from a web browser. And these databases are used for the setup configuration and installation of a Domino server. And this one is typically left on a server with management access for the whole world. And there seems to be a really bad user education that you need to either delete that database or tighten the ACLs. Within the names.nsf, these are some of the valuable points of information that you can retrieve. Patrick's gonna show you later how we can actually retrieve the HTTP password hash. And we can use that in a particular type of attack to gain access to the Domino server. Quite often, ID files, when the user is created, administrators have a tendency to think, well, we'll just leave the ID file on the Domino server in the person document. And that when they set up their notes client, they can actually just pull their ID file when they set up their notes client. They forget to detach it. This is really bad because if I can open up that names and address book, I've got their ID file. And I can build a little program to sit there and brute force the password. Or as you see, we've actually done even one better. The database does not contain usually an anonymous entry in the ACL in names.nsf. And there's a tendency between amongst administrators to actually go out and set up manager access just for everybody while they're configuring a server. And they forget to go back and change that when they roll out Domino as a web server or an email platform or an internal server which is running their entire organization. All the names.nsf helps really give a remote attacker a blueprint of the organization, how Domino has been deployed in that organization. The catalog.nsf, I think one of my colleagues is prompting me to talk a little bit faster, so I'll try to race through here. The catalog.nsf, that's one of the ones I was mentioning earlier, which databases all the other notes databases. So it's actually got entries where are they located on the file system, which server are they actually located on. The Domino config database, this is the one where you've actually got configures the virtual host and virtual web servers, which I mentioned earlier. And I'm going to skip through these since I mentioned them earlier. In all of these, usually the ACL, the default ACL is actually misconfigured or people have not really gone back and checked their settings on all of these. And one of the last most important things, there is a tendency among Domino administrators when they're setting up a server, they want to utilize things like the auto restart feature of a Domino server. And they think, well, okay, you know, it's a server, nobody's going to steal this ID file because I've tightened down the security, I've turned off NetBIOS on my NT server where I don't run network file services. But there's usually a ton of other things running on that server that they haven't thought about. And if there's some sort of form, of host-based security on that server, we can usually violate that to gain access to the file system. Once we have that, and if the operating system allows us to just read the file of the server ID, we can retrieve that and we can actually create a new server on our system and we can use that to replicate with another server, not the same one, but another server inside that organization and retrieve databases from it to our local machine and compromise the company's data. Now, I'm going to hand this over to my next colleague, Wouter Alkema, who's going to demonstrate some other attacks which cover some of the securities that I've talked about and some new ones. And here he is. Thanks a lot. Okay. Basically, what I want to discuss is two things. Two methods of attack. One is dealing with stored form vulnerability, and the other one deals with the Olay interface to the Lotus Notes client. I'm going to start with the stored forms, but before that, I think it's good if I explain a little bit about Lotus Notes databases so you'll know what a stored form actually is. A Lotus database consists of data in the form of structured data, rich text or HTML. Next into a database, you also have design elements defined, and one of them is forms. A forms is used to rendering that data, and it also contains programmable events. A stored form is as follows. Suppose you're going to have a document, a piece of data, that you are wanting to transport to another database, but the form definition for rendering that data is not available. Then Lotus Notes allows you to, has a very powerful feature, allows you to accompany that data with a stored form. Another additional feature within that stored form is that the Lotus Notes SMTP agent can use that, so you can actually transfer email messages, Lotus Notes email messages, with stored forms over the internet towards another notes environment. The stored form vulnerability was actually dating from 1996, so this is not something new I'm telling you here, at least it should not be. The first occasion that I could find was the guy, Oliver Berger from Germany, and he reported this to Lotus, and Der Spiegel, which is a German magazine, spent an article on it, and somehow I don't think it got the attention it should have gotten. Anyway, Lotus responded with the execution control list as a method to defend the user against potential hostile content. However, and this is what we see in practice with our clients, we are now four years later, and what we see is that very few people, or very few organizations, have the execution control list set up properly. In addition, very few people disabled stored forms on their mail file. So in fact, still very many people are vulnerable to this attack, which is dating back from 1996. How would you perform a stored form attack? It's basically very simple. You take your mail file, take a copy of your memo form in the mail file, eliminate the code that Lotus Notes put in the programmable defense, and replace it by your own. So what you can do is either make it launch an executable automatically, or program something in the query open or post open event, and as a result, you can launch any type of code or executable without user interaction. And again, this is back in 96. Okay? Because I don't know, Chris, maybe you can comment on that, but there was some virus going on lately, and they claimed that this was the first virus that did it without user interaction. Our thing comes back on. Yeah, do you remember, I guess it was last year or so when Bubble Boy made the rounds, because the view properties within, I guess it was Outlook Express, it would actually execute native VBScript. Well, Notes can do that too, just by looking at a mail message, which Outlook is about to do. Exactly. Okay, I need to switch to my... Can I use this microphone? Okay. Is that on B? Yeah. There you go. Okay. First of all, I'm going to explain a little bit about the setup that we have created. On this laptop here, it's going to act as the victim. Okay? And we're going to perform an attack from this attacker. We have several users set up. The first user that we're going to attack is a named R46 user. That's kind of a stupid name, but I want you guys to understand that this is reflecting a release 4.6 default setup. Okay? And the laptop I have over here is the attacker. I'm locked in as Wouter Alkema. I'm now going to attack this client. I've prepared stuff a little bit, so instead of creating a stored form, I've already created it and sent it over to R46 user. And I have to log in now. I have to provide a password. Okay. I'm going to log in. And what you see is the user has received an email. What I'm about to show here is that I'm going to press enter. And when I press enter, which is normal user behavior, you're just going to open your email. But on opening that email, I'm going to launch notepad.exe, which is an executable. This should not be able because I could launch notepad, but I can also launch back orifice or any kind of other hostile code that you wish. Take a look. I'm going to press enter now. User is opening his email, and without anything, the notepad has started. And actually, as a kind of a joke, I put in the advisory that Lotus wanted us to make here. So we'll get back to that later. Okay. What are the observations that we can make? Well, again, no user interaction was required. Secondly, there was no warning presented either by the operating system or by Lotus Notes prior to execution. And why? Because the ECL was not configured properly. Within... Yeah, and that's number one. And number two is the stored forms were enabled. Lotus came up with the execution control list. What is the execution control list? Basically what it does is it allows you to specify signatures that you trust. And per signature that you trust, you can specify what type of functionality you allow that signature to perform. Apart from the list of trusted signatures, you have two more entries. One is the default entry. That is for all other signatures that you have not specified. And one is the no signature, which is for code that has no signature. What are the common ECL problems? Well, again, as stated before, there's very few people out there that understand the ECL concepts. Number two, ECL settings are stored in a very obscure location. I don't know if anybody... If you know about administrative ECLs, they're stored in some hidden location somewhere in the notes directory. You can find them, and you can manipulate them. Within the user's desktop DSK, there are also ECLs specified. But most important of all, prior to release 502 of Lotus Notes, the default ECL allows all functionality to any type of code. And that is very important. So when you're out there and installing a new notes client, it's going to allow for any type of hostile code to execute. Lotus has recognized this, and as of 502, they've reversed it. It's now as tight as tight can be, which also presents a lot of warnings to people. But, well... There's two undocumented ways to reset an ECL. One is the formula that's called alpha-refresh-ecl. And if you specify either a non-existing administrative ECL or empty parameters, we'll do fine. You will reset the ECL at the client. Now, mind again that prior to 502, this is going to end up in a situation where the client will allow all functionality. The second method to reset the ECL... Actually, the title of my slide is a bit wrong. It's not removing. You're actually resetting it. The second method to reset the ECL is to remove the ECL setup equals 3 line from the notes.ini file, which is a settings file for Lotus Notes. If you do that, the next time the notes client starts up, ECL has been reset. What is the ECL attack about? Well, we have discovered with our research that the ECL is not capable of intercepting API calls into the notes client. So the OLE interface of Lotus Notes is using the notes API. So it's also not being intercepted by the execution control list. I'm going to show a little demonstration again. I'm going back to my screen. Again, this is the victim. This is the attacker. In order to reflect a release 502 user with a very tightened ECL, I'm going to have to switch to another user which I have defined, which is Mr. Some user. So I have to switch the location document here and I have to provide a password. Okay. I have a very slow laptop. I'm sorry about that. Okay, I'm going to open an email. Again, from the attacker, I've prepared this demonstration a little. And what I've done is the following. I have sent this victim an email. And that email contains an attachment which is an HTML file. The HTML file consists of VBScript. Okay, so that's why I'm going to use Xploder to launch it. The VBScript is making allay calls into the notes client. And I'm going to have this victim perform all kinds of functions that should not be allowed. Let's first take a brief peek in the ECL itself. If you go to File, Preferences, User Preferences, Security Options. As you can see here, this is an ECL that Lotus is recommending. Default, there is nothing allowed. So as soon as any type of code tries to perform an action, it will pop up with an execution security alert. The same goes for the note signature. And Lotus Notes template development is allowed all functionality. The reason for that is they ship the templates. So if you want to be able to use your mail, this needs to be on. I'm going to launch this file. And this is also going to take some time because I have a very slow laptop. We rented it, by the way. What the code is going to do is very interesting. First of all, it's going to modify the access control list on this victim's mail file. It's going to change the entry anonymous into manage your access. So the result is that you end up with a world access situation on your mail file. Secondly, this piece of code is going to send an email back to the attacker. Now all of you know that if Internet Explorer tries to launch ActiveX, then it's going to come up with a warning. I bet there's guys out here that know plenty enough to go around those warnings as Loft did with their advisory a couple of weeks ago. I didn't put any energy in that. So I'm just going to press yes. Yes. There you go. Nothing happened. Yeah? It's a regular HTML file. And the user didn't notice a thing. Let's go to the attacker and let's take a look at the end result of this. Which... One down. One down. Okay. Thanks. This is the attacker. There's Wouter Haukema's email. And I'm going to open my email. And it worked. I received an email from Mr. Some User with the subject ACL updated for the mail file of some user. I'm going to open that email. And what I have here is a URL pointing towards that user's mail file. So let's click on that. Pop up Netscape and see what happens. There you go. I'm manager. Can you show us the ACL? Sure. In order to show you the ACL, I'm going to switch back to the victim laptop here, which is another screen. It's a pity we don't have two screens, man. Okay. We're back on the victim's mail file. Now, the third thing that the email did, that the piece of VB script did in my HTML file, is I deleted the document. So all traces are gone. Watch what happens if I try to open that email. Oh, it's already gone. You see that? Sorry. You wanted to look at the ACL. File, database, access control. And as you will see, default has no access. Anonymous has manager access. If you take a look at the log, you will actually see that this happened just now. Well, another interesting piece is that the user performed the activity himself. Not me, but the user himself. Okay? With a little bit of imagination, there's a lot of things you can do with that VB script. And I want to point out just a couple of things that we came across doing our research. One of the things is that... Hold on. One of the things that we discovered is that the design elements in Node's databases, such as the mail file and those kind of things, they seem to be having a fixed node ID for databases that share the same template version. What does that mean? Well, if you look at the mail file, there is, for instance, the memo form. It has a node ID. And that node ID is going to be same for all the same versions of Lotus Node. If you access that particular design element, not as a design element, but as a regular Node's document, there's a function for that getDocumentByID. Then you will find out that you can manipulate that design very easily. And again, with that VB script, that would be relatively easy. So, back to my first demo where I talked about stored forms. Well, we saw that the stored form is actually an attribute that is set in the icon document of a database. And if you go access that icon document as a regular Node's document, you will see that in the $flags field, there's a small F character, which indicates stored forms are not allowed. So, if you remove that small F, you're back to the zero, basically, because you can send stored forms again. Well, the same goes for DB scripts, all those kind of things. What can we learn, what can we see from these type of attacks? Well, first of all, again, ECL does not intercept API calls. Secondly, payloads execute on full behalf of the Node's user. And also, not unimportant, the Node's client is not being used. The application is running external to Node's. Recommendations. How can we cope with this vulnerability? Since OLE calls will make use of the registry, we advise you to take away the following settings. That's the nodes.node session and nodes.node's UE workspace. Take it away from the registry, because that's your way to disable OLE hooks into Lotus nodes. Now, a little side note. There is many external applications that are interfacing with Lotus nodes. They will no longer function. So there's a judgment you gotta make yourself. Do I want security or do I want functionality? Secondly, very important, prior to launching attachments, make sure you clear your user preferences. That way, if some hostile code tries to hook into the Node's client, it won't get anywhere, because you'll be immediately prompted with a Node's password prompt. And you'll know something's going on. I thought, kind of obvious, the internal Node's viewer is not capable of running any hostile code. So use the internal viewer where possible. For Word documents, HTML documents, any type of active content that you might come across. Okay, I'm gonna hand over this one to Chris and to Petra Gunther, who's gonna do some more heavy stuff. Petra's gonna be picking up the keyboard stuff and I'll go ahead and babble, because he's happier on the keyboard and I'm happily babbling. Now, we've talked a lot about using F5 to clear out the user credentials. Like, if you're walking away from your desktop for some particular reason, Lotus says, hit F5, because that's gonna force you to re-authenticate or at least re-enter your passphrase in order to unlock your Node's ID file. Well, there's some stuff about that. First thing, what Petra's gonna do is pop up an external file, an external application that's gonna try to make a call into a Node's document in a situation where F5 has been entered from a desktop. Okay, he's hitting F5. We should supposedly be locked out now. So he's gonna launch this external application. Yeah, we're out. All right, so he's gonna launch this external application that's gonna attempt to connect in there. And because we've hit F5, you still have your thing shared. Yeah. We ran through this before. Bear with us. He's gonna go in and unshare. So at least you see that going. Right now, the user ID is actually shared, but we'll fix that. All right, so we're not gonna share that anymore. So external applications can't do a direct call into that by talking to the stored credentials in memory. Okay. So he's tried to connect, and it's prompting him for a password. Now, what's going on in the background is when you hit F5, what you think is happening is that your credentials are being completely flushed from your workspace, but what's really happening is the client's being instructed that it's dirty by basically flipping a bit somewhere in memory. And if you wanted to take a look, you could flip that bit back because your credentials are still stored in memory. Your credentials have to be in memory because Notes has a remote replicator service that constantly talks between client and server so it can update your databases. Well, how could your client talk to the server if it didn't have some way of authenticating the server? It uses that stored credentials in memory to perform this function. So what we've got here is a little tool that's basically going... Well, it's a little multifunction tool. The first function we'll do of it is basically turning back on that shared attribute for those credentials in memory so the external application can talk to it just fine. And there we go. So now we're back into that one. Now, just as we said before, once you've got access to that cache memory location, it's going to remain cached, so we'll be able to access that for as long as we have this session open. And basically, it's just one little register that's being set. Now, the vulnerability, obviously, a little external program... I mean, we're doing it here locally on somebody's desktop, but there's ways to do it using PhoebeScript or anything else that we've talked about through some of these other attacks to perform the same function. Now, one of the things, of course, that makes sense, you're not going to be able to access any databases other than the ones that that user has access to. This isn't granting us any sort of super database browsing function. We're just able to sort of unlock that guy's workstation. But we're moving on to other stuff. Now, just as a basic recommendation, F5, don't use it. If you need to leave... If you've got to go to the bathroom and you're that worried about it, turn... You know, shut down notes, turn your machine off, whatever. But don't think F5's really going to buy you something because if someone can walk by your desk, they can just unlock everything and get your credentials back. Now, just talking a little bit about a thing called the HTTP password hash. Lotus, in the names and address book, keeps track of a thing for web-based access into notes. And basically, they're using a modified RC4 implementation where a passphrase is then hashed using RC4, but rather than using a dynamic table, they've got a static set of plain text that's constantly used as the reference to generate the hash. So, essentially, Lotus isn't using a salted hash. You know, where people using... People using Unix figured out a million years ago that if you're going to use DES, you need to salt it with something. Apparently, Lotus decided that wasn't a good idea, so they're using this static thing to generate hashes. So what you end up with, if you actually look in the names and address book, any time you see... Oh, well, we're in the names and address book now. Yeah, it should... You're up. If you go over to a field, you'll see HTTP passwords in the names and address book. Yeah. There are some hashes. So any time you see a hash beginning 355E9807B59, et cetera, et cetera, that's password. Any time you see 06E0A blah, blah, blah, that's secret. If we go back over here... I'm not going to read it. You read it. Anyway, any time you see that, and it becomes very obvious when you start looking through people's names and address book, oh, this guy's using a password, a password. And because of this, once you figure out the way the hashes are generated, you can make a very, very easy dictionary-based hacking program to go against the hashes in the names and address book. So that's fun. But wait, there's more. Now, inside the notes user ID file, notes was set up in such a way that the ID file's providing a lot of different layers of security. It's providing strong authentication and access control. Because of the digital signatures used, you have real good file system integrity and non-repudiation. And because it's used as an encryption key, you've got confidentiality. Sounds great, right? Well, taking even more, the ID has basically the private and public key, information about the user, an expiration date for the ID file, basic ID integrity control so that no one can go in there and muck around with the user ID file because it'll fail check some. The ID file's necessary in order to unlock your client so you can do local databases. It's used in authenticating to a server so you can actually do client-to-server communications. And it's referenced through notes programs that are using the native notes API. Now, one of the things about the client with respect to the ID is there's sort of an arbitrary delay that's built into the client to keep you from trying brute force attacks and logging in. You know, one, it'd take a second, and then two seconds, and then 10 seconds, and then 30 seconds, and it can even lock you out from attempting again. Now, the digest of that user ID file is actually stored in the names and address book and that's sort of referenced with HTTP hash. And, you know, another feature that the client has is it has auto-lockoff features and F5 features, but we know those don't work anymore, right, guys? And it has the ability to share user IDs like we just did so external applications can happily talk to your existing credentials. Well, here comes the fun stuff. Basically, there's a mechanism by which you can use someone's HTTP password hash and an ID file, both of which will explain a couple of reasons on how you might be able to get that information, so that either on your local area network, since you're going to have access to your names and address book for any server that you have access to, or outside from the Internet by getting this information, either by directing a user towards some hostile web page or by sending them a mail message with stored forms or what have you, you can obtain this information and use it to authenticate to a remote SNOTE service as that user. Now, how does this basically work? We're going to walk through a demo here. The first thing we do, since we've got this names and address book up, we're going to go ahead and steal an HTTP password hash. So we got that highlighted, just toggling that over, and now we're going to pull up that user document for that person, and we're going to detach that guy's user ID, make a copy of it, put it on our local desktop. Okay, so we've got that over there. Now from the notes client, what we want to do is switch to that user ID we just stole. And it's going to prompt us, happily, for a password, just like normal. We don't know the password. This is something we just stole. The password could be anything, but it doesn't matter because we have the hash. So, basically, using that same little nasty tool, we're going to go in there, and we're going to replace in that memory register where the existing credentials are that hash we just stole. . Yes, it does. . Yeah, they did say that, but in most installations, you'll notice that most people are still synchronizing HTTP and nodes, so it's IDs, and people have gone to extreme difficulty in trying to do that synchronization. It goes completely against reality, but... . Okay. . Yeah. . It's actually, if I can say this real quick, it's actually, when you register a user, you've got a little check box that says register as a web user, and it will actually set that HTTP password to be the same as his ID file. . You also have a check box that says save the ID file to a disk as opposed to the... . . Yeah. . But you know, obviously, since you're paying really close attention, we'll assume your shop is a really large notes user, so there are, we're not saying that every major deployment of notes people don't have their act together, because some do. . Some of the customers we've talked to weren't going to be affected by this, but they're still affected to some of the other things we've talked about, but unfortunately, you're the exception of the rule, guy. . And, you know, we've got customers out there with 80,000 different notes clients in one organization or another one that has 115,000 and another one that has 175,000. I mean, this is a big deal. Anyway, we'll continue on. You can go home and sleep well tonight. Most of your colleagues at the audience won't. So basically what we did is we replaced in memory that hash with the hash we stole from the names and address book. We've now authenticated as the head user. We're going to pull open his mailbox. And lo and behold, we're now that user. Now, as you said, there's a couple of things. Yeah, F5 doesn't clear your password, your private information, so you can get hashes locally. You can get hashes by browsing something from remote. We've also implemented the same functionality for that particular tool into ActiveX. So you can have someone browse a web page. You'll take their hash credentials from their memory location and steal a copy of their ID file. With that particular implementation, you're not using the HDB password hash. You're using the actual hash that's generated for your existing session. So even if your HDB password's different, if I can convince you to go to my ugly web page, I'm taking your user ID and the hash for your actual logged-in session. So it's a little bit different. Maybe because it involves a little bit more user interaction, but it's still just as nasty. Did you want to do that one? Yeah. Okay. Yeah. This one isn't the full nasty example, but it's going to mail back the hash information back from Roleplay. So we're connecting up. There you go. There's the hash information that's pulled from memory. And that doesn't necessarily have to be the HDB password. That's the, you know, it's unfortunate that what they're using to generate the HDB password hash is the same mechanism they're using to generate the credentials to unlock your private key. That's what unlocks your private key. Your passphrase doesn't. Your passphrase generates that hash that's in memory. That's used to unlock your key. Oh well. So as a basic summary here, password hash, you get it in the notes, names, and address book, which you can look at with a notes client, you can look at it with a web browser, or you can get it from native memory in an active notes session. And for the ID files, well, most people unfortunately don't practice good host level security. So, you know, people are sharing C drives all over the world. People are sharing stupid stuff. People have NFS mounts with things with their notes ID. People store them in a central directory on the notes server that's accessible by everybody. So when Doofus' hard drive gets reformatted and the system administrator doesn't want to build them a new notes ID, they have a copy of it somewhere. Or they just leave it by default and the name's an address book. So, that's not good. So this information is out there and it's fairly easy. It's pretty easy to get. The ActiveX that pulls the hash out? Yeah. Okay. You know, and on a lot of these, like we were saying before, you're going to see, any time you send any of these things out there, since it's VBScript, running in an HTML, you're going to get those Explorer messages. Because, you know, different security zones and whatnot. But how many of you use Explorer and how many times a day do you see that message and how many times do you ignore it? If you're like anybody else in corporate America, you'd probably go, well, gee, I'd rather have my porn than worry about that. So I'm clicking yes. So just in summary, I'll hand this back over to Kevin and we'll finish up the summary. Excuse me, Patrick. All right. So how many of you found that interesting? Yeah? All right. Well, good, because I sure as heck did. And really, you really are an exception. And the whole purpose, the whole purpose of this is so that... The whole purpose is so everyone thinks like this guy here. That is really the whole purpose of this presentation. Our recommendations for this is to restrict access from the web. So this means... Could have various meanings. If you don't have a purpose for running a domino server on the web, an HTTP service, disable it, kill it, get rid of it. If you do have a purpose for running it, then make sure all your ACLs are tightened up. And this is a pain in the butt, I know. I wish Lotus had better tools. It got a little better in version 5. Yeah? Did you say ACLs or ECLs? ACLs right now. ACL recorder is a very good tool for that. Okay. Highly recommend. Well, I think it should come just with the default install of domino. So not everybody... A lot of people have gone out and spent thousands on this and they can't... Yeah. We all know that feeling. Don't forget to remove... Okay, sorry. Don't forget to remove the user IDs from the NAB. Get rid of those things, you know. Put on a floppy, stick the floppy in the safe. But don't keep that in your network address book. Name and address book. And like this gentleman out here, choose different passwords for your ID files and HTTP passwords. There was something on here and I want to... Okay, now we do get to it. And I mentioned this. This is something... Now, this is something when we reported this to Lotus, this is important that Lotus asked us to mention this. The strong password hash. There is... In release 5, there is a strong password hash that you can actually set in the domino server profile document. 461. I'm sorry. Well, 461, you actually have to set in the INI file. But in release 5, you can set in the server document. But one of the things which, when we first reported this problem to Lotus, they actually went back and they did their homework. And they came back to us and they said, you know what? Using this is actually broken. So when you register a user, you need to go back and manually upgrade him to a stronger internet hash. Because they had not even realized it was broken until we started talking to them about this. So you need to go back into the person views, select all the users, and there's actually a pull down menu under actions. And you can actually select to upgrade to a stronger hash. And you'll notice a different format for that hash. And when you notice that different format, then you've upgraded and it should be somewhat more secure. Does that mean it's completely secure? Your guess is as good as mine. We're going to check that next. When you're leaving your desk, close the whole thing down as Chris said, you know? I've walked by so many people, so many places when I go in to audit a place, and the screens are up, people have hit F5 if they've done that. But close it down, especially if you're the secretary to one of the directors. You usually have the same access he does and you're leaving, you're putting him at risk. Never click on any email attachments. Never run anything. If it's a Word document, as Valter mentioned, if you've got to open it, you know, don't accept them for one, you know, try and get something like PDFs, but if you've got to open it, open it in the viewer and notes. We're not completely sure that that's even secure, but we're not sure about anything. Enforce the ACLs on all the databases. Make sure that you've gone through, as I said earlier, make sure that you've got them really tied down. Restrict the anonymous browsing for default databases. If you're running an older version of DOM, this is going to be turned on by default. The newer versions, this is actually turned off. If you've enabled it for some sort of system administration or internal development, before you deploy that as a web server, go back and check that. Now, this one is very controversial. Disable store forms on mail databases. We are aware that there are a ton of applications built for DOM. Third-party applications, sometimes internally developed applications that take advantage of this. And when we were discussing this with Lotus, when we had our conference calls with Charlie Kaufman and Kevin Lynch and discussing this, they pointed out to us that there's a lot of applications that use this. Our next question was, do you guys have it enabled? Take a guess what the answer was. Enforce strong ACLs on all unsigned and untrusted documents, especially if you're running 502 or earlier, 501 or earlier. You need to check this. This is kind of obscure setting. If you're not familiar with it, go back and read the documentation, figure out where it is, and set it correctly. Ensure strong host level security of all note servers. Chris can tell you lots of stories as we can where Domino server is only as strong as the platform it's actually running on. If that's not secure, your Domino server is not secure. If I can pull down your notes database and I can open it local, your data's not secure. If you've got more information, feel free to visit one of these webpages. This whole presentation, we hope to have PDF by tonight, tomorrow? The PowerPoint slides will be up tonight. We're going to make sure to get the PowerPoint up tonight because I'm sure a lot of people want to go back and review this for whatever reason you horrible people want to look at in these times. But I assume there's some valid reasons for people wanting to see this, so we're going to make sure it's available on the websites. And we're going to try to transcribe this and put a little bit more detail in a white paper that we'll be working on, which will happen sometime in the future. But as you might imagine, we've been a little busy lately with this. So the white paper, we'll just have to wait a little bit. And finally, on there with Lotus, if you guys aren't... They don't need to see me. If you guys haven't been... For those of you who have major notes deployments and you're not constantly keeping abreast of what's going on with Lotus and updating and keeping patch levels, fixes come out for a lot of things all the time. And if you're not applying them, you're so far behind the curve that all of this is going to take you forever to catch up on. So get on the hook. It's your responsibility. So, I guess, question and answers. All right, so thank you so much... Thank you so much for being here. Thank you. See you next time.