Good morning. I'm John Kibler. Mike Cooper over here. This is Hack the Textbook, which we're going to talk about the textbook security project. We had hoped to be fully up and running, but we are in beta mode. So this is, you know, I'm going to show you where we hope to be in a couple weeks. Now, I'm going to go through real quickly a little bit about, you know, the problem we're trying to fix and a little bit about the project itself and do a little quick demo. Now, as we're all, you know, security aware, let's face it, other than the people problem, the majority of our security issues are caused because our code sucks, period. And why is our code so bad? Well, because most people that have learned to program in school have learned through textbooks that teach bad programming practices. They teach you how to write insecure code. If you, you know, try to fix the problem, you know, there's all sorts of problems. And, you know, instructors have to teach what's in the textbooks because that's what they're evaluated on. There isn't time, you know, to try to fix the material. So there's a whole lot of excuses as to why there is a problem. And the goal of this project is to hopefully publicly disclose, you know, the vulnerabilities that are in textbooks to try to force the authors, you know, to realize that they do have problems and their problems have impact and that, you know, they need to be fixed. Thank you. Thank you. Thank you. From an industry perspective, you know, people expect when they hire a computer science graduate out of school that they want to have somebody that can write good quality code. And they're tired of having to retrain new graduates to be able to write secure code. However, from academic, they say, well, you know, it isn't a real problem. You know, if it was a real problem, the publishers would be pushing the authors to fix the books. And, you know, the students, you know, should be learning theory anyway, you know, not practical real world applications. And there's also the argument among those professors that would like to fix the problem, that there's not enough resources to fix the problem. You know, half the instructors teaching software development are not security experts. And besides, the classes are so jam-packed anyway, there's not enough time to add new material to the courses. So that's the goal of this project, the textbook security project, which is also known as Hack the Textbook. The immediate goals are to publicly expose the security flaws. And to encourage authors to use secure software development practices in their textbooks, revise their existing books, and to get it right the first time when they write new books. The long-term objective is really to make secure software development practices the standard way that programming is taught across the academic environment. To make security an integral part of every part of the computer science curricula. You know, right now, most people... You know, don't take a software engineering or a security course until they're a junior or senior. By then, they've had two to three years of learning how to do it wrong. And you expect them to, you know, in one semester, relearn how to do everything right. You know, it doesn't quite fit, so, you know, teach everybody to do it right the first time. And also, we'd like to become a resource that authors and college faculty can use, you know, to find out what are the latest issues and, you know, what are the problems and how should they be fixed. What we need... is your help. You know, we need you to identify the textbooks that are out there in common use, the courses that are being used for. We need people that are, you know, technically qualified, shall we say, you know, they have the creds in the industry to review the books. We need help, you know, editing the reviews, because we want to make this, you know, professional, because that's the only way we're going to, you know, get academia and the publishers to pay attention to us. Once reviews are up, we want to have people link to the site, link to the reviews. You know, somebody's got a really bad textbook out there. The only way that that fact is going to come to light is if the review is, you know, relatively high up in the Google search. We'd like people to contribute, you know, white papers that, you know, show best practices. And also, completely unrelated to the project, you as an individual working with your local university can say, you know, I am an expert in security. You know, these are the issues we're seeing in the real world. Because most in academia haven't a clue what is really going out there. And they really don't even know that they're teaching bad software development practices. So, you know, you can work with your local universities, you know, to try to fix their problems in their curricula. If you have any publishers out here in the audience, we'd like, you know, to get contributions of books for review. And we're also going to set this up as a nonprofit corporation. So, you know, any other donations that we can get, you know, to help fund the project. Would be appreciated. There's several different levels of users. Basically, everybody just visiting the site will be able to review all the technical content. If you want to make a submission, but you don't want to have to disclose any information. Then we just ask for a one-shot email address that will send you a confirmation link. Just so we have a way of, you know, confirming that there's a real warm body submitting content out there. You can register providing some basic information such as your name. And an email address. And you can, in that case, only the handle that you provide will be publicly disclosed. And you can submit books for review. You can comment on reviews. And you can assign books to courses. You know, I'm using this book at this course at this school. And reviewers, you know, we would like for you to submit a brief bio. So that when the publisher says, you know, who's this moron that's criticizing this book that we put out here. You know, we can show a bio that says, you know, this person is really somebody that knows what they're talking about. You should be listening to them. The only thing that would be disclosed publicly would be your handle or your real name. Whichever you would choose to have disclosed. Your bio would be viewable by confirmed authors and publishers of the textbooks you review. It would not be viewable by all the publishers or all the authors. Just the ones for whose books you've reviewed. And you would be able to do everything that a normal user could do. Plus submit reviews and contribute white papers. We also have a need for editors to help go through and review content. You would essentially be invisible to everybody except the reviewers and the staff. And authors and publishers, we would require registration and then direct contact information. So we can really verify that you are who you claim to be. And you would be invisible to everyone except the reviewers and the staff. A little bit of notes on workflow. Most of the content will not be made public until it's been reviewed and approved. With the exception of book submissions and course submissions. Users that are not logged in will be requested to give an email address to confirm who they are. And click on the link before the review content is made public. Editors may contact reviewers about making, you know, grammar and, you know, other clarity type queries. Corrections to your reviews. And authors and publishers can request that you contact them regarding your reviews. We will not disclose your contact information to authors or publishers. But we will inform reviewers, you know, that an author or publisher would like to talk to you. So, you know, please, let's keep it professional. You know, don't, you know, make broad sweeping generalizations. If you should choose to write a review, you know, this book stinks. You know, it does not construct. A constructive review, you know, kind of stick to the facts. And we're going to go through now a real quick demonstration. Mike. Thanks. All right. We're having a little display issue. One second. Cool. All right. So basically I'm going to go add a book to the site. And then we're going to add a quick review. A little bit of background. While I was out at RSA earlier this year. Fortify. Talked about a book that they found had security vulnerabilities. They contacted the author. So since they decided to pick on them a little bit. Then we thought it was safe ground. So. I'm searching for the book in Amazon's web services. So I'll bring that up. And just confirm this is the book that we want to review. And we'll add it to the site. Okay. And then what we'll do is we'll go and add a review. I've already got some text. So I'm going to select the lowest rating for this book. It does. I should caveat that this book does mention security in a little bit. But it doesn't actually talk about it in reference to coding. So. Let me get my review here. So. As I mentioned. Fortify talked about the book. The author had a quote that said that he didn't intend these code samples to be used in production. But obviously we all know that happens. I mean. This one. I mean. Why would an author make a statement that they wouldn't expect their code examples to be used in the real world? I mean. What would they expect? I mean. They're teaching people how to write code. If the code wasn't intended for real use. Then what are you trying to teach? So. These quotes were taken from the article. There's the URL down at the bottom of the review. It's also in our slides. So. I'm going to add the bad code example that was taken directly from the book. And I'll talk briefly about that. So. Those of you that I can hear snickering may have already noticed that they're just putting user input right out to the output stream. So. This is on page 60. And it's code listing 3.8. For those that would like to take a look at this. So. Real quick. You can see they're pulling a bunch of parameters directly out of the request string. And they're just writing the response right back out. So. That's classic. And very, very simple cross-site scripting. So that's my bad code example. Now I'm going to add an exploit to this example. If you can call it an exploit. And just because I already have it, I'm going to paste it. So. Really that's fairly. Fairly. Proof of concept cross-site scripting. But it works great. So now. One of the most important things. We're going to add an example of how this code can be fixed. Depends on your perspective. So. Our fix for this was to use the OWASP's enterprise security API. It's pretty cool. You have to know what context you're in. In this particular example, we're in the HTML context. Most of the bugs that we found in this book, which we found a number, were in the HTML context. Although we did find one that was in the JSON that was sent back and forth. So it was in a JavaScript context. So. We submit this fixed code example. Then what we'll do is we'll go over here to the review. You can tell by the little unlock symbol here. That this book doesn't fair very well. I'm sorry? For this one. It's. The code example that they gave. There's no storage at all. It just basically blitz it right back out. So. We simply are encoding it. When we get it. If you're going to use this in a back end database. Which none of the examples really had in the book that we looked at. You'd obviously want to be doing validation for various other things. SQL injection. Yeah. We don't have the functionality right now. But there will also be the ability to comment. So. For example. If you wanted to raise that issue. Or say. Hey. Guess what? You didn't. You didn't consider SQL injection. I would recommend doing it this way. That's one of the features that we definitely are going to be adding. I don't have one. We actually. Just started reading about it. And there was a video that was released. So we decided it was not a bad thing to add in. For this example. So. For the. Full review that we have. You can see there's the. The fixed code example. We have the exploit. The ordering is reversed for some reason. We have the summary. And then we have the bad code example. The fixed code. And the exploit. That's pretty much it. It wasn't intended to come out in reverse order. But you know. All demos break. So. Yeah. Include. Yeah. So. Okay. Let me switch back. Okay. So. To summarize. You know. Really. The key. To fixing. Our nonhuman. Security. Problems. Are. To. You know. Fix our code problems. The. To fix the code problems. We really need. To teach programmers. How to write. Good code. And. The key. To teach programmers. How to write. Good code. Is. To. You know. Use textbooks. That teach good. Software development. Practices. And. The majority. Of the books. Out there. Today. From. You know. Everything. We hear. From the university. Environment. Is. That the books. Really. Teach. Bad. Programming. Practices. From. Day. One. So. If. Find. Problems. You. Know. Please. Don't. Pwn. Us. You. Know. Contact. Us. You. Know. Tell. Us. Hey. You. Know. You. A. In. Your. Site. You. Know. You. Can. Have. X. Vulnerabilities. You. Know. Let. Us. Know. The. Contact. Informations. On. The. Last. Slide. Let's. See. We've. Got. About. Four. Minutes. Any. Real. Quick. Questions. Okay. Back. There. Louder. Please. Okay. The. Question. Is. He's. A. Student. University. What. Should. He. Be. Doing. To. Try. To. Fix. This. On. His. Side. Definitely. Submit. The. Know. It's. Got. All. These. Vulnerabilities. In. It. Why. Are. You. Teaching. Us. To. Write. Bad. Code. I. Mean. It's. This. Is. Going. To. A. Grassroots. From. The. Bottom. Up. Effort. And. We. Really. Need. Everyone's. Help. Any. Other. Quick. Questions. Yes. A. Ladder. Please. What. Do. Do. To. Get. Your. University. Actively. Involved. You. It's. From. The. Students. Up. I. Mean. You. As. A. Student. You. Know. Can. Take. This. Site. To. Your. Professors. And. Say. Hey. You. Know. Here. Are. The. Reviews. Yes. Put. Up. Signs. Spread. The. Word. Anything. That. You. Care. To. Do. Please. And. Once. Reviews. Are. Up. Link. To. Them. You. Know. Put. Them. On. Your. Facebook. It's. Just. That. You. Know. When. You. When. We're. Sitting. Here. Doing. Development. We. Need. An. Official. You. Know. Name. That. The. Publishers. You. Know. Would. Not. You. Know. Choke. On. You. Know. For. The. Publishers. Will. Tell. Them. It's. T. B. S. P. Dot. Org. For. The. Rest. Of. The. World. You. Know. Kind. Of. A. You. Know. We're. Not. Not. This. Is. Really. I. This. Is. A. Pl. Been. A. Project. That. I. Have. Had. Some. Discussion. With. Several. Universities. I. Work. With. On. We. Kind. Of. Started. On. It. Late. March. And. It's. Been. Spare. Time. But. We. Hope. To. Find. A. More. Time. Now. To. You. Know. Try. To. Get. It. Up. And. Going. Probably. By. The. End. Of. The. Month. Okay. Any. Other. Questions. I'll. Be. Glad. To. Take. Them. Out. In. The. Hall. Contact. Information. Website. Information. And. Defcon. Will. Have. The. Slides. So. Look. For. Them. On. The. Defcon. Website. Sometime. In. The. Next. Couple. Weeks. Whenever. They. Get. Around. Putting. Them. Up. Thank. You.