Hi, everybody. I'm Mike Bailey. I'm Raph. This is Raph. We are here to talk about web services we just don't need. Now I had a talk that I wrote, well, I sort of wrote it a while back. And I had slides, sort of. And they all self-destructed with a major malfunction of encryption and hard drives. I don't have any slides or anything now. So we're going to wing it. My opinion is that the best way to be prepared for any event is to just be able to wing it anyway. If we don't know this shit by now, we probably shouldn't be up here, right? I don't know shit. Okay. Sorry. These are rock star mics. Okay. Does that mean we need groupies? Dude, I have groupies. All right. Not you, Mike. He does not count. All right. So let's talk about some web services. I break a lot of web applications. I break a lot of web applications. I do web application research penetration testing for a living. And occasionally I stumble across things that just don't belong on the Internet. You guys know a few of those, right? Yeah. You probably got some ideas and actually we might have them shout some out and then we'll discuss. Yeah. If you feel like you have one that you would like to hear discussed, disgusted. Windows? Windows isn't a web service. You're in the wrong track, dude. Yes. . When you are is a big one. All right. What was I going to start with? I have a friend named Trey Ford. Is he here? He's not here? Trey went to bed like an hour ago. All right. Trey takes his barbecue pretty seriously. If you guys don't know what a barbecue is, it's a big box that makes smoke. And when you're grilling your ‑‑ not grilling, when you're smoking your meat, you have to ‑‑ there's going to be too many meat jokes here. It's 10 a.m. on Sunday. Why are you people here? This was unexpected. All right. So when you're smoking your ribs, you have to be very careful about constant temperature, monitoring your meat. So what Trey has, he has a ‑‑ Trey has a PC fan that he uses to control the fan and two probes attached to his ‑‑ Does anybody have a bottle he can make Mike drink every time he loses his train of thought? I'm not losing my train of thought. I'm just trying not to make any dirty jokes. You know what? The best dirty jokes are the implied ones. Yeah. Do you know where you are? Anyways. So he's got the probes in the PC fan attached to a computer, which is in a plastic bag. And he's got a little bit of a plastic bag because it rains sometimes in San Francisco. And that's all sitting outside next to his smoker. So this is all run through a web server that's sitting in that PC. And it tweets, too. So during the course of like a 14‑hour smoking of a ‑‑ a piece of pork. During the course of that, it will be tweeting the whole time. And he can monitor it. It makes graphs, nice little updates, things like that. One day, he's going to see that. And he's when he first got it he was showing it off and he actually uploaded some of the graphs to twit pick or some shit like that. Speaking of web services we don't need. We'll get there. First of all in those graphs it has the IP address of the smoker. And I'm sitting there, I mean an internal IP address that may not be all that useful. So as we're talking at some point when you guys hear something that sounds interesting to you I want everybody to go what could possibly go wrong at the same time. Yes. All right. So anyways. What could possibly go wrong? Right. They're awake. Why? Why are you guys here? Don't you have better things to do? Dude they're still coming in. All right. Anyways. So now I have the IP address of his smoker. I have the version of the software that's running so I can go find a copy and download the source code. I actually had to find the guy that wrote the code because it was kind of obscure and ghetto. And I had to actually con him into giving me a copy of the source code by telling him that I wanted to help him do development on it. And so I start looking at it. It's fucking full of cross out scripting holes, cross out request forgery holes, things like that. So what you're saying is you can help Trey smoke his . So. Never mind. Anyways. The end result is that now every time Trey. I have a great slide with a screenshot but now every time Trey goes to update his smoker, it pops up little messages at him and he gets a nice little reminder of me. It's fun. It's beautiful. Yes. Every time Trey goes to smoke his mate, there's Mike. All right. So that's one of the. I'm here for the comedy relief. That's one of the stupid ones. But that's not really all that serious or that dangerous or anything like that. It is. It's a bad thing. If you use that really cool banner grabbing. I think there's four on the internet. I told you this is ghetto. The fact that you know that worries me. Yeah. Does anybody here have one? Smoker. Do you have a smoker on the internet? There's other stupid services that use Twitter though. Who's here to tweet my PC? Anybody? Yeah. What the fuck? I don't know. Okay. Yeah. Well, Mike. Tweet my PC is a way to remotely control your computer via Twitter. Now Twitter. Yeah. Twitter. It's like go to my PC or WebEx only more secure. Yes. Because nobody has ever hacked Twitter account before. So the way it works is you basically send commands to your PC. It will execute them and send the response back. And there's specific commands you can do or you can say CMD and then say whatever shell command you want it to run. Now this was written by a guy. He's a Microsoft MVP. Most valued programmer. I don't actually know what that means because I'm not in the Microsoft culture. They have acronyms for everything. But this guy knows how to code. I mean he's built a project that's actually a fairly impressive code base. I mean for what it is. And he never stopped to think what could possibly go wrong. That's awesome. Yeah. So some of the other commands that this thing can run are things like take screen shots and post them up to TwitPic. Now if you're. Hold on. I want to reflect on that for a second as we watch the fire crackle. It's a really good idea to take screen shots randomly of your PC. When you don't know what's on the screen obviously because you're taking the damn screen shot. Right. Yes. Because you know it's a really good idea because there's no possible way anybody could view those in order. And see what you have. Read your email. So I have a directory on my web server now. I actually have a bot that pulls down those pictures every time they get posted. Yeah. Funny story. So we were talking a while. Must have been last year I think Mike. Yeah. We've been slacking on this project horribly haven't we? We're bad at everything. Yesterday apparently. Who was here for the fail panel yesterday? Yeah. So you know the really cool thing they did with the data mining the pictures. Yeah we did it a long time before that. We were too damn lazy to do anything with it. One day we'll get around to taking it to the next level and like OCRing all the screen shots. It'll be bad ass. So the back story is. I apologize for my loss of voice. But it's really hard to yell over 1,400 people. We were sort of chatting back and forth about some things we saw. And I just sort of wanted to say. I saw somebody sort of post a screen shot. And I'm like hey that's a random alphanumeric six length, six character length identifier. I bet we could write a really quick loop that could grab all of them. So apparently the math I didn't do in my head is how many combinations there were times about 120K each. We pulled down all of TwinPic. Yeah. We pretty much have all of them. Yeah. We pulled down all of TwinPic. So there's a one and a quarter terabyte some place. So by the way, EXT3 does not like that big of a directory in one place. I think I've accidentally found the limitations of which. Every time you try to view that, you know, open that directory, it just sort of looks at you and goes no. I'm sorry but no. So there are some interesting things. And as I was looking through there and deleting all the porn because nobody wants that. And sending it to Mike. I did notice that there were some very interesting things. Like there was a guy that was getting help from his tech support team with a spreadsheet he was working on for next quarter's forecast. I just want you guys to think about that for a second. Because that's this quarter. Yeah. Oh, yeah. I've got the screen shot. It's beautiful. It's still up on TwinPic. So did you know that you can't, actually, this is not true anymore. You can now as of a few months ago. Until a few months ago, you weren't able to actually delete pictures from TwinPic. You could remove them from your stream, but they'd still be there if somebody knew the code, the path. And when this PC thing posted those pictures, it would have the path on there. So even after people deleted them, I could go back and find them later on. I found all kinds of interesting things. There's one I found where somebody just set up a remote desktop server. And they had their user name, their connection information, sitting there waiting for clients to connect. It was great. I didn't actually connect. I should have. Anybody here that was at ThoughtCon? Yes. Do you guys remember what I did? All right. So thank you. That's awesome. So I have a particular love for Flash, if you guys don't know. I have a special hatred for Flash. We know, Mike. It's okay. Step number three, Matt. And it's not that I hate Flash particularly. I just dislike the people that write Flash because they're not really IT people. They really have no desire to code anything. They just like to drag and drop. Yeah, it's okay. Give yourselves a round of applause. That's kind of cool. No, so I do a fair amount of these web assessments in my everyday job, in the boring part of life. I get out there and try to convince people that doing things that were bad in 1997 with JavaScript is now bad with Flash because you can't seem to grasp that concept. So case in point. We're going to talk about services we don't need. So this is a place that I was at. I was having a conversation with a C-level group. You know, C-level executive. And he was telling us about all the awesome Web 2.0 stuff. By the way, if we say Web 2.0, you can throw shit at us. All the Web 1.99999999 stuff. Stuff that they had and all the great development they were doing and how they were migrating to new media and that they were migrating all their platforms to more usable, more open, more flashy environments and he couldn't stop bragging about this new ERP app they were writing. Does anybody see where this is going yet? Yeah, so go ahead. Say it nice and loud. That's right. So yeah, so he's talking about this ERP app and I'm just sort of staring at him. And I mean like just staring, like he just grew horns in a tail staring. Yeah. And he just, he stops midstream and he's like, am I saying something wrong? I said, you wrote a ERP frontend in Flash. He said, oh yeah, it's really cool. He goes, you've got to see this. And so then he decided to take it upon himself to demo it, which was awesome. By the way, you guys, does anybody here use a Flash encryption tool? More on that later. Or maybe we should just segue into that real quick. So sidebar. Oh no, Google it. It's viewed as an entire market. If anybody wants to look it up right now. There really isn't any such thing as a Flash encryption tool, but there's a market for it. So people will sell you one. Fail. So there's about, there's several hundred tools out there. Several hundred companies that will sell you a tool anywhere from $99 to the Enterprise Pro version for $1,999 to encrypt your Flash apps. Right? That was weak. Weak sauce. You can try again. Beautiful. That was loud. So, yeah, so these, so what's the, you know, after all, Flash is a language that requires a, you know, something to run it, right? Requires an interpreter to run it on the local machine. So if you're going to encrypt a Flash file, step one of running it is what? And thank you for your $1,999. Anyway, so this guy's telling me about all this, this beautiful Flash app and how they've encrypted it. And so I gave him this story about why that was just complete, you know, smoker. And, that's going to be a joke, dude. You can say smoker randomly. Yeah. Very nice. He's showing it to me and I'm like, can I show you something real quick? He's like, yeah. I'm like, well, there's this free tool. And there's hundreds of them, right? There's lots of free tools out there that you can decrypt Flash with. I know a couple good ones. If you know one, shout one out. So, there's this app and I, you know, load the Flash app in there and I click the decrypt button. No, I'm just kidding. That'd be cool though, wouldn't it? So I, oh, somebody's phone's ringing. Hold on. Dude, there's ants teleporting into your pants. Leave it there. Let's not talk about that. That's what we shouldn't touch. I'm not even going to go that way. So anyway, I was talking about Flash. Yeah, Flash. Yes, so he compiled this app and I'm just scrolling down, scrolling down, scrolling down. I go, do you see this? He goes, yeah. I'm like, you know what this is, right? He goes, well, I'm not an engineer but it looks like a database connection string. I'm like, yeah. Thank you. This is fun. I got him trained now. You guys are like Pavlov's dogs. This is beautiful. Can we make him do tricks now? No. In fact, I might be pushing it. So I immediately explained to him why that was a bad idea by opening SQL Server Manager on my laptop, connecting to his server using those credentials and just listing all his tables. And he said, well, that's no fair. You have source code. Did anybody here not know you can decompile Flash objects? Okay. Okay, cool, thanks. Apparently there's a lot of people that don't know that. Hold on, let me finish my story. I was going to tell a story. I want to finish mine. Okay, go. My story's better. Whatever. Mine's almost done. And they're listening. So as I was explaining to him why this is a bad idea and the whole idea of how I could have source code possibly without actually talking to anybody and just getting the object, he looks me dead in the eye and he says, so we should probably pull this off the Internet? The floor is yours, man. Beat that. But we're talking about Flash stuff and how nobody knew you could decompile them. Has anybody heard of Schlage Link? You know, the lock people? Yeah, the company that makes those locks that go on doors that hold doors shut. Thanks for coming, sir. They decided to create a web-enabled home automation system. Call it Schlage Link. Oh, that was weak. We'll give you one more chance. What could possibly go wrong? They were better for me. Yeah, well. You didn't do the visual cues good enough. I'm not even trying. See, this is how good I am without trying. So, anyways. You're a ninja. I was out at CES a few months ago. Well, here at CES a few months ago. And I was bored because CES actually isn't that exciting if you're not into that hardware and the latest and greatest stuff. And I actually hate technology. So. I was at CES and I was wandering around. You're in a wrong field. What? You're in a wrong field. No, I'm not. I break technology. That's how I just express my anger. And there is a lot to express. Yes. I'm an angry person. So, I was bored and I was wandering around and I see the booth for the Schlage Link thing. I'm looking at their... They have the little kiosk set up and they have 18 sales people that mob you the second you... Flash sale. Okay. Throw candy or something next time. Alright, so... They're returning fire. Yes. We're going to hide behind the table and build a fort. Raph, get up from the table. They don't... I'm still up here. Alright. So, anyways. I start playing with this Schlage Link system on their kiosk. While the sales person is talking to me, I'm sitting here viewing source and looking for cross-site scripting, cross-site request, forgery holes. That was fun. But then a little bit later I got more interested because I wanted to follow up on that. And I went and I bought the lock for my door. I didn't have a lock on it. But... I don't trust that lock. I'd rather have none. So I set up this lock and I start playing with it. And I'm looking through the web application that they have set up for the back end. And I notice that there's a flash object that loads up. But it doesn't actually make any... I'm watching all my traffic with Firebug. If anybody thinks that Firebug is awesome, they're right. I'm watching all the HTTP requests it's making. But I notice this flash object. It looks like it should be making requests. I don't remember what it's called. But it had some other name that was like network object or something like that. And I start looking at it. But it's not actually making the HTTP request. So I decompile the thing and look at it. And it's connecting to an arbitrary port on their system. It's not arbitrary. Huh? It's connecting to a port on their system. And... It sends over a few lines of... data. And then it keeps getting data back. And it turns out what this is doing is whenever you unlock or lock your door, the system sends a message to your base station, which is on your local network. Which then uploads that message to the server. That server in turn broadcasts the message back to you through this flash object to the web application. But there's no actual authentication on this thing. So with one line of Perl, I was able to actually watch every single lock being unlocked in their entire system all day long. Hold on. What could possibly go wrong? And I would do a live demo, but I like the fireplace too much. Also, I might get in trouble. Because I don't know if it's legal. It's probably at least a violation of the Term of Service. Huh? What's your point? I like him. Well done. Mike's easily influenced. I am. It'll take a while. It'll take a minute to connect. You can talk. It might take a minute. It's making a whole bunch of requests saying I want to listen to all these different user IDs. There it goes. This is actually only watching lights right now. Not locks. But every time somebody turns their lights on, off, or dims them, it's letting me know. It's sort of like watching The Matrix. That's pretty cool. All right. This is my visualizer. You know what would be cool? If they had geotagged that, you could put it in overlay with Google Earth. Oh, man. And then we could cross-reference people's tweets. With Foursquare? With Foursquare. I actually can't. This is only monitoring. So I actually can't turn lights on and off through this system. I may still be able to do it through the web application, but I returned it to the store because it wasn't up to par. To who? Ghost Hunters. Is that a TV show? I have no idea. No, I just said it didn't fit my needs. Can you imagine filling out their return form? Sir, why are you turning this lock? The web app sucks. Or the other reason, it's horribly insecure. Yes. A web app. So, you know, I can't think of a more epic way to fail than that. We're done. No, I'm just kidding. We've got to talk for another 45 minutes. Wow, seriously? So I've got a couple of stories I'll share with you guys. If you've read my blog back in April, then you'll recognize some of these. What is your blog? Are you being anonymous right now? I have to be anonymous for a moment. Okay, for professional reasons. You can just Google White Rabbit. Follow the White Rabbit. Yeah, that's it. So you guys watch anybody watch any late night TV? You ever seen the pitch men do their thing? But wait, there's more! No? All right. Billy Mays is dead. If you're still watching Billy Mays, turn off. That's true. He's still running his ads. He's still getting paid. So really, really interesting failure of a web app. You can put the fire back on, dude. This is my fire now. We're watching the Matrix fire. Somebody's calling me. Hold on, Mike's going to take a call real quick. Keep talking. That's Shlae calling. What's up, man? He's taking a live call. Let me put you on speakerphone. Let me put you on speakerphone. This is Beho. Hey, man. You're talking to an entire group of people or an audience of people. How you doing? Good. What do you have to say to them? How's the talk? What? You're the star! You're the star! We should probably hang up. I'm going to hang up now, dude. So, sorry. I like to call this one but wait, there's more. So at the appropriate places I'm going to do this and you guys are going to say What could possibly go wrong? Right. Yeah, what could possibly go wrong is kind of implied on this one. So, again, I do a lot of these types of things for more private organizations. Usually the audience is a little less receptive than you guys are. The usual look is like this. Tell me if you recognize this from your developers. And that means I totally buy what you're selling, right? I did an eval of they were trying to help somebody, a group, build a more robust, I guess more robust is the wrong way to say it because that would imply there was something there to begin with. We were trying to help them build a sapling of a security program for their web apps. This just so happens that it's a very, very large company that unfortunately all of you touch somehow during your day. No, no, no. Those stories are for later. That's creepy. So, looked at their company's homepage, the company name dot com page. I don't know about you guys, but the first thing I'm always drawn to is, oh look, login box. And so I asked the guy that I was working with as we were doing this mini assessment that we were supposed to do a report out on what this does and he's like, oh yeah, it's just our web login for, it's a strong authentication web login and it's single sign-on for the rest of their, which for those of you that don't know, if somebody says single sign-on, it means their cookie is usable across their entire domain. All of it. Right, exactly. Thank you. I had to wait on that one. I don't know what's going on here. So, he's explained to me how only this part of the system is just to sort of log in and check the status of your claim and look at any kind of bill you might have and stuff like that. I'm like, oh, so, that's not regulated at all. So, the funny thing is that assessment lasted, I think, 38 seconds because you know, okay, so there's just some things that shouldn't work in 2010. Putting the single tick or one equals one in your login box is one of them. Right, exactly. So, this is actually the beginning of the story. So, we quit there and he asked, this guy needed help. He was a security manager and you all know how much people listen to security managers in the corporations, right? So, he needed some firepower, he needed some ammo, somebody that's kind of done this before and I was like, alright, I'll kind of come out and help you and see if we can draw up some support. And he's like, what, it would really be helpful if we could do a live demo for them. I was like, yeah, you know, I don't feel comfortable doing that on your live. He's like, come on, I'll get executive sign-off, we'll do a live demo. I'm like, alright, dude, we'll do a live demo. So, I threw on, you know, my best shades and went up there and we're talking and I'm explaining to them how this is and by the way, so the room is set up sort of like this. There's a bunch of developers, there's like the C-level folks, a cluster of four sitting in the left-hand side and there's a bunch of DBAs across the back, you know, it's like high school, it's not even high school, it's like grade school, it's like a grade school dance, you know, where everybody's sort of in their own space. Girls looking at boys across the dance floor. It's kind of like what this was. So, they're sitting there and they're listening and so I told them how easy it would be to pop this database and they're like, well, can we see it? I said, sure. So, I work for a company that does a little bit of web app stuff and I have this tool that's sort of named after what it does. It's called a SQL injector, right? It's not rocket science. And so, you know, you basically copy paste the URL, you click the button that says go and it starts going. And while it's going I'm talking to them about the bad things that can happen from SQL injection and such. And I'm getting this. Apparently I'm wasting their time. So, immediately, about a minute into this, you know, there's a little box that pops up and it shows the machine's name, the SQL version number and the IP address. So, the guy, the security guy now is kind of I've got this small smile creeping across his face and DBAs in the back are like, huh, that's probably not good. But, you know, they're not panicked yet. And so, I'm trying to explain that hacking, this really isn't hacking, it's just sort of stumbling through accidental fail. So, I get there, I look over to see folks, can I get your permission to see this button over here? It says get rows. Can I do that just for posterity? He goes, yeah, go ahead. Click. Within about 30 seconds we had about 20% of the database on my laptop. The row names and stuff. Then we got the column names. And it only gets better from there. So, at that point I decided I was going to really kind of show them beyond what a tool can do. Because now I'm extracting data so I can own your data, which is cool. And now they're slightly panicking. Security guy's smile is just a little bit bigger. And so, I open a I'm writing out a command line. It's got the command string, stop me if you've heard this, net user add. Administrator. Okay. So, there's a guy in the back that at that point just goes, whoa, stop. And the entire room. And the entire room at that point does one of these. And not being able to help myself, I said, what's up? He's like, well, I think it's, that's good enough. He's like, I really don't think we should go any further. Why? Right. So, what could possibly go wrong? And so he looks at me and he says, well, here's the deal. I really, I don't know if we can talk about, I can't really know if we can talk about it because you guys are technically a vendor. And we should. And the CISO looks at him and says, well, we're here to learn, Mark. Why don't you just go ahead and tell us? At this point, I think he may have crapped himself. Because here's where it gets really good. So, normally when I, you know, when I look at a database and I've got full access to your machine, I can, you know, pop all the data. That's pretty good, right? I'm a happy guy. You know, life's pretty easy. So the fact that it gets better from there is like sprinkles on ice cream. It's delicious. So, by the way, Mike, did you notice the room filled up? People are just waking up or maybe they're just looking for somewhere to sleep. You guys rock. Anyway, so, back to this. Yes. They came for the fireside chat. So, I'll hurry this along. So, he says, he goes, don't hit enter. I'm like, well, you know, you can just delete this. It's just a local account. I'll delete it later. He goes, well, look, we went through this round of server consolidation. There was a lot of extra hardware glut and this box was overbuilt. So we had to consolidate this instance of SQL Server. I'm like, really? And he says, well, the architect decided that because there was similar classifications of data that the ERP system should live on it. Right. The fact that this gets better just is like a testament to how really bad things get. So, the security guy is now smiling just a little more. And I'm actually like really interested. Because this is a level of fail I haven't seen in a while. I'm like, oh, okay. Well, I'm like, yeah, I know. So you can do things across the different SQL instances and stuff. That's pretty bad. I'm like, yeah, but, you know, at least you're still limited. He goes, ah, well. The fire is over. Should we try a campfire? There is one. So, as he says, Nice. Nice. The relaxing fishies. So, and now he's explained to me that because the ERP front end app was written in, you guys ready for this? And it didn't work across the firewall. That server is where? On the inside. On the inside. That's right. And so the security guy now has a smile that goes from about this ear to this ear. And if he goes like this, his head might flip over. So, I'm like, wow, that's pretty special. That really is a bad idea. So, I'd be making myself a username on your internal network. And he goes, actually? And at this point you're asking yourself, how? Do we kill kittens? Well, folks, because this, these guys have decided to do this so well, corporate policy, security policy, dictated that all internal machines, all internal Windows machines, had to be on the domain. And because of server consolidation, you know the rest of that. So, if I would have hit enter, I would have been what? God. Administrator on the domain. You would have been God. So, is there more? No, there isn't anymore. But at that point, my security contact, he's looking at me, and I'm, he might have actually wet himself. Because this is a completely unanticipated failure. So he goes, so what do you recommend first? The sales guy that I was with was looking at me, and as serious as I could say it, as seriously as I could say it, I looked at him, dead in the eyes, I said, turn it off. But yeah, that's probably my best one. I've run into that twice now, where, you know, I mean, look, let's be realistic, corporations have, server consolidating, virtualizing, pushing to the cloud. Sorry, that was for Hoff, he's probably not here. He flew out this morning. Let's talk more about web service. Yeah, go back to your web service. You guys ready for more? All right, Mikey, I've been working with you for a while. and that's convenient. But it's not necessarily such a good idea. You know, the online banking, things like that, they get hacked over. Actually, you don't really hear about it that often, but they do get hacked all over the place, at least all the ones I've looked at have vulnerabilities. My mortgage company, actually, I've been fighting with them for, well, actually, I've moved away now, so hopefully I'll be done with them soon, but I've been fighting with them for three years. Did you sell your house? As soon as I do sell it, I'm going to be done with it. Anyways, their web application for managing my mortgage and my online banking and all that stuff, session ID is a time stamp. There's cross-site scripting, cross-site request, vulnerabilities to it. Okay, let's keep going, actually. My statements are actually PDFs that are just sitting there in the server. Sequentially numbered, probably? Sequentially numbered by your loan ID number. That's good. Yeah, actually, during tax season, my social security number's in there, too. Great. In a publicly accessible folder? Yes. I'm not even telling you guys where I live. Yeah, he's not going to tell you what bank he uses, because you guys probably have this problem, too. The response comes back. All right, the time stamp issue, it's not a problem, because we have a secret formula we use to generate that session ID. I'm like, no, it's a time stamp. I did it. I stole my own session three times. Trust me, I'm an expert. Yeah, I know about these things. And they insisted that the cross-site scripting holes don't matter because they have countermeasures on the back end. I'm like, no, I stole my session three times. The PDFs, they actually did apologize for that and removed those, just the PDFs with my social security number in them from the server. But the links are all, actually, I just got that wrong. They removed the links from the server. The PDFs were still up there until I complained the second time. Put the fish back. We've got different aquariums now. Piano, rain music, nature scenes. All right. Okay. Whoa. No. I do not need... Just name that fish. You just don't know what's coming up on screen. Nobody wants like a Lindsay Lohan shot or anything. David Soxby's reef aquarium. Yeah, I went there. Okay. All right. So that's the online banking apps. These are the online banking apps. They're pretty bad. They're not the worst out there. Who's heard of MyMoney? It's actually not very big and there's a good reason for it. Online banking through Facebook. It's a Facebook app. Dude, this is a terrible aquarium. That is quite bossy. Or it's like Quentin Tarantino style. Fish are all packing. Reservoir fish. Reservoir fish. I like it. Go back to the fireplace. Yeah, we're going back to the fireplace. Fair. I'm stoking up the fire now. All right. So MyMoney, Facebook app. Hands up on the table. You want to be stoking up the fire. Okay. Anyways. It has vulnerabilities. Like the fact that you can put a different Facebook user's user ID in and get a different profile to come up. You have to guess which users are actually using this MyMoney app. But it's not hard because there's a list of the fans. And the advertisement page from this company, that created it. It says something to the effect of, you can harness the power of social networking to for your to advertise your bank or some shit like that. Get robbed on the net. Free. Sponsored by the RBN. Yeah. So MyMoney's bad. But at least they're trying to make things private. Well, sort of-ish. Blippi. Everybody's used Blippi. I use Blippi. All right. Blippi is awesome. Let's just skip that one, actually. We don't have time for it. That'll bring me off into an angry rant. What else do I have? What has this been so far? This is my lazy, my depressed, hungover rant. I have many flavors of rants. All right. Where should I go next? Source code. What? So while the hamster's getting back on the wheel. One of the So we work with We want to talk about web services for just a second. For just a second. We'll talk about web services. For just a second. Because I think that was the title of the talk at some point. If anybody's a can of Dr. Pepper, I've always wanted to say, trust me, I'm a doctor and hold that up. So I'd appreciate that. Anybody have some beer? I want beer. What? It's way too late. So lately, there's a talk I'm working on called No REST for the Wicked. And REST stands for Representational State Transfer. As you guys know, REST for web services. Now, does anybody know the main problem that I could possibly have with REST as a security person? Wow. It's insecure. The answer up front was it's insecure. Good answer. No. REST calls are entirely unstructured. So I'd like to I'm a testing kind of guy. I like to poke and prod at things. So if you're writing something, I need to be able to write a script or create something that will test it. The problem with REST is every developer gets to choose how they implement it. What could possibly go wrong? For those of you that are I don't know why people are still coming in. Is there a good talk next? Should we stay afterwards? Yeah, there must be a really good talk after us. So for those of you new to the room, we're playing a game called What Could Possibly Go Wrong? When I do this, everybody should say What could possibly go wrong? Right. Cool. So testing these things is evil. And I think the only people that actually write RESTful web services are the ones that either don't know how to code or are too lazy to follow rules. There's this whole thing about how APIs are if you really need a lightweight API, go with REST. I prefer to say that if you don't ever want to document what you're doing, go REST. Go REST. Get it? No? Wow. Okay. It wasn't that funny. It wasn't that funny. So working on a I don't know if I can tell you who it is. So working on a particular implementation of REST, there was a set of services on a particular domain that interested me that was passing data back and forth. And it was just a serial string of numbers. And any time I see numbers passing back and forth on a social media site that I use a lot, I'm always interested. And I think, Mike, you might have mentioned this at some point. Not during talk, but you've mentioned this before. And I was very interested in watching things kind of go by. Tinker and manipulate. So at one point I just started randomly putting things into the string that was being passed around. Interestingly enough, if you substitute, take the number one out and put in a string of script and just let it go, it gets passed around to 21 different servers eventually. How do I know this? Some of them have the same IP address, which even worries me more. So the moral of the story is I had a conversation with one of the folks that writes this. He says, well, developers get to write... Are you flicking us off? He's telling us to hurry up. Thanks. You can fire off into a wrap-up rant soon. A wrap-up rant. And he says, well, the developers wrote an open API that allowed outside folks to sort of... You guys know where we're going with this. That allowed outside folks to start writing their own code and to create new interfaces and new plug-ins and new gadgets and crap like that. And the flash of brilliance there is that we want to leave it as unstructured as possible to not restrict creativity. You guys got it now. Well, what could possibly go wrong with a cross-site script like a crap ton of this domain completely by accident? Unfortunately from your corporate IP address. But so... And the biggest challenge you have with something like that is again, testing it, right? So figuring out what it does. As the security guys, you guys go back to work at some point. Some of you work. The rest of you just make my life hell. So if you go back to work on Tuesday or Friday, what is today? Whatever today is. Whatever day you go back to work. You'll look around your company for REST web services and ask yourself, how the hell are you going to test that? Because they're not going to document it for you. There's no pretty XML structure. There's no soap envelope. It's just crap streaming back and forth. So I thought I'd just throw that out there as a thought from me. Good luck. So there's a lot of things that are being pushed into the web. There's a lot of web services out there that some of them are useful. Some of them aren't useful. Some of them are good ideas. Some of them are bad ideas. One thing that everybody here... We really haven't even gone over it that much. I want everybody here to understand there's absolutely no security built into the web. Wait, what? Is this a shocking revelation to anybody? Because it really... People... We've been trying to hack on terrible, terrible fixes for web application problems for 15 years now. More than that, actually. But... Browsers are incredibly insecure. They have no boundaries. Web applications have no inherent boundaries built into them. We're trying to hack it... See, I'm actually just about to get momentum here with my rant. Go for it. No, he stopped it. He killed it. Browsers suck. Get your momentum. Get my momentum. All right. So... Yeah. I've hacked his brain. You've hacked my brain. I win. Anyways. Web applications are very insecure. Cross-site scripting, cross-site request forgery, these stupid little attacks that are getting people owned right and left all the time, they're not complicated, they're not new, but they're incredibly useful because they work everywhere. XSS is like the universal API. It makes it so that you can integrate your web application with anybody else's. Anyways. Whenever people want to move things onto the web, whether it's the admin panel for your network appliance or... Is there a reason that your firewall really needs a web interface on it? Are you... I mean, if you really can't work the CLI, you shouldn't be managing a firewall. Do you realize it just disqualified about 50% of the firewall builders out there, right? I know. But speaking of, earlier this year, I found an XSS in the Palo Alto firewall within five minutes. It was the first place I looked. I think that people just aren't looking at them because they're expensive and people who have spare time aren't actually looking at them. It's crazy. Anyways. They're secure. Yeah, they are. We don't need most of the web services we have and most of them are really dangerous. I'll finish up with one story. Go for it. We're out of time, though. How much time do we have? We're done. We're out. Hey, thanks.