1 00:00:08,140 --> 00:00:15,700 To get started, this talk is about theft of service attacks and subscription service 2 00:00:15,700 --> 00:00:21,680 vulnerabilities. This talk is going to be a little bit different than other talks which 3 00:00:21,680 --> 00:00:27,640 normally focus on system exploits. These exploits that I'm talking about today are 4 00:00:27,640 --> 00:00:34,040 going to be more of an annoyance kind of an attack, and also the attacks try not to cross 5 00:00:34,040 --> 00:00:39,860 the line of actual legal fraud. Some of them do, but most of them try not to. Most of them 6 00:00:39,860 --> 00:00:45,920 just use the holes that are in the applications that are hosted on websites. A lot of them 7 00:00:45,920 --> 00:00:50,740 are developed custom in-house and they don't go through a lot of testing, and there's a 8 00:00:50,740 --> 00:00:54,540 lot of simple things that just seem to work with a lot of different websites that are 9 00:00:54,540 --> 00:00:54,900 out there. 10 00:00:56,800 --> 00:01:03,680 A little bit about myself. My name is Rob Sheehy. I'm with Zentech Consulting. An update 11 00:01:03,680 --> 00:01:08,780 of all the slides is available at zentech.com, DEF CON 11, slash TOS. 12 00:01:11,540 --> 00:01:17,520 Now what are theft of service attacks? They're an application-level attack. The attacker 13 00:01:17,940 --> 00:01:23,220 gains increased access to some limited resource. Usually it's something that you would pay 14 00:01:23,220 --> 00:01:23,480 for. 15 00:01:24,900 --> 00:01:29,660 A opportunistic attack. It's really hard to kind of scan for sites that are vulnerable 16 00:01:29,660 --> 00:01:34,520 to these types of things. It might be just something you almost stumble across and just 17 00:01:34,520 --> 00:01:36,020 find out a site is vulnerable to. 18 00:01:36,600 --> 00:01:42,100 The attacks typically do not result in administrator access. It just gets you a little bit of 19 00:01:42,100 --> 00:01:47,160 elevated privileges or bypasses some restriction, but you don't actually own the system. 20 00:01:49,480 --> 00:01:54,640 Some example targets for theft of service attacks would be a software registration 21 00:01:54,900 --> 00:02:02,000 and downloads, adult web hosting sites, web hosting accounts, proxy and anonymity services, 22 00:02:02,280 --> 00:02:08,540 dial-up internet services, email and Usenet services, show accounts, financial news services, 23 00:02:08,840 --> 00:02:14,240 and even domain name registrations. All different kinds of companies are vulnerable 24 00:02:14,240 --> 00:02:16,120 to the attacks that I'm going to be talking about. 25 00:02:17,360 --> 00:02:21,920 Some more examples are hacker conventions and hotels that host hacker conventions. 26 00:02:22,180 --> 00:02:22,580 . 27 00:02:22,580 --> 00:02:22,600 . 28 00:02:52,600 --> 00:02:52,680 . 29 00:03:04,240 --> 00:03:05,280 . . . . 30 00:03:05,280 --> 00:03:05,940 . . . . . . . 31 00:03:05,940 --> 00:03:07,460 . . . . . . . . . . . . . 32 00:03:07,460 --> 00:03:12,420 Thema unfortunately to someone who keeps 33 00:03:12,420 --> 00:03:17,620 up with the Internet secret straightawayщ result is very solid. 34 00:03:17,620 --> 00:03:17,720 There are just videos that show the benefits of정의rapportsasi NHQ isexпервых they 35 00:03:17,720 --> 00:03:18,940 TEXT� EFFECTS A.W. STORER melee communication systems such as face recognition, requirements, 36 00:03:18,940 --> 00:03:22,580 speech recognition, ground mitation or the preoccupation with theарms Googlers with ANT shipment candidates. You see most individual group members meet in the North and South about everything you might Turtle. You circled through the bank on a mobile compact for the device he is using or on a mobile public entering system, 37 00:03:22,580 --> 00:03:25,740 No notice. Nobody knew. They just thought it was me for the talk. 38 00:03:26,200 --> 00:03:30,180 And he just went in and said, hey, I'm here for the theft of service attack talk. 39 00:03:30,440 --> 00:03:34,800 And they just gave him a badge, and no one ever even asked me if he had anything to do with it. 40 00:03:35,480 --> 00:03:40,460 Actually, I walked into the speaker area with the fake badge on. 41 00:03:42,080 --> 00:03:47,940 And when I said I was going up to get a speaker badge, a goon said, you're going up to get a speaker badge? 42 00:03:48,080 --> 00:03:49,740 Yeah, let me see the badge you've got on. 43 00:03:49,740 --> 00:03:54,080 And I showed it to him, and I said, it's a fake badge because I'm in the theft of service talk. 44 00:03:55,080 --> 00:03:56,320 And he said, go ahead. 45 00:04:03,020 --> 00:04:08,700 So, and besides hacking the convention, you can also hack the hotel that hosts the convention. 46 00:04:09,480 --> 00:04:15,980 If you have a hotel here, you can actually get cheaper Internet access if your room actually has Internet. 47 00:04:16,600 --> 00:04:19,600 When you go out, the way it works is you send out any Internet. 48 00:04:19,740 --> 00:04:20,820 You send out requests through port 80. 49 00:04:20,900 --> 00:04:23,540 It gets redirected to this IP address. 50 00:04:23,900 --> 00:04:28,460 And the user is presented with two options where you can get either a public or private IP address. 51 00:04:28,600 --> 00:04:30,580 And you pay either $10 or $11. 52 00:04:31,420 --> 00:04:37,000 Well, if you go and view the source of that form, all it has is a couple options. 53 00:04:37,300 --> 00:04:41,180 And value equals one for the first one, and value equals four for the other. 54 00:04:41,460 --> 00:04:46,220 And so I started playing around with the values to just, hey, let's see what happens if I submit other values. 55 00:04:46,400 --> 00:04:49,340 And I only got a little bit through it. 56 00:04:49,740 --> 00:04:55,560 Because as it starts to charge you, I mean, you can't really go through and try and find the other ones and know if it really works. 57 00:04:55,700 --> 00:04:57,300 But this is what I found out. 58 00:04:57,360 --> 00:04:59,120 Two and three can be homework for you guys. 59 00:05:00,120 --> 00:05:03,660 But if you actually go through option six, you only pay $2.95. 60 00:05:04,020 --> 00:05:09,880 The access is slower, but it's an option that's available, but they just don't present it to you. 61 00:05:10,000 --> 00:05:16,840 So all you have to do is actually view the source, change the option of whatever you're going to select, 62 00:05:16,980 --> 00:05:19,380 and then save the HTML file on your desktop. 63 00:05:19,740 --> 00:05:25,660 Make sure all your browsers are closed, and then just open up that file that you saved with the edited option, 64 00:05:25,820 --> 00:05:27,340 and just say, I want to connect. 65 00:05:27,640 --> 00:05:30,380 And if it's option six, it'll do $2.95. 66 00:05:30,940 --> 00:05:37,340 I have a sneaking suspicion three is going to be a private IP address, and it might just be $1.95. 67 00:05:38,460 --> 00:05:43,180 And the speed is just fine if you want to check your email and not have to pay $10 every day. 68 00:05:45,100 --> 00:05:48,320 Now, who are the attackers that perform these types of attacks? 69 00:05:49,740 --> 00:05:53,620 It could be a technically savvy customer of some service. 70 00:05:53,760 --> 00:05:58,360 A competitor might try and do something to mess up somebody else's system. 71 00:05:58,900 --> 00:06:04,500 Email spammers will try and get free accounts so that they can spread out their email. 72 00:06:04,920 --> 00:06:08,460 Anyone looking for a better deal, say you're searching around for services, 73 00:06:08,560 --> 00:06:12,460 and someone just happens to be vulnerable to something to where you pay the normal price 74 00:06:12,460 --> 00:06:17,600 but get something better than what everyone else does, you're probably going to pay for that service. 75 00:06:17,940 --> 00:06:19,720 A legitimate customer is free. 76 00:06:19,740 --> 00:06:22,660 This would be for account-sharing type of attacks. 77 00:06:23,120 --> 00:06:28,040 Script could use worldwide, and of course, my friend Bobcat, they're the attackers too. 78 00:06:29,800 --> 00:06:30,720 What's stolen? 79 00:06:31,140 --> 00:06:37,400 This is kind of similar to what kind of services, web hosting, DNS registration fees, 80 00:06:37,560 --> 00:06:39,040 and of course, software downloads. 81 00:06:39,640 --> 00:06:44,180 Anything that's not physical, the security seems to be a lot more lax. 82 00:06:46,000 --> 00:06:49,460 Now, subscription-based systems seem to be especially vulnerable, 83 00:06:51,560 --> 00:06:54,940 because they're left up unattended, nobody's really watching them. 84 00:06:55,000 --> 00:06:58,220 They set them up so that it just runs, people sign up, they do what they're going to do, 85 00:06:58,320 --> 00:07:00,360 and they just get their money at the end of the day. 86 00:07:03,820 --> 00:07:05,660 Usually, they're set up kind of quick. 87 00:07:05,700 --> 00:07:09,940 They want to get it up and running, because the subscription service is the company's only form of income, 88 00:07:10,160 --> 00:07:12,940 so they want to get it up and running as quickly as possible, 89 00:07:13,080 --> 00:07:17,280 so they may not spend the attention to security detail as they really should. 90 00:07:17,660 --> 00:07:19,720 A lot of these attacks are really... 91 00:07:19,740 --> 00:07:22,140 really simple, I mean, script-kiddy-ish. 92 00:07:22,560 --> 00:07:25,900 But it's amazing how many sites out there are vulnerable to them. 93 00:07:28,760 --> 00:07:33,720 Okay, and some of the problems may be that the service can't fix the problem, 94 00:07:33,840 --> 00:07:36,060 because they're using a third-party shopping cart, 95 00:07:36,200 --> 00:07:39,840 or the application was developed by a consultant who's no longer there, 96 00:07:39,980 --> 00:07:44,080 and all the code they wrote is uncommented, and no one can make heads or tails out of it. 97 00:07:44,660 --> 00:07:46,240 So they just have to live with it. 98 00:07:48,260 --> 00:07:49,140 Now, there's... 99 00:07:49,140 --> 00:07:53,000 Here's a list of common security holes used for theft of service attacks. 100 00:07:53,260 --> 00:07:54,300 I'm going to go through all of these. 101 00:07:55,180 --> 00:07:57,260 Instant account creation vulnerabilities. 102 00:07:57,840 --> 00:07:58,860 There's a lot of those. 103 00:07:58,960 --> 00:08:01,420 If you see, like, instant access, instant activation, 104 00:08:02,980 --> 00:08:07,960 chances are likely you can instantly nail them and get whatever it is for free. 105 00:08:09,200 --> 00:08:13,420 Subscription data in HTML forms, another big mistake a lot of places make. 106 00:08:13,920 --> 00:08:15,940 Authentication data that's stored in cookies. 107 00:08:16,540 --> 00:08:17,580 PayPal payments. 108 00:08:17,580 --> 00:08:22,180 Then there's also application server or operating system-specific vulnerabilities. 109 00:08:22,860 --> 00:08:28,300 Those could be used for theft of service attacks, but that's for some other talk. 110 00:08:28,580 --> 00:08:31,180 And there's also business process exploits, 111 00:08:31,180 --> 00:08:33,960 where you just deal... 112 00:08:33,960 --> 00:08:37,680 You take advantage of how they do business, how their customer service works. 113 00:08:38,300 --> 00:08:40,680 Sometimes you may even know someone on the inside. 114 00:08:42,440 --> 00:08:45,140 There's also copy protection circumvention. 115 00:08:45,620 --> 00:08:47,120 Getting software for free, 116 00:08:47,120 --> 00:08:49,140 or getting a serial number to register something, 117 00:08:49,260 --> 00:08:50,760 using someone else's serial number. 118 00:08:51,160 --> 00:08:53,420 And abuses of a legitimate account. 119 00:08:53,640 --> 00:08:56,240 So you have an account you really paid for, 120 00:08:56,360 --> 00:08:58,380 and you just do something that you know, 121 00:08:58,980 --> 00:09:02,740 or think and assume that the owners of the system would not want you to do. 122 00:09:02,780 --> 00:09:05,540 But you paid your money, you have your access, it's legitimate, 123 00:09:05,800 --> 00:09:08,220 and you're able to do some fun stuff because of it. 124 00:09:08,680 --> 00:09:11,540 There's also ways of bypassing the billing systems. 125 00:09:11,960 --> 00:09:16,960 And you can also sometimes do user-defined changes to the subscription term. 126 00:09:19,080 --> 00:09:24,920 Now, sometimes the way some of these tax will be obscured is by putting orders in, 127 00:09:25,000 --> 00:09:27,300 signing up for things during a holiday weekend. 128 00:09:28,240 --> 00:09:31,640 If there is any human review, they might miss it, 129 00:09:31,680 --> 00:09:33,900 because they just came back from a long weekend, 130 00:09:33,940 --> 00:09:35,200 they're not happy to be at work, 131 00:09:35,340 --> 00:09:37,320 they just want to get all these things done, 132 00:09:37,500 --> 00:09:39,880 they're not going to want to spend a lot of time on it. 133 00:09:40,240 --> 00:09:42,280 And you can use that to your advantage. 134 00:09:43,420 --> 00:09:46,700 Another thing that will happen is people will use a valid price, 135 00:09:47,480 --> 00:09:48,800 for something else. 136 00:09:48,940 --> 00:09:54,340 So, say there's a basic subscription that's five bucks and a premium that's 20. 137 00:09:54,640 --> 00:09:58,500 Well, they sign up for the premium, but it's at the basic price. 138 00:09:58,780 --> 00:10:01,200 If someone's just looking in their accounting records, 139 00:10:01,360 --> 00:10:02,660 they'll see the basic price, 140 00:10:02,780 --> 00:10:05,880 and it just blends in with all the other valid transactions. 141 00:10:06,280 --> 00:10:08,540 They really have to look at it closely to see it, 142 00:10:08,620 --> 00:10:10,760 and thus the attack is obscured. 143 00:10:11,920 --> 00:10:15,660 Now, for copy protection circumvention, that's really easy. 144 00:10:16,020 --> 00:10:17,100 You can go to those sites, 145 00:10:17,120 --> 00:10:18,100 there's websites listed above, 146 00:10:18,460 --> 00:10:21,040 there's search engines for serial numbers and cracks. 147 00:10:21,740 --> 00:10:23,500 You can also go on to Usenet, 148 00:10:23,620 --> 00:10:25,380 and things are posted regularly, 149 00:10:25,600 --> 00:10:28,220 and there's a few of the more popular groups to get things. 150 00:10:28,800 --> 00:10:30,200 I'm not going to linger on that. 151 00:10:31,020 --> 00:10:33,980 I'm going to move on to abuses of a legitimate account. 152 00:10:34,500 --> 00:10:36,060 Now, when you sign up for a new account, 153 00:10:36,260 --> 00:10:40,540 you'd be amazed how many places will let you choose your own login and password, 154 00:10:40,800 --> 00:10:44,360 and you can choose login and password as your password. 155 00:10:45,180 --> 00:10:46,820 That makes it really easy 156 00:10:46,820 --> 00:10:47,960 to share your account, too, 157 00:10:48,080 --> 00:10:48,720 because you can say, 158 00:10:48,780 --> 00:10:50,580 oh, hey, I've got this account on this system. 159 00:10:50,740 --> 00:10:51,880 It could be a valid account. 160 00:10:52,020 --> 00:10:53,100 You're really paying for it, 161 00:10:53,120 --> 00:10:54,100 and the login is login, 162 00:10:54,180 --> 00:10:55,100 and the password is password. 163 00:10:55,240 --> 00:10:55,800 Go have fun. 164 00:10:56,080 --> 00:10:56,860 I don't care. 165 00:10:57,620 --> 00:11:00,580 And, of course, then it also allows for anonymous sharing, 166 00:11:00,720 --> 00:11:02,320 because anyone who comes into a system, 167 00:11:02,380 --> 00:11:04,680 they just type in login and password if they want to try it, 168 00:11:04,720 --> 00:11:05,260 and it'll work. 169 00:11:05,720 --> 00:11:07,100 I've signed up for accounts myself 170 00:11:07,100 --> 00:11:09,700 where my login is login and my password is password, 171 00:11:09,900 --> 00:11:11,820 and I've actually found other systems where, 172 00:11:11,920 --> 00:11:13,280 oh, login was already taken, 173 00:11:13,680 --> 00:11:15,100 and they chose password. 174 00:11:20,580 --> 00:11:23,000 Another way to abuse a legitimate account, again, 175 00:11:23,020 --> 00:11:24,680 is having multiple people share it, 176 00:11:24,740 --> 00:11:26,340 although if the provider chooses, 177 00:11:26,500 --> 00:11:27,920 it's really easy to detect. 178 00:11:28,500 --> 00:11:30,040 If they try, I mean, 179 00:11:30,060 --> 00:11:31,380 there's going to be multiple connections 180 00:11:31,380 --> 00:11:32,700 from multiple IP addresses. 181 00:11:32,860 --> 00:11:34,760 The more people that are using an account, 182 00:11:34,900 --> 00:11:36,500 the more easy it's going to be to tell. 183 00:11:38,100 --> 00:11:40,760 Account sharing is less likely to occur, though, 184 00:11:40,820 --> 00:11:42,340 if the system exposes, like, 185 00:11:42,340 --> 00:11:43,980 your credit card data address, 186 00:11:44,180 --> 00:11:45,000 things like that. 187 00:11:45,160 --> 00:11:46,260 If I see a system, 188 00:11:46,260 --> 00:11:47,580 it exposes my address, 189 00:11:47,740 --> 00:11:48,640 who I am, and whatever, 190 00:11:48,860 --> 00:11:51,580 I'm really not going to want login and password 191 00:11:51,580 --> 00:11:52,820 as my login and password, 192 00:11:53,020 --> 00:11:55,600 because I really don't want that information that open. 193 00:11:55,920 --> 00:11:59,200 But if the account doesn't expose anything to me, 194 00:11:59,260 --> 00:12:00,360 if the account is simply a 195 00:12:00,360 --> 00:12:02,340 you have access or don't have access, 196 00:12:02,860 --> 00:12:03,340 fine. 197 00:12:04,180 --> 00:12:05,720 Login and password will work just fine. 198 00:12:06,180 --> 00:12:08,580 And also, you can share it with anybody else. 199 00:12:08,620 --> 00:12:09,220 It doesn't matter. 200 00:12:11,520 --> 00:12:14,540 Then there's also bypassing the billing system. 201 00:12:15,660 --> 00:12:16,240 You can... 202 00:12:16,260 --> 00:12:17,740 You can use cookie poisoning 203 00:12:17,740 --> 00:12:19,760 to alter your cookie 204 00:12:19,760 --> 00:12:22,380 if they're using cookies to identify the user, 205 00:12:22,540 --> 00:12:24,280 and you can actually assume the identity 206 00:12:24,280 --> 00:12:25,560 of a subscriber. 207 00:12:26,160 --> 00:12:28,180 You can take a look at what cookies you have 208 00:12:28,180 --> 00:12:30,100 and edit them with a program called Cookie Editor 209 00:12:30,100 --> 00:12:30,960 that's pretty good. 210 00:12:31,200 --> 00:12:33,000 And you can edit cookies in memory 211 00:12:33,480 --> 00:12:35,040 using a program called WinHack. 212 00:12:35,080 --> 00:12:36,580 So, of course, this is all under Windows. 213 00:12:37,780 --> 00:12:39,600 Lynx has some support for that, 214 00:12:39,640 --> 00:12:42,040 but I'm not going to go into that too much. 215 00:12:42,220 --> 00:12:44,500 I've got a little bit about Lynx later on. 216 00:12:46,340 --> 00:12:48,420 Another way to bypass the billing system 217 00:12:48,420 --> 00:12:50,860 is taking advantage of free trial accounts 218 00:12:50,860 --> 00:12:51,680 that are available. 219 00:12:53,060 --> 00:12:55,620 They're open to usually repeated abuse 220 00:12:55,620 --> 00:12:57,940 because if you sign up with a credit card, 221 00:12:57,980 --> 00:12:59,620 they give you some type of limited access, 222 00:13:00,480 --> 00:13:03,340 and then you can just cancel before it expires. 223 00:13:03,560 --> 00:13:04,700 If you have another credit card, 224 00:13:04,800 --> 00:13:06,820 you can sign up again for another trial account. 225 00:13:07,120 --> 00:13:09,040 It's real easy to cancel your credit card 226 00:13:09,040 --> 00:13:10,060 and just get a new one. 227 00:13:10,160 --> 00:13:11,640 The banks are really happy to do it, 228 00:13:11,680 --> 00:13:14,100 and usually the $2 or $3 fee of doing that 229 00:13:14,100 --> 00:13:15,980 is cheaper than the monthly subscription 230 00:13:15,980 --> 00:13:16,660 to an account. 231 00:13:18,940 --> 00:13:22,340 They'll also try to limit it with email addresses 232 00:13:22,340 --> 00:13:25,440 so that they want a unique email address. 233 00:13:25,580 --> 00:13:27,560 Well, getting new email addresses is not hard. 234 00:13:27,820 --> 00:13:29,940 Using credit cards and email addresses 235 00:13:29,940 --> 00:13:32,620 to have unique users 236 00:13:32,620 --> 00:13:34,540 and qualify a new user as unique 237 00:13:34,540 --> 00:13:36,820 and never been here is not very good. 238 00:13:36,980 --> 00:13:38,920 It's just too easy to get new credit card numbers 239 00:13:38,920 --> 00:13:40,180 and new email addresses. 240 00:13:49,280 --> 00:13:51,180 Anything free can be abused. 241 00:13:51,480 --> 00:13:53,060 If they're giving you free access, 242 00:13:53,360 --> 00:13:55,340 that's another good indicator 243 00:13:55,340 --> 00:13:57,140 that you can do something with it. 244 00:13:57,720 --> 00:14:00,520 Then there's also application-specific attacks. 245 00:14:00,800 --> 00:14:03,420 This is something you would find more on a system 246 00:14:03,420 --> 00:14:05,900 that you actually use, you find useful, 247 00:14:06,160 --> 00:14:08,000 and you just start playing around with things. 248 00:14:08,120 --> 00:14:09,880 You might throw garbage in somewhere 249 00:14:09,880 --> 00:14:11,120 or see what you can do. 250 00:14:11,720 --> 00:14:13,920 Maybe do some kind of obscure things 251 00:14:13,920 --> 00:14:15,780 when you're in the sign-up process. 252 00:14:15,980 --> 00:14:18,340 And bypass the billing 253 00:14:18,340 --> 00:14:20,800 or alter the billing so you get a better price. 254 00:14:22,260 --> 00:14:23,540 The front end, 255 00:14:23,680 --> 00:14:25,280 when you sign up for an account initially, 256 00:14:25,800 --> 00:14:27,820 that might be very well tested 257 00:14:27,820 --> 00:14:29,340 and may actually be secure. 258 00:14:29,660 --> 00:14:31,640 But then you can cancel your account 259 00:14:31,640 --> 00:14:33,260 or upgrade your account 260 00:14:33,260 --> 00:14:35,640 and the scripts that do the upgrade 261 00:14:35,640 --> 00:14:37,280 and so on and cancellation 262 00:14:37,280 --> 00:14:39,780 may not be as well tested 263 00:14:39,780 --> 00:14:41,640 and there may be some vulnerabilities in there 264 00:14:41,640 --> 00:14:42,620 that they don't know about 265 00:14:43,220 --> 00:14:45,100 with some of the methods. 266 00:14:45,160 --> 00:14:45,960 I'm going to talk a little bit about that. 267 00:14:48,580 --> 00:14:50,460 There's subscription-specific attacks. 268 00:14:50,760 --> 00:14:51,980 These types of things work 269 00:14:51,980 --> 00:14:55,500 where you are subscribing for some amount of term. 270 00:14:55,980 --> 00:14:57,900 Again, I talked about signing up 271 00:14:57,900 --> 00:14:59,760 with a premium account at a basic price, 272 00:15:00,100 --> 00:15:02,520 a yearly account at a monthly price, 273 00:15:03,120 --> 00:15:05,900 and a combination of the two can be really bad. 274 00:15:06,040 --> 00:15:09,220 You get a premium account for one month at $5, 275 00:15:09,340 --> 00:15:10,980 but it's really a year account 276 00:15:10,980 --> 00:15:12,840 with a premium account 277 00:15:12,840 --> 00:15:14,760 that they might be charging $200 for. 278 00:15:15,100 --> 00:15:15,700 Spammers, 279 00:15:15,980 --> 00:15:18,800 porn sites would love that. 280 00:15:18,840 --> 00:15:19,860 They can throw something up. 281 00:15:20,480 --> 00:15:23,160 It's something people really could make money off of 282 00:15:23,160 --> 00:15:24,880 if they really decided to. 283 00:15:26,480 --> 00:15:28,920 Again, there's attacking the resubscription process. 284 00:15:29,720 --> 00:15:31,220 Another thing I found is sometimes 285 00:15:32,560 --> 00:15:34,440 the user data in their database 286 00:15:34,440 --> 00:15:36,960 will get corrupted in certain sites 287 00:15:36,960 --> 00:15:40,400 and some of them have actually user verification pages. 288 00:15:40,760 --> 00:15:42,340 The user verification pages 289 00:15:42,340 --> 00:15:45,320 actually recreate the account for you 290 00:15:45,320 --> 00:15:45,960 sometimes. 291 00:15:45,960 --> 00:15:48,200 Sometimes just using something like a transaction ID 292 00:15:48,200 --> 00:15:49,580 or some kind of account ID 293 00:15:50,100 --> 00:15:51,640 that you used when you signed up. 294 00:15:52,400 --> 00:15:54,280 One example I can think of, 295 00:15:54,300 --> 00:15:55,560 although I'm not going to name names, 296 00:15:55,820 --> 00:15:58,200 is a site where they had a daily download limit 297 00:15:58,200 --> 00:15:59,860 and they had a verification page. 298 00:16:00,160 --> 00:16:02,060 The verification page linked 299 00:16:02,060 --> 00:16:03,780 a user ID and password 300 00:16:04,180 --> 00:16:05,520 to a valid subscription. 301 00:16:06,060 --> 00:16:07,620 While they had a daily download limit, 302 00:16:07,880 --> 00:16:10,560 you could get around that by going to the verification page 303 00:16:10,560 --> 00:16:13,180 and just choosing a brand new username and password 304 00:16:13,180 --> 00:16:15,940 when you verified your subscription ID in that new account. 305 00:16:15,960 --> 00:16:18,140 The new ID had a brand new download limit. 306 00:16:21,020 --> 00:16:24,260 Then there's also HTML form alteration attacks. 307 00:16:24,600 --> 00:16:25,120 This is similar. 308 00:16:25,820 --> 00:16:27,920 Actually, this is exactly what you would do 309 00:16:27,920 --> 00:16:31,320 for the Alexis Park to get cheaper internet access. 310 00:16:32,080 --> 00:16:34,580 For Get Posted forms, it's really easy 311 00:16:34,580 --> 00:16:36,560 because all the parameters are in the URL. 312 00:16:36,860 --> 00:16:38,180 You can see it right there. 313 00:16:38,460 --> 00:16:40,400 I mean, they throw it right at your face. 314 00:16:40,500 --> 00:16:42,660 It's kind of hard not to see these things when they do it. 315 00:16:43,600 --> 00:16:45,940 The post forms, though, you actually have to view them. 316 00:16:45,940 --> 00:16:47,780 You have to go to the source and take a look at things. 317 00:16:48,100 --> 00:16:53,180 Now, they'll have parameters that are input HTML tags 318 00:16:53,180 --> 00:16:54,260 that are of type hidden. 319 00:16:55,340 --> 00:16:57,940 And the quote character is optional. 320 00:16:58,240 --> 00:17:00,360 And down at the bottom is an example of something 321 00:17:00,360 --> 00:17:01,080 that would look like. 322 00:17:01,540 --> 00:17:02,800 Input, type hidden. 323 00:17:03,180 --> 00:17:05,020 It'll have a name and then a value. 324 00:17:06,120 --> 00:17:09,020 Nothing stops you from, since you have the source, 325 00:17:09,140 --> 00:17:11,240 changing those values, saving them, 326 00:17:11,380 --> 00:17:12,800 opening the form in the browser, 327 00:17:13,000 --> 00:17:14,560 and then submitting the page. 328 00:17:15,940 --> 00:17:19,080 One thing that you might run into is for the forms, 329 00:17:19,100 --> 00:17:20,800 there's an action equals. 330 00:17:21,360 --> 00:17:24,140 And that's where the form data is going to be submitted to. 331 00:17:24,260 --> 00:17:27,320 And that's some form, some script on their site. 332 00:17:27,660 --> 00:17:30,400 Sometimes the address, they don't have the full URL. 333 00:17:30,660 --> 00:17:31,840 They only have a local path. 334 00:17:32,200 --> 00:17:34,000 And if you're loading it off your hard drive, 335 00:17:34,100 --> 00:17:36,580 it's going to try and submit it to your hard drive. 336 00:17:36,720 --> 00:17:38,840 So you would also have to edit the action 337 00:17:38,840 --> 00:17:40,820 to include the URL if it's not there. 338 00:17:41,440 --> 00:17:42,820 But that's very trivial. 339 00:17:45,940 --> 00:17:48,900 The way that they'll validate that the form is legitimate 340 00:17:48,900 --> 00:17:52,860 is they will use the HTTP referrer to verify 341 00:17:52,860 --> 00:17:56,240 that this form was submitted and retrieved 342 00:17:56,240 --> 00:17:59,620 from whatever the domain was, acneinc.com, whatever. 343 00:18:00,300 --> 00:18:02,220 So the form is submitted. 344 00:18:02,360 --> 00:18:04,840 The script that gets it just checks the referrer 345 00:18:04,840 --> 00:18:09,960 to make sure that the referrer is an accepted domain, 346 00:18:10,180 --> 00:18:11,460 one of the domains that they own. 347 00:18:11,580 --> 00:18:13,820 This is very easy to defeat. 348 00:18:13,980 --> 00:18:15,080 It's very trivial. 349 00:18:15,940 --> 00:18:17,840 Depending upon how the setup is, 350 00:18:18,080 --> 00:18:21,040 you don't even need to do very much. 351 00:18:21,160 --> 00:18:26,680 Sometimes you don't even need to do the much editing 352 00:18:26,680 --> 00:18:28,540 to defeat the HTTP referrer. 353 00:18:29,060 --> 00:18:34,200 And also, they usually will not automatically disqualify 354 00:18:34,200 --> 00:18:37,640 a order because the HTTP referrer is wrong. 355 00:18:37,880 --> 00:18:40,960 Usually what happens is it flags whatever order it is 356 00:18:40,960 --> 00:18:44,260 for more human review because just because the referrer is 357 00:18:44,260 --> 00:18:45,840 wrong does not automatically mean 358 00:18:45,940 --> 00:18:46,980 the order is fraudulent. 359 00:18:47,120 --> 00:18:49,860 And companies are not going to want to throw away valid orders, 360 00:18:49,980 --> 00:18:50,960 legitimate things. 361 00:18:51,260 --> 00:18:52,880 They're going to want to take a look at it. 362 00:18:54,620 --> 00:18:58,420 Now, here's a couple methods for faking HTTP referrer. 363 00:18:59,220 --> 00:19:02,840 You would place the edited HTML form onto a web server. 364 00:19:03,620 --> 00:19:06,020 This could be a server you have out on the internet, 365 00:19:06,180 --> 00:19:07,940 some host somewhere, some free website. 366 00:19:09,240 --> 00:19:13,400 Something you have control of is, full control of, 367 00:19:13,460 --> 00:19:14,320 is actually the easiest. 368 00:19:14,320 --> 00:19:17,700 If you have your own local server, that's fine. 369 00:19:17,820 --> 00:19:18,640 Apache is free. 370 00:19:19,080 --> 00:19:22,420 You can use Microsoft Web's personal web server. 371 00:19:22,680 --> 00:19:26,600 Just anything that'll let you go to and type in a domain name 372 00:19:26,600 --> 00:19:27,680 and go to the website. 373 00:19:27,940 --> 00:19:32,860 You change your host file so that the domain name, 374 00:19:33,600 --> 00:19:37,240 www.acneinc.com, goes to that website. 375 00:19:37,320 --> 00:19:41,440 Or if it's your local host, it goes to 127.0.0.1. 376 00:19:41,560 --> 00:19:44,100 So that when you actually type into your browser, 377 00:19:44,100 --> 00:19:47,920 that web address, it goes and hits that other page. 378 00:19:48,540 --> 00:19:52,320 You load that URL, then you remove the host file entry, 379 00:19:52,580 --> 00:19:55,880 and you either wait for the DNS cache to expire, 380 00:19:56,120 --> 00:19:57,740 or you can flush it manually. 381 00:19:58,360 --> 00:20:00,600 Because that entry is no longer in there, 382 00:20:00,760 --> 00:20:03,080 when you're submitting the form to the same site, 383 00:20:03,360 --> 00:20:06,380 it's going, although the site now has a new IP address, 384 00:20:06,720 --> 00:20:09,580 that's not reflected in HTTP referrer. 385 00:20:09,980 --> 00:20:13,540 It only has the domain name, and it thinks the domain name is valid. 386 00:20:13,540 --> 00:20:15,000 So that's very easy to do. 387 00:20:15,440 --> 00:20:17,780 The hardest part is flushing the DNS cache, 388 00:20:18,000 --> 00:20:19,400 which is just a command line option. 389 00:20:20,360 --> 00:20:22,660 The location of the host file is different 390 00:20:22,660 --> 00:20:24,340 depending upon what platform you're using. 391 00:20:24,980 --> 00:20:27,620 I'm not sure what it is for Macintosh or OSX. 392 00:20:27,780 --> 00:20:30,140 I would assume OSX is ETC hosts. 393 00:20:30,700 --> 00:20:32,960 But in Unix, it's ETC hosts. 394 00:20:33,120 --> 00:20:37,420 Windows 95, 98, whatever, it's in the Windows directory. 395 00:20:37,700 --> 00:20:40,800 And in the Windows NT series 2000 XP, 396 00:20:40,980 --> 00:20:43,440 it's in Windows system 32 driver. 397 00:20:43,540 --> 00:20:44,220 It's ETC. 398 00:20:45,060 --> 00:20:46,980 And, of course, Windows would be replaced 399 00:20:46,980 --> 00:20:48,680 with whatever your system directory is. 400 00:20:49,730 --> 00:20:52,480 A fake entry in your host file would look exactly 401 00:20:53,150 --> 00:20:54,220 like the entry below. 402 00:20:54,940 --> 00:20:58,340 This would be for local host, and it would be fakereferrer.com. 403 00:20:58,480 --> 00:21:00,920 So if you typed in fakereferrer.com, 404 00:21:01,000 --> 00:21:02,660 your browser is going to send a web request 405 00:21:03,130 --> 00:21:04,400 to your local machine. 406 00:21:05,980 --> 00:21:11,000 The second method of faking is similar to the first one, 407 00:21:11,750 --> 00:21:13,360 but it uses the proxy. 408 00:21:13,360 --> 00:21:17,220 You edit the host file, same as you do in method one, 409 00:21:17,380 --> 00:21:19,300 and then you load the altered page. 410 00:21:19,920 --> 00:21:22,140 But then instead of flushing the DNS cache, 411 00:21:22,380 --> 00:21:25,160 you can just go enter in information for a proxy, 412 00:21:25,400 --> 00:21:28,780 maybe even a secure proxy, and then submit the form. 413 00:21:28,960 --> 00:21:30,860 When you submit the form with the proxy, 414 00:21:31,020 --> 00:21:33,760 the DNS resolution is actually done by the proxy. 415 00:21:34,000 --> 00:21:36,360 You say you want acmeinc.com. 416 00:21:37,420 --> 00:21:39,460 The form is going to be submitted to them. 417 00:21:39,620 --> 00:21:42,360 That information is sent to the proxy. 418 00:21:43,360 --> 00:21:45,520 And it resolves it and actually sends it. 419 00:21:45,620 --> 00:21:48,460 You actually don't have to remove the entry from the host file, 420 00:21:48,640 --> 00:21:51,700 because that's no longer being used when you turn the proxy on. 421 00:22:01,400 --> 00:22:04,820 Now the other way of doing that is sometimes they'll use 422 00:22:04,820 --> 00:22:08,000 a third-party cart for their order processing. 423 00:22:08,520 --> 00:22:13,000 And that actually makes it easier, because you can edit the host file, 424 00:22:13,360 --> 00:22:16,080 to reflect that your local machine is that site. 425 00:22:16,300 --> 00:22:20,220 You then can go submit the form, and it's going to a third-party site. 426 00:22:20,600 --> 00:22:26,160 The fact that the entry for the original merchant is still in the host file 427 00:22:26,160 --> 00:22:28,240 doesn't matter, because you're going somewhere else. 428 00:22:28,460 --> 00:22:31,700 If that third-party shopping cart is checking HTTP refer 429 00:22:31,700 --> 00:22:35,680 to make sure that the customer ID and domain actually match 430 00:22:35,680 --> 00:22:39,020 and are a valid pair, it will look like a valid pair. 431 00:22:39,240 --> 00:22:43,340 They won't be able to tell the difference, and it just, again, you don't have to remove it. 432 00:22:43,360 --> 00:22:45,640 You can remove the entry from the host file to complete the attack. 433 00:22:51,060 --> 00:22:55,420 Now there's also another method of attacking third-party shopping carts. 434 00:22:57,060 --> 00:23:01,160 You can actually place an order for an inexpensive item. 435 00:23:01,820 --> 00:23:06,220 You then go and start checkout and go and pay for that item. 436 00:23:06,640 --> 00:23:07,880 It's a valid transaction. 437 00:23:08,180 --> 00:23:09,980 You give them all your information and so on. 438 00:23:10,200 --> 00:23:12,780 And then while you're in that window filling out 439 00:23:12,780 --> 00:23:13,340 all your information, you go and pay for that item. 440 00:23:13,360 --> 00:23:13,740 And then while you're in that window filling out all your information, 441 00:23:13,740 --> 00:23:16,440 that cart information is still on the merchant server 442 00:23:16,880 --> 00:23:21,620 while you're on the credit card processing vendor server 443 00:23:21,620 --> 00:23:22,700 filling out the information. 444 00:23:23,020 --> 00:23:26,920 You can actually open up another window, go back to the vendor site, 445 00:23:27,160 --> 00:23:28,940 and start adding items to your cart. 446 00:23:29,180 --> 00:23:34,880 The bill processing system is not going to know that the total price has changed. 447 00:23:35,140 --> 00:23:37,080 It's going to go through and give you the verification 448 00:23:37,080 --> 00:23:39,500 and just charge your credit card that small amount. 449 00:23:39,780 --> 00:23:43,080 And when the transfer was successful because, you know, 450 00:23:43,080 --> 00:23:45,760 you used a valid credit card, everything's legit, 451 00:23:46,040 --> 00:23:49,420 it sends an ID, a message back to the merchant saying, 452 00:23:49,580 --> 00:23:51,600 oh, by the way, cart so-and-so was paid for. 453 00:23:52,160 --> 00:23:53,220 And that's all it says. 454 00:23:53,280 --> 00:23:56,740 The fact that there's new items in the cart, the system doesn't know. 455 00:23:56,860 --> 00:23:59,240 So it thinks you paid for a lot more than you actually did. 456 00:23:59,760 --> 00:24:02,740 A lot of times it will even say cart ID is paid for. 457 00:24:03,460 --> 00:24:06,580 The system will assume that the valid amount was paid. 458 00:24:06,780 --> 00:24:09,280 It doesn't do any checks to see how much was actually paid. 459 00:24:09,420 --> 00:24:12,080 It just trusts that, oh, yeah, I know this system. 460 00:24:12,120 --> 00:24:12,980 It told me it was paid. 461 00:24:12,980 --> 00:24:13,780 It was paid. 462 00:24:14,920 --> 00:24:18,340 Even if they have checked the authenticity of the message, 463 00:24:18,560 --> 00:24:21,620 they sign it with a public key, that's going to be valid 464 00:24:21,620 --> 00:24:23,340 because the message really is valid. 465 00:24:23,540 --> 00:24:26,380 There's nothing fraudulent about the actual transaction. 466 00:24:26,660 --> 00:24:27,940 You really are giving them money. 467 00:24:28,460 --> 00:24:32,480 They're just going to send you more stuff or give you more things because of it. 468 00:24:34,920 --> 00:24:40,920 And doing a combination of these attacks can really result in some really neat access. 469 00:24:40,980 --> 00:24:42,960 Again, changing a subscription. 470 00:24:42,980 --> 00:24:46,020 You can change a subscription period from monthly to yearly or even beyond. 471 00:24:46,400 --> 00:24:52,260 And then changing the price so that the price is a premium account, but it looks like it's a basic price. 472 00:24:52,920 --> 00:24:56,060 Again, the transactions look normal just by casual inspection. 473 00:24:56,640 --> 00:24:59,140 Most people aren't going to be looking for these types of things. 474 00:24:59,240 --> 00:25:02,060 If they were looking for these types of things and knew these holes were out there, 475 00:25:02,160 --> 00:25:04,300 they'd probably fix them so that you couldn't do it. 476 00:25:05,840 --> 00:25:09,760 And these types of things, again, it comes down to obscuring the attack. 477 00:25:10,060 --> 00:25:11,700 If the attack... 478 00:25:11,700 --> 00:25:14,480 You just put the order in for a web hosting for a penny. 479 00:25:14,960 --> 00:25:18,960 That's going to stick out as unusual even just on a casual glance over. 480 00:25:19,140 --> 00:25:23,280 So using the same prices that they have for other service helps obscure the attack. 481 00:25:24,920 --> 00:25:26,880 Now, sometimes you want to submit forms. 482 00:25:27,220 --> 00:25:32,340 And if you want to do that, with the get, again, it's all in the URL, 483 00:25:32,480 --> 00:25:33,940 so you can change the variables there. 484 00:25:34,140 --> 00:25:40,140 But if you want to submit it using a command line, you can use links and echo to do this. 485 00:25:40,360 --> 00:25:41,680 Links and echo are both possible. 486 00:25:41,700 --> 00:25:45,380 It's supported to Windows and Unix, so you could run this anywhere. 487 00:25:45,720 --> 00:25:46,440 You just... 488 00:25:46,920 --> 00:25:50,500 There's the format for all the variables, the form variables that you would pass. 489 00:25:50,780 --> 00:25:54,800 And again, we're going to be passing an email, a username, password, password confirm, 490 00:25:55,160 --> 00:25:56,640 and then a submit. 491 00:25:57,000 --> 00:26:01,960 You put that in there, pipe that to links with the post data parameter 492 00:26:02,520 --> 00:26:06,580 and the URL that it's supposed to go to, and that site will process it. 493 00:26:06,740 --> 00:26:10,460 So the example I was talking about before 494 00:26:10,460 --> 00:26:14,980 with the download limit problem, you could write a script that would take advantage 495 00:26:14,980 --> 00:26:21,980 of that vulnerability by changing your user account every so often, say, via CronJob, 496 00:26:22,120 --> 00:26:27,080 and then just using this command line to submit the data every time you wanted it changed. 497 00:26:29,420 --> 00:26:33,900 Now, there's a site that used to be around called IT Knowledge. 498 00:26:34,260 --> 00:26:36,020 They were a bookstore. 499 00:26:36,380 --> 00:26:38,620 They had an online library of books. 500 00:26:38,860 --> 00:26:40,440 They offered a 14-day trial. 501 00:26:40,460 --> 00:26:43,900 And they only wanted to give you... 502 00:26:43,900 --> 00:26:46,800 All you needed was a credit card to sign up for the free 14-day trial, 503 00:26:46,920 --> 00:26:50,700 similar to Safari or Riley Service Safari. 504 00:26:51,880 --> 00:26:57,300 They had a really unsuccessful attempt to stop offline archiving via cookies. 505 00:26:58,200 --> 00:27:00,440 Wget wouldn't work because you had to log in. 506 00:27:00,520 --> 00:27:01,300 It gave you a cookie. 507 00:27:01,780 --> 00:27:04,340 It was a little difficult to get Wget to do that. 508 00:27:05,300 --> 00:27:10,400 But that was actually easily defeated with another program I'm going to talk about called Offline Explore. 509 00:27:10,460 --> 00:27:14,240 Which is included on the DEF CON CD for this presentation. 510 00:27:15,200 --> 00:27:19,640 The subscribers to the service received complete access to the library. 511 00:27:19,920 --> 00:27:22,520 So during the 14-day trial, you could just archive everything. 512 00:27:22,800 --> 00:27:24,200 You have your own copy of it. 513 00:27:24,880 --> 00:27:28,040 Now, I signed up for one of those 14-day trials and thought that was pretty neat. 514 00:27:28,240 --> 00:27:30,000 But I didn't actually keep the account. 515 00:27:30,520 --> 00:27:34,220 Then, a while later, I got another email saying that, 516 00:27:34,240 --> 00:27:36,820 hey, we want you to have another 14-day trial. 517 00:27:36,920 --> 00:27:38,300 We want to try and get you back. 518 00:27:38,580 --> 00:27:40,340 And they sent an email offering... 519 00:27:40,460 --> 00:27:43,420 another sign-up for another trial. 520 00:27:43,640 --> 00:27:45,900 And the way they set it up was really bad. 521 00:27:46,100 --> 00:27:49,120 There was no credit card required for the second sign-up. 522 00:27:49,340 --> 00:27:52,800 And the second 14-day trial never expired. 523 00:27:53,100 --> 00:27:54,780 I don't think that was their intent. 524 00:27:55,860 --> 00:27:59,300 And IT Knowledge went out of business and I can probably see why. 525 00:27:59,400 --> 00:28:01,040 They were giving away everything for free. 526 00:28:01,320 --> 00:28:04,580 IT Knowledge was owned by EarthWeb, who I believe is still around. 527 00:28:05,540 --> 00:28:08,460 Users had access to the entire library for free. 528 00:28:08,460 --> 00:28:10,960 And normal access cost, $2.95. 529 00:28:11,360 --> 00:28:14,600 They sent me the email message for the second free account. 530 00:28:14,800 --> 00:28:16,480 I said, sure, I'll take it. 531 00:28:16,680 --> 00:28:18,000 And it just never expired. 532 00:28:18,120 --> 00:28:19,540 It was good until they went out of business. 533 00:28:20,000 --> 00:28:21,320 They never asked me for money. 534 00:28:21,400 --> 00:28:22,600 I never gave them any money. 535 00:28:24,880 --> 00:28:26,780 And this is IT Knowledge now. 536 00:28:26,980 --> 00:28:30,620 Their important notice to their customers that they discontinued service. 537 00:28:32,980 --> 00:28:34,540 Now, what can we learn from this? 538 00:28:34,600 --> 00:28:37,720 That resubscription and customer retention programs 539 00:28:37,720 --> 00:28:40,400 are also vulnerable to theft of service attacks. 540 00:28:40,780 --> 00:28:42,380 They created their own vulnerability. 541 00:28:42,680 --> 00:28:44,920 They were opening up the doors to everybody. 542 00:28:45,840 --> 00:28:49,220 Accounts should be regularly audited to detect irregularities. 543 00:28:49,660 --> 00:28:53,100 If they had looked for accounts that no one was paying for, 544 00:28:53,320 --> 00:28:57,480 or even tried to track down the accounts that people had signed up for 545 00:28:57,480 --> 00:28:59,500 using this new 14-day trial, 546 00:28:59,760 --> 00:29:01,160 they would have found this. 547 00:29:01,280 --> 00:29:02,200 But they never bothered. 548 00:29:02,380 --> 00:29:04,800 And that's probably part of the reason why they went out of business. 549 00:29:05,220 --> 00:29:07,200 Especially since they sent all this information 550 00:29:07,720 --> 00:29:11,160 to the customers who most likely had signed up before 551 00:29:11,600 --> 00:29:13,800 and might actually be willing to pay that expense 552 00:29:13,800 --> 00:29:15,680 or have their employers pay that expense. 553 00:29:16,340 --> 00:29:19,160 They eliminated the need for them to go to their employers 554 00:29:19,160 --> 00:29:20,600 and ask for them to pay it 555 00:29:20,600 --> 00:29:22,040 or even for them to pay it themselves 556 00:29:22,040 --> 00:29:23,820 because they just gave out free access. 557 00:29:26,240 --> 00:29:28,960 Now, O'Reilly kind of has the same problem. 558 00:29:29,100 --> 00:29:31,560 And I'm going to tell you how to do a theft of service attack 559 00:29:31,560 --> 00:29:33,300 against O'Reilly's Safari Bookshelf. 560 00:29:34,400 --> 00:29:37,380 They try to enforce a no offline archiving policy, 561 00:29:37,380 --> 00:29:40,180 but they do a lot better job than IT Knowledge did. 562 00:29:40,600 --> 00:29:44,460 I actually had to try some things to figure out 563 00:29:44,460 --> 00:29:47,780 how to actually take an offline copy of their books. 564 00:29:48,160 --> 00:29:50,860 Now, the reason why I actually wanted to do this 565 00:29:50,860 --> 00:29:52,580 is because I give O'Reilly a lot of money. 566 00:29:52,640 --> 00:29:54,400 I have a bookshelf full of O'Reilly books, 567 00:29:54,580 --> 00:29:56,900 but it's sometimes useful to have a digital copy 568 00:29:56,900 --> 00:29:58,660 that you can just search through digitally, 569 00:29:58,860 --> 00:30:01,660 even if it's just to locate which of several books 570 00:30:01,660 --> 00:30:04,320 might be the best source for the so-and-so information. 571 00:30:05,260 --> 00:30:07,360 And I've used that just to pick out 572 00:30:07,380 --> 00:30:09,040 which book I want to bring with me 573 00:30:09,040 --> 00:30:10,480 when I go to visit a client's site 574 00:30:10,980 --> 00:30:12,720 because it seems like I might need it. 575 00:30:13,160 --> 00:30:15,720 Now, they try and detect 576 00:30:15,720 --> 00:30:19,160 if you're trying to download the books that you're viewing. 577 00:30:19,440 --> 00:30:22,120 And after three strikes, they lock out your account. 578 00:30:23,120 --> 00:30:26,460 They limit you to one login session at a time. 579 00:30:26,540 --> 00:30:27,640 If you try and log in, 580 00:30:28,280 --> 00:30:30,440 even if you have two browsers on the system 581 00:30:30,440 --> 00:30:32,280 and you open up, like you have Netscape 582 00:30:32,280 --> 00:30:34,660 and you use Explorer 583 00:30:34,660 --> 00:30:36,220 and open up another Explorer window, 584 00:30:36,380 --> 00:30:37,260 when you log in, 585 00:30:37,380 --> 00:30:37,940 for the second time, 586 00:30:38,100 --> 00:30:40,540 you'll get an error pretty much on both sessions 587 00:30:40,540 --> 00:30:41,740 saying that they both expire, 588 00:30:41,980 --> 00:30:43,760 and you'll have to then log in again. 589 00:30:44,640 --> 00:30:47,620 They restrict the access on the book library. 590 00:30:47,900 --> 00:30:49,580 Instead of giving you access to everything, 591 00:30:49,940 --> 00:30:53,320 they only give you access to however many books you pay for. 592 00:30:53,520 --> 00:30:57,000 In the free trial, it's 10 books or 10 slots. 593 00:30:59,100 --> 00:31:01,720 If you do get your account locked out, 594 00:31:01,760 --> 00:31:02,680 this is the message you get. 595 00:31:03,540 --> 00:31:04,920 Your Safari account has been locked 596 00:31:04,920 --> 00:31:06,400 as a result of excessive activity. 597 00:31:08,500 --> 00:31:10,760 They say if you want to have your account unlocked, 598 00:31:11,160 --> 00:31:13,060 just send them an email and they'll do it. 599 00:31:13,780 --> 00:31:15,240 When I got this message, 600 00:31:15,300 --> 00:31:16,580 I actually asked them to do it. 601 00:31:16,820 --> 00:31:18,480 They did unlock the account, 602 00:31:18,700 --> 00:31:20,360 but they did it just the... 603 00:31:20,360 --> 00:31:22,480 I had a valid account that I was paying for. 604 00:31:22,520 --> 00:31:24,900 This was not on the 14-day trial or anything. 605 00:31:25,200 --> 00:31:26,560 But my account got locked, 606 00:31:26,660 --> 00:31:27,940 and I asked them to unlock it. 607 00:31:28,080 --> 00:31:30,920 I had just been billed for it not too long before, 608 00:31:31,040 --> 00:31:33,220 and it took them about three weeks to respond. 609 00:31:34,400 --> 00:31:35,920 They unlocked the account, 610 00:31:36,400 --> 00:31:38,360 but just so that they could bill me the next day, it seemed. 611 00:31:38,960 --> 00:31:40,600 I didn't think that was very nice. 612 00:31:42,780 --> 00:31:45,280 Now, when you sign up for their service 613 00:31:45,280 --> 00:31:46,300 and you pick a book, 614 00:31:46,380 --> 00:31:48,700 because you only have a certain number that you can view, 615 00:31:48,880 --> 00:31:51,100 you have to keep the book on the bookshelf for 30 days. 616 00:31:52,860 --> 00:31:54,280 That is actually a limitation, 617 00:31:54,360 --> 00:31:56,140 because the day you sign up, 618 00:31:56,180 --> 00:31:57,880 you may not know which books you want to view. 619 00:32:00,000 --> 00:32:02,500 It actually makes sense to just have the account for a month 620 00:32:02,500 --> 00:32:03,460 and then cancel it, 621 00:32:03,560 --> 00:32:05,120 and then at the end of the month, 622 00:32:05,120 --> 00:32:06,380 sign up for a new account, 623 00:32:06,580 --> 00:32:09,820 and it has a brand new set of... 624 00:32:11,320 --> 00:32:13,040 brand new slots that are all open 625 00:32:13,040 --> 00:32:14,340 and available for use immediately. 626 00:32:14,700 --> 00:32:16,420 If you're reusing a credit card, 627 00:32:17,200 --> 00:32:18,800 you won't get the free trial, 628 00:32:18,980 --> 00:32:21,300 but again, all the bookshelves are open. 629 00:32:21,780 --> 00:32:24,900 And if you do use a new card with a new number, 630 00:32:25,040 --> 00:32:27,240 even if it's on the same credit card account, 631 00:32:27,400 --> 00:32:28,720 but just you got a new card, 632 00:32:28,880 --> 00:32:30,360 you get a new 14-day trial. 633 00:32:31,040 --> 00:32:34,480 So, using that, you can do free trial account abuse, 634 00:32:34,480 --> 00:32:36,940 get a new email address, 635 00:32:37,260 --> 00:32:39,360 because they use the email address as your login, 636 00:32:39,560 --> 00:32:41,180 sign up for a 14-day trial, 637 00:32:41,740 --> 00:32:42,980 pick the books you want, 638 00:32:43,160 --> 00:32:44,120 you've got 14 days, 639 00:32:44,580 --> 00:32:45,960 although for archiving, 640 00:32:46,020 --> 00:32:47,420 if you want to archive 10 books, 641 00:32:47,560 --> 00:32:48,680 it's a slow process, 642 00:32:49,160 --> 00:32:52,600 and then just make an offline copy of the books you want, 643 00:32:52,780 --> 00:32:54,280 and then cancel the credit card. 644 00:32:54,760 --> 00:32:55,940 You'll have a new number, 645 00:32:56,060 --> 00:32:58,020 you'll be able to sign up for a new credit card account, 646 00:32:58,220 --> 00:33:00,220 and you have an offline copy of the books 647 00:33:00,220 --> 00:33:02,740 that you already have hard copies of, of course. 648 00:33:04,480 --> 00:33:07,320 So, Offline Explorer is created by Metaproducts. 649 00:33:07,340 --> 00:33:09,080 You can get it from metaproducts.com, 650 00:33:09,180 --> 00:33:11,020 and it is also included on the CD. 651 00:33:11,180 --> 00:33:13,420 I included version 2.8.1220. 652 00:33:14,920 --> 00:33:16,160 Demo version is usable. 653 00:33:16,520 --> 00:33:18,280 I tried doing this with wget, 654 00:33:18,320 --> 00:33:19,740 didn't have that much success, 655 00:33:19,920 --> 00:33:20,680 so I kind of gave up, 656 00:33:20,740 --> 00:33:22,580 because I knew Offline Explorer 657 00:33:22,580 --> 00:33:24,580 is more suited for this kind of task. 658 00:33:24,900 --> 00:33:26,140 It is a Windows-only program, 659 00:33:26,260 --> 00:33:27,520 so you need to use Windows for this. 660 00:33:28,900 --> 00:33:30,940 When I set it up to archive the book, 661 00:33:31,120 --> 00:33:33,980 I set up just using one connection. 662 00:33:34,480 --> 00:33:36,920 It can go up to, I think, 10 connections going out, 663 00:33:36,980 --> 00:33:38,920 grabbing different files real fast. 664 00:33:39,200 --> 00:33:41,000 If you really want to archive a website, 665 00:33:41,180 --> 00:33:42,660 it will do a good job really fast. 666 00:33:43,020 --> 00:33:44,480 But I set it up just one connection, 667 00:33:45,140 --> 00:33:47,680 45-second delay between retrieves, 668 00:33:47,720 --> 00:33:49,580 because O'Reilly doesn't like you 669 00:33:49,580 --> 00:33:50,820 getting a lot of stuff real fast. 670 00:33:51,000 --> 00:33:52,700 That's going to set off the alarms real quick. 671 00:33:53,380 --> 00:33:55,520 And if you want to filter it 672 00:33:55,520 --> 00:33:57,440 so that you only get a single book, 673 00:33:57,700 --> 00:34:00,060 you can actually use the ISBN number 674 00:34:00,060 --> 00:34:01,520 as a file name filter, 675 00:34:01,720 --> 00:34:03,140 because all the parts of the book 676 00:34:03,140 --> 00:34:05,100 are going to have the ISBN number in it. 677 00:34:05,280 --> 00:34:06,860 So if you just want to get a single book 678 00:34:06,860 --> 00:34:07,540 in the bookshelf, 679 00:34:07,720 --> 00:34:10,360 you just add that ISBN number, 680 00:34:10,500 --> 00:34:11,700 and you'll just get that book 681 00:34:11,700 --> 00:34:12,600 when you go through the download. 682 00:34:13,280 --> 00:34:15,600 And you also want to add the images filter 683 00:34:15,600 --> 00:34:18,280 so that you get all the graphics 684 00:34:18,280 --> 00:34:19,660 and the book covers and so on. 685 00:34:21,520 --> 00:34:23,640 Now, you have it scheduled to run 686 00:34:24,140 --> 00:34:26,360 every hour and a half, two hours, whatever, 687 00:34:26,580 --> 00:34:28,180 and it runs for nine minutes. 688 00:34:28,360 --> 00:34:29,920 There's options in Offline Explorer 689 00:34:29,920 --> 00:34:30,860 that let you do that. 690 00:34:31,000 --> 00:34:32,640 So it's scheduled to run. 691 00:34:32,640 --> 00:34:34,500 There's an option that says stop downloading 692 00:34:34,500 --> 00:34:36,720 if you received so many numbers of files 693 00:34:36,720 --> 00:34:39,200 or if you've run so many minutes 694 00:34:39,200 --> 00:34:41,640 or if it's grown to so much size. 695 00:34:41,960 --> 00:34:44,380 You use the option for how many minutes, 696 00:34:44,440 --> 00:34:45,040 set it to nine, 697 00:34:45,440 --> 00:34:46,860 and then you schedule the job 698 00:34:46,860 --> 00:34:48,080 to run every two hours. 699 00:34:48,220 --> 00:34:49,620 So it'll run for nine minutes 700 00:34:50,760 --> 00:34:52,820 really slow, grabbing stuff, stop, 701 00:34:53,060 --> 00:34:54,160 and then start up again. 702 00:34:54,400 --> 00:34:55,600 So you can just set this up, 703 00:34:55,660 --> 00:34:56,900 go to sleep, and come back. 704 00:34:57,080 --> 00:34:58,940 If you're doing a whole bookshelf this way, 705 00:34:59,040 --> 00:35:00,400 it's going to take a while, 706 00:35:00,500 --> 00:35:02,160 but it's not going to set off the alarms. 707 00:35:02,640 --> 00:35:04,400 And if it does set off the alarms 708 00:35:04,400 --> 00:35:06,160 and it does lock you out, 709 00:35:06,240 --> 00:35:08,340 there's a way to clear out only the bad pages 710 00:35:08,340 --> 00:35:11,320 and take advantage of that. 711 00:35:11,860 --> 00:35:13,080 You also want to make sure 712 00:35:13,080 --> 00:35:15,100 that you set your identifier 713 00:35:15,100 --> 00:35:17,020 so that you're using a valid browser. 714 00:35:17,360 --> 00:35:19,740 If you tell O'Reilly that you're spidering 715 00:35:19,740 --> 00:35:20,920 and trying to grab it, 716 00:35:20,940 --> 00:35:22,180 they instantly lock you out. 717 00:35:22,300 --> 00:35:24,300 It'll definitely lock you out. 718 00:35:24,480 --> 00:35:27,040 That URL there is actually 719 00:35:27,040 --> 00:35:29,080 the front page of the bookshelf. 720 00:35:30,420 --> 00:35:32,440 Now, you can choose how many levels 721 00:35:32,440 --> 00:35:36,220 deep you're going to go that you want to grab. 722 00:35:36,520 --> 00:35:38,620 So if you only want to grab a little bit, 723 00:35:38,820 --> 00:35:40,140 you can just go... 724 00:35:40,140 --> 00:35:41,560 If you just grab level zero, 725 00:35:41,600 --> 00:35:43,100 it's just going to be that bookshelf page 726 00:35:43,100 --> 00:35:44,700 of the list of all the books. 727 00:35:45,100 --> 00:35:46,380 And if you go to level one, 728 00:35:46,460 --> 00:35:47,860 you're going to get the table of contents 729 00:35:47,860 --> 00:35:48,760 for all the books. 730 00:35:49,100 --> 00:35:50,820 And then if you go to... 731 00:35:51,340 --> 00:35:52,380 At a level limit one, 732 00:35:52,500 --> 00:35:53,240 you're probably going to get 733 00:35:53,240 --> 00:35:54,860 about maybe 20 to 30 pages, 734 00:35:55,020 --> 00:35:56,820 depending upon what books you have selected 735 00:35:56,820 --> 00:35:58,980 on a 10 bookshelf limit. 736 00:35:59,260 --> 00:36:01,660 And at a level limit of two, 737 00:36:01,660 --> 00:36:02,520 you get all the pages. 738 00:36:02,880 --> 00:36:04,520 And then at a level limit of three, 739 00:36:04,600 --> 00:36:05,780 you get all the index pages. 740 00:36:06,180 --> 00:36:08,440 And when you get to a level limit of three, 741 00:36:08,580 --> 00:36:09,720 that's when you really start 742 00:36:09,720 --> 00:36:10,840 to have to download a lot, 743 00:36:11,000 --> 00:36:12,500 and you would really need to have 744 00:36:12,500 --> 00:36:13,880 this program run for a while 745 00:36:13,880 --> 00:36:15,380 to successfully get everything 746 00:36:15,380 --> 00:36:16,600 at a level three run. 747 00:36:16,880 --> 00:36:18,240 But you could start it out 748 00:36:18,240 --> 00:36:19,920 and just do, say, a level one run 749 00:36:19,920 --> 00:36:21,460 to get everything initially. 750 00:36:21,860 --> 00:36:23,200 And then from there on, 751 00:36:23,240 --> 00:36:24,080 maybe add a filter 752 00:36:24,080 --> 00:36:25,620 to just get one book at a time, 753 00:36:25,680 --> 00:36:26,980 whatever you specifically want. 754 00:36:27,320 --> 00:36:30,460 And then do a level two of that one 755 00:36:30,460 --> 00:36:32,100 to fill in the holes. 756 00:36:34,400 --> 00:36:35,520 Okay, we've got a little 757 00:36:35,520 --> 00:36:36,660 conflicting information here. 758 00:36:36,700 --> 00:36:37,720 Stopped on seven minutes. 759 00:36:38,100 --> 00:36:38,760 Another thing, 760 00:36:38,820 --> 00:36:40,280 do not download existing files. 761 00:36:40,560 --> 00:36:42,360 That way it starts up again 762 00:36:42,360 --> 00:36:43,520 when it reschedules 763 00:36:43,520 --> 00:36:45,980 and will parse the HTML files 764 00:36:45,980 --> 00:36:46,900 that's already downloaded 765 00:36:46,900 --> 00:36:47,980 to grab the new links 766 00:36:47,980 --> 00:36:49,320 that it needs to add to its queue. 767 00:36:49,800 --> 00:36:51,280 And you can also put in 768 00:36:51,280 --> 00:36:52,200 your login and password. 769 00:36:52,980 --> 00:36:54,320 There's a configuration option 770 00:36:54,320 --> 00:36:55,280 where you can put that in 771 00:36:55,880 --> 00:36:57,020 into Offline Explorer. 772 00:36:57,720 --> 00:36:59,880 You have to log in manually first 773 00:36:59,880 --> 00:37:00,440 before you can 774 00:37:00,460 --> 00:37:01,200 start it, though. 775 00:37:01,560 --> 00:37:02,520 There is a window, 776 00:37:02,680 --> 00:37:03,360 a browser window 777 00:37:03,360 --> 00:37:04,180 in Offline Explorer, 778 00:37:04,400 --> 00:37:05,520 so you can hit the O'Reilly site 779 00:37:05,520 --> 00:37:06,240 and just log in. 780 00:37:06,580 --> 00:37:07,280 And again, 781 00:37:07,420 --> 00:37:08,860 if you log in from another machine 782 00:37:08,860 --> 00:37:11,720 while Offline Explorer is going, 783 00:37:11,860 --> 00:37:13,100 you're gonna kill Offline Explorer. 784 00:37:13,400 --> 00:37:14,720 And then from then on, 785 00:37:14,780 --> 00:37:17,000 it's only gonna be grabbing preview pages 786 00:37:17,000 --> 00:37:18,580 instead of the full pages of the book. 787 00:37:19,900 --> 00:37:21,820 Here's some excluded keywords 788 00:37:21,820 --> 00:37:23,620 and included keywords I used. 789 00:37:23,960 --> 00:37:25,440 These are just part of the URL. 790 00:37:26,160 --> 00:37:27,600 It helps filter things out 791 00:37:27,600 --> 00:37:29,240 so you don't grab a lot of excess stuff 792 00:37:29,240 --> 00:37:29,960 that you don't need. 793 00:37:30,700 --> 00:37:32,560 And if you want to delete 794 00:37:32,560 --> 00:37:34,560 the pages that have errors, 795 00:37:34,840 --> 00:37:36,020 you just simply search 796 00:37:36,020 --> 00:37:37,600 for all the files that have 797 00:37:37,600 --> 00:37:38,660 this is only a preview 798 00:37:38,660 --> 00:37:39,760 or session disabled 799 00:37:39,760 --> 00:37:40,920 and delete them. 800 00:37:41,260 --> 00:37:42,260 You then start up 801 00:37:42,260 --> 00:37:43,440 Offline Explorer again. 802 00:37:43,560 --> 00:37:45,940 It's going to parse the HTML files, 803 00:37:46,160 --> 00:37:47,320 and if you're logged in correctly, 804 00:37:47,560 --> 00:37:49,100 it's then going to get those pages 805 00:37:49,100 --> 00:37:50,180 and get the full version, 806 00:37:50,360 --> 00:37:52,280 and it's not gonna have to redownload 807 00:37:52,280 --> 00:37:54,080 the successfully downloaded pages. 808 00:37:54,560 --> 00:37:56,440 O'Reilly could actually get around this 809 00:37:56,440 --> 00:37:57,200 pretty easily 810 00:37:57,200 --> 00:37:58,820 just by putting those strings 811 00:37:58,820 --> 00:37:59,720 in a comment. 812 00:37:59,960 --> 00:38:00,000 It's going to get around 813 00:38:00,000 --> 00:38:01,000 in every single page. 814 00:38:01,840 --> 00:38:03,060 I have a feeling 815 00:38:03,060 --> 00:38:03,820 they'll probably do that, 816 00:38:03,940 --> 00:38:04,960 but there's still other ways 817 00:38:04,960 --> 00:38:06,520 to get rid of the preview pages. 818 00:38:06,960 --> 00:38:08,820 You just use a bigger search string 819 00:38:09,700 --> 00:38:11,120 to get around that. 820 00:38:14,200 --> 00:38:15,460 When I did this, 821 00:38:15,540 --> 00:38:18,140 one time I downloaded 600 files 822 00:38:18,140 --> 00:38:20,560 in just under three hours. 823 00:38:21,180 --> 00:38:24,360 It was maybe two hours and 56 minutes, 824 00:38:24,540 --> 00:38:27,880 and I got a warning message. 825 00:38:28,160 --> 00:38:29,000 So that's, 826 00:38:29,000 --> 00:38:31,240 you do have to go pretty slow, 827 00:38:31,440 --> 00:38:32,720 and you don't want to get 828 00:38:32,720 --> 00:38:33,920 a lot of these error messages. 829 00:38:34,260 --> 00:38:35,220 It seems to be that 830 00:38:35,220 --> 00:38:36,740 after you start getting these messages, 831 00:38:36,900 --> 00:38:39,080 the threshold for the next one is lower, 832 00:38:39,260 --> 00:38:40,700 so you really don't even want 833 00:38:40,700 --> 00:38:41,660 to get that first one. 834 00:38:41,840 --> 00:38:42,960 Otherwise, it just makes 835 00:38:42,960 --> 00:38:45,180 offline archiving that more difficult. 836 00:38:46,700 --> 00:38:48,260 Now, basically, this is because 837 00:38:48,260 --> 00:38:50,100 the idea of digital rights management 838 00:38:50,100 --> 00:38:52,000 is really unenforceable. 839 00:38:52,140 --> 00:38:53,600 I mean, they can't let you see it 840 00:38:53,600 --> 00:38:55,480 and not let you keep a copy of it. 841 00:38:55,700 --> 00:38:57,180 You can do it automated, 842 00:38:57,180 --> 00:38:59,320 and that's pretty much what we're doing. 843 00:38:59,800 --> 00:39:01,200 Digital rights management 844 00:39:01,780 --> 00:39:03,480 conflicts with ease of use, too, 845 00:39:03,580 --> 00:39:05,040 because as you're using this system, 846 00:39:05,140 --> 00:39:07,140 if you try and log in through two browsers, 847 00:39:07,340 --> 00:39:09,560 or you're at your home machine and work machine, 848 00:39:09,800 --> 00:39:11,420 things start to get logged out, 849 00:39:11,500 --> 00:39:14,480 and it can create a lot of problems for you. 850 00:39:14,600 --> 00:39:17,000 So when they're putting in 851 00:39:17,000 --> 00:39:18,800 all these limits of what you can do, 852 00:39:18,940 --> 00:39:20,960 it actually makes the ease of use harder. 853 00:39:21,920 --> 00:39:23,660 Now, another theft of service attack, 854 00:39:23,820 --> 00:39:24,860 this is kind of lame, 855 00:39:25,460 --> 00:39:27,100 but eBay seller avoidance. 856 00:39:27,180 --> 00:39:29,060 Basically, after you sell an item, 857 00:39:29,120 --> 00:39:30,540 you have to pay eBay a percentage. 858 00:39:30,860 --> 00:39:33,120 You can fill out a non-paying bidder form, 859 00:39:33,340 --> 00:39:35,320 and it seems to be an automated process 860 00:39:35,320 --> 00:39:38,020 where it just sends the bidder a message saying, 861 00:39:38,260 --> 00:39:40,960 oh, was this really a non-paying thing? 862 00:39:41,020 --> 00:39:43,100 Did you guys agree not to go through with the deal? 863 00:39:43,360 --> 00:39:45,320 And if the user doesn't respond, 864 00:39:45,620 --> 00:39:46,400 then it's all good. 865 00:39:46,660 --> 00:39:50,560 The seller can get the buyer to agree to it 866 00:39:50,560 --> 00:39:51,400 and not turn them in 867 00:39:51,400 --> 00:39:53,640 just by maybe splitting the cost of it. 868 00:39:54,260 --> 00:39:55,920 I don't know if anyone does this, 869 00:39:55,920 --> 00:39:57,440 but this is, again, 870 00:39:57,500 --> 00:39:58,760 another theft of service type attack. 871 00:40:00,040 --> 00:40:01,500 Now, PayPal is a lot of fun. 872 00:40:02,320 --> 00:40:05,480 A lot of places have started taking PayPal payments, 873 00:40:05,700 --> 00:40:08,520 and a lot of them seem to do it wrong 874 00:40:08,520 --> 00:40:10,900 in how they implement their implementation of PayPal. 875 00:40:12,960 --> 00:40:14,140 Now, for software, 876 00:40:14,820 --> 00:40:17,760 there's a return value after you fill in the form, 877 00:40:17,860 --> 00:40:22,700 and that return page sometimes has 878 00:40:22,700 --> 00:40:24,640 what you actually are going to be paying for. 879 00:40:26,160 --> 00:40:28,900 Here is an actual URL 880 00:40:28,900 --> 00:40:31,660 that adds an item to your shopping cart, 881 00:40:31,820 --> 00:40:34,200 and this is actually for some VPN software. 882 00:40:34,640 --> 00:40:37,240 And in blue, you can see that the return URL 883 00:40:37,240 --> 00:40:39,180 goes to chiliwell.com 884 00:40:39,660 --> 00:40:41,680 slash success dot html. 885 00:40:42,280 --> 00:40:44,140 And this is what that page looks like. 886 00:40:44,300 --> 00:40:46,360 And it just says, oh, thank you for your purchase. 887 00:40:46,940 --> 00:40:49,280 I mean, it's the URL that they showed you, 888 00:40:49,360 --> 00:40:52,040 and you can just download the software straight from there. 889 00:40:52,100 --> 00:40:55,140 They have absolutely no security guarding their software, 890 00:40:55,140 --> 00:40:57,000 and there's a lot of software companies 891 00:40:57,000 --> 00:40:58,240 that do things like this. 892 00:41:01,060 --> 00:41:02,600 Software theft with PayPal, 893 00:41:02,840 --> 00:41:04,820 there's, again, if you get something 894 00:41:04,820 --> 00:41:06,780 where you have software that gives you 895 00:41:06,780 --> 00:41:08,780 a serial number or a key generator, 896 00:41:09,040 --> 00:41:10,420 and they send that to you instantly, 897 00:41:11,050 --> 00:41:12,440 most likely you're going to be able to fuck 898 00:41:12,440 --> 00:41:14,940 with the subscription process and get something. 899 00:41:15,300 --> 00:41:17,640 You can place a legitimate order for the software, 900 00:41:18,280 --> 00:41:20,380 but alter some terms of it. 901 00:41:20,420 --> 00:41:21,420 It's a legitimate order. 902 00:41:21,620 --> 00:41:23,060 You are sending them real money. 903 00:41:23,060 --> 00:41:24,520 There's nothing fraudulent. 904 00:41:24,620 --> 00:41:26,880 I don't think legally fraudulent about it. 905 00:41:27,040 --> 00:41:29,660 But the system acknowledges payment, 906 00:41:29,900 --> 00:41:32,180 but doesn't verify that you paid the correct amount 907 00:41:32,180 --> 00:41:33,440 for whatever you're ordering. 908 00:41:35,520 --> 00:41:39,600 And again, here there's the amount. 909 00:41:39,960 --> 00:41:43,360 Now, here they have the amount actually encoded 910 00:41:43,360 --> 00:41:46,160 with URL encoding where they're using 911 00:41:46,160 --> 00:41:50,220 the percentage characters to represent the actual values. 912 00:41:50,540 --> 00:41:52,100 They're trying to obscure what you're doing. 913 00:41:52,100 --> 00:41:53,980 Now, I changed this myself. 914 00:41:54,280 --> 00:41:55,760 The other one... 915 00:41:56,320 --> 00:42:02,380 Now, here it has the actual price, 916 00:42:02,480 --> 00:42:04,460 which is 90 bucks, and shipping is 12 bucks. 917 00:42:04,820 --> 00:42:06,880 But some places will obscure it, 918 00:42:07,420 --> 00:42:09,460 the amount, so that people don't know 919 00:42:09,460 --> 00:42:11,340 what to edit, that they can actually do that 920 00:42:11,340 --> 00:42:12,440 by just doing that encoding, 921 00:42:12,720 --> 00:42:14,680 which is really no security at all. 922 00:42:15,160 --> 00:42:16,300 It's very recognizable. 923 00:42:17,320 --> 00:42:21,240 And there's a URL for a URL encoded character 924 00:42:21,240 --> 00:42:21,980 reference table. 925 00:42:22,260 --> 00:42:23,780 Again, the method's not infected. 926 00:42:23,880 --> 00:42:26,140 It just tries to hide the problem rather than fix it. 927 00:42:27,240 --> 00:42:29,720 Now, another thing is PayPal will give you an option 928 00:42:29,720 --> 00:42:32,280 to get insurance for whatever you purchase. 929 00:42:32,600 --> 00:42:36,260 And that, just signing up, paying for the insurance, 930 00:42:37,120 --> 00:42:38,960 confuses the vendors, especially if it's 931 00:42:38,960 --> 00:42:39,960 a non-physical item. 932 00:42:40,120 --> 00:42:41,580 It just freaks them out. 933 00:42:41,640 --> 00:42:43,520 Their system has not been usually tested 934 00:42:43,520 --> 00:42:44,460 for this type of thing. 935 00:42:44,780 --> 00:42:46,960 And they just don't quite understand it. 936 00:42:47,000 --> 00:42:49,040 And even if they're reviewing it by a human, 937 00:42:49,100 --> 00:42:50,460 it kind of seems legitimate. 938 00:42:51,240 --> 00:42:53,600 I know someone that actually got hit by this, 939 00:42:53,700 --> 00:42:55,840 and they actually thought someone was signing up 940 00:42:55,840 --> 00:43:02,080 with the insurance, or the PayPal guarantee, 941 00:43:02,300 --> 00:43:03,540 and when they got a small payment, 942 00:43:03,600 --> 00:43:05,680 they thought that was some kind of insurance money 943 00:43:05,680 --> 00:43:06,900 that they were getting from PayPal, 944 00:43:07,020 --> 00:43:08,380 and they were just curious why they were never 945 00:43:08,380 --> 00:43:09,300 getting the full payment. 946 00:43:09,840 --> 00:43:12,340 They just had no idea until I explained it to them. 947 00:43:14,460 --> 00:43:17,300 Now, here's what the HTML looks like 948 00:43:17,300 --> 00:43:18,960 in a form for a subscription payment. 949 00:43:19,860 --> 00:43:20,280 And... 950 00:43:21,240 --> 00:43:23,280 It actually shows how much it's gonna cost, 951 00:43:23,500 --> 00:43:27,120 and then there's a setup fee, how long it's valid for, 952 00:43:27,320 --> 00:43:31,540 and in this example, it's a two-month free setup, 953 00:43:32,200 --> 00:43:35,620 valid for two months free, and then after two months, 954 00:43:35,640 --> 00:43:38,580 it's gonna bill you 295, and then you're good for a year. 955 00:43:38,660 --> 00:43:42,820 And every year from that, you get billed, again, 295. 956 00:43:43,080 --> 00:43:45,000 You can just mess with those values, 957 00:43:45,160 --> 00:43:49,060 and you don't even have to do any HTTP refer stuff. 958 00:43:49,600 --> 00:43:50,760 You just submit that to PayPal. 959 00:43:51,240 --> 00:43:52,120 And it goes with it. 960 00:43:53,480 --> 00:43:55,600 Now, for preventing form alteration, 961 00:43:55,720 --> 00:43:56,620 I kinda gotta go quickly, 962 00:43:56,780 --> 00:43:57,540 because I'm running out of time. 963 00:43:58,080 --> 00:44:01,040 You can do CRC variable checksum, 964 00:44:01,040 --> 00:44:07,160 so that you know that the data hasn't been altered with, 965 00:44:07,340 --> 00:44:09,360 but that can be reverse engineered, 966 00:44:09,560 --> 00:44:11,440 but that just kind of obscures it a little bit. 967 00:44:11,620 --> 00:44:14,020 Again, you can check the HTTP referrer, 968 00:44:14,140 --> 00:44:15,700 but that can be faked, as demonstrated. 969 00:44:16,860 --> 00:44:19,420 The best way to do it is just not use form variables. 970 00:44:19,620 --> 00:44:20,960 They're just not the way to do it. 971 00:44:22,060 --> 00:44:25,980 It takes some extra programming to do it a different way, 972 00:44:26,160 --> 00:44:28,460 and unfortunately, doing it a different way 973 00:44:28,460 --> 00:44:30,240 doesn't guarantee it's gonna be any more secure. 974 00:44:30,540 --> 00:44:33,560 You really have to take security as a primary concern, 975 00:44:33,700 --> 00:44:36,320 especially since the business lives on this, 976 00:44:36,460 --> 00:44:38,660 their subscription content. 977 00:44:42,140 --> 00:44:44,720 Okay, credit card payment attacks, 978 00:44:46,380 --> 00:44:49,640 credit card fraud, price alteration, avoiding payments, 979 00:44:49,640 --> 00:44:51,820 and subscription terms extension. 980 00:44:52,180 --> 00:44:54,180 Again, in the previous example here, 981 00:44:54,280 --> 00:44:57,640 you could change the, instead of being free for two months, 982 00:44:57,760 --> 00:44:58,940 it's free for 20 months, 983 00:44:59,140 --> 00:45:02,180 and then it's not gonna bill you, 984 00:45:02,220 --> 00:45:04,540 and then you can just cancel the subscription after 19 months, 985 00:45:04,640 --> 00:45:05,720 and you'll never get billed. 986 00:45:08,940 --> 00:45:11,020 Okay, how to spot theft of service attacks. 987 00:45:11,460 --> 00:45:12,360 Audit your orders. 988 00:45:12,640 --> 00:45:15,280 Do not trust what your applications are telling you. 989 00:45:15,320 --> 00:45:16,060 They may be lying. 990 00:45:16,680 --> 00:45:19,080 Look for increases in system utilization. 991 00:45:19,640 --> 00:45:21,200 If all of a sudden there's a lot more usage 992 00:45:21,200 --> 00:45:24,280 but not that much more income, something's probably going on. 993 00:45:24,540 --> 00:45:27,340 Make sure that whoever processes your orders, 994 00:45:27,480 --> 00:45:30,400 there is human verification on everything. 995 00:45:31,440 --> 00:45:33,280 Regularly audit account activity. 996 00:45:34,240 --> 00:45:37,100 Do not overlook accounting inconsistencies. 997 00:45:37,780 --> 00:45:40,420 If your system is automated, definitely don't trust it. 998 00:45:40,600 --> 00:45:41,800 I mean, that's the easiest thing. 999 00:45:41,960 --> 00:45:43,480 When I see instant activation, 1000 00:45:44,240 --> 00:45:45,840 they're full of holes automatically. 1001 00:45:47,280 --> 00:45:48,740 There's not many places that do 1002 00:45:48,740 --> 00:45:50,300 instant activation securely. 1003 00:45:52,840 --> 00:45:53,640 Attack response. 1004 00:45:54,500 --> 00:45:55,920 You can't really do much, 1005 00:45:56,860 --> 00:46:00,040 because the attack isn't always fraudulent. 1006 00:46:01,200 --> 00:46:03,940 Especially if you're using something like login and password as your password. 1007 00:46:04,140 --> 00:46:05,180 They let you choose it. 1008 00:46:05,300 --> 00:46:06,420 There's not much they can do. 1009 00:46:06,580 --> 00:46:09,700 If they find it, really all they're gonna do is ask you to change your login and password 1010 00:46:09,700 --> 00:46:11,240 or maybe assign you something. 1011 00:46:11,840 --> 00:46:14,780 And sometimes tracking down the user can be hard 1012 00:46:14,780 --> 00:46:16,500 because it's easy to fake email addresses, 1013 00:46:16,700 --> 00:46:18,540 and law enforcement will not necessarily 1014 00:46:18,740 --> 00:46:19,000 care. 1015 00:46:19,200 --> 00:46:20,140 They may even think it's funny. 1016 00:46:20,240 --> 00:46:21,960 Hey, it's your fault that you did this. 1017 00:46:22,860 --> 00:46:24,940 Let me jump around. 1018 00:46:25,480 --> 00:46:27,100 Not much you can do for recovering losses. 1019 00:46:27,240 --> 00:46:28,320 Most likely write it off. 1020 00:46:28,800 --> 00:46:32,260 Last thing I want to get to is the DirecTV theft of service. 1021 00:46:33,500 --> 00:46:36,320 DirecTV sent out a lot of letters suing people 1022 00:46:36,320 --> 00:46:39,020 who were supposedly pirating cable 1023 00:46:39,640 --> 00:46:41,280 just because of orders that they placed. 1024 00:46:41,380 --> 00:46:43,240 And not all of them were necessarily doing it. 1025 00:46:43,440 --> 00:46:47,140 The problem is really that the DirecTV service was not secure. 1026 00:46:47,360 --> 00:46:48,720 Not that the customers were doing it. 1027 00:46:48,720 --> 00:46:49,040 They weren't suing anything. 1028 00:46:49,400 --> 00:46:52,980 And I just personally think it's wrong that DirecTV has legal protection 1029 00:46:52,980 --> 00:46:57,700 to sue to recover losses when they just either didn't want to 1030 00:46:57,700 --> 00:46:59,300 or couldn't make their system secure. 1031 00:46:59,640 --> 00:47:02,080 And now they're gonna sue the customers. 1032 00:47:02,940 --> 00:47:06,000 If it's insecure, again, it's the provider's fault, not the customer's. 1033 00:47:06,820 --> 00:47:08,860 Suing your customers should not be a profit center. 1034 00:47:09,140 --> 00:47:10,380 They're making money off this. 1035 00:47:10,420 --> 00:47:12,060 People are sending in money because they're afraid 1036 00:47:12,060 --> 00:47:13,000 and they don't want to get sued, 1037 00:47:13,080 --> 00:47:16,200 so they're gonna pay the $3,500 that they're initially asking. 1038 00:47:16,200 --> 00:47:19,320 And they were able to send out these letters 1039 00:47:19,320 --> 00:47:22,960 without giving any proof to any government organization. 1040 00:47:23,460 --> 00:47:25,480 They're just able to send out and threaten people. 1041 00:47:25,780 --> 00:47:27,580 And the interesting thing about it is 1042 00:47:27,580 --> 00:47:29,500 to do these hacks, 1043 00:47:29,660 --> 00:47:31,860 the people had to actually be legitimate customers 1044 00:47:31,860 --> 00:47:33,100 and have basic service. 1045 00:47:33,320 --> 00:47:34,480 So they were getting money. 1046 00:47:34,580 --> 00:47:36,140 They just weren't getting as much as they want. 1047 00:47:36,440 --> 00:47:38,080 There's some more information there. 1048 00:47:39,220 --> 00:47:41,200 Kevin Folson wrote a pretty good article. 1049 00:47:41,300 --> 00:47:42,380 It's available at the Register, 1050 00:47:42,600 --> 00:47:43,760 and I believe it's Security Focus. 1051 00:47:44,320 --> 00:47:45,280 And again, 1052 00:47:45,280 --> 00:47:48,200 Legal Rights has some more information about this. 1053 00:47:48,460 --> 00:47:49,860 For finding vulnerabilities, 1054 00:47:50,540 --> 00:47:52,700 I included this on the CD, 1055 00:47:52,860 --> 00:47:54,900 is a program called Self-Seek. 1056 00:47:55,580 --> 00:47:57,280 It's your own web spider. 1057 00:47:57,440 --> 00:47:58,700 It'll go out and crawl out, 1058 00:47:58,840 --> 00:48:00,040 and then you can do your own searches 1059 00:48:00,040 --> 00:48:01,960 against your own database of websites 1060 00:48:01,960 --> 00:48:04,480 and search if they're doing PayPal 1061 00:48:04,480 --> 00:48:06,640 and have amount equals or price equals 1062 00:48:06,640 --> 00:48:08,800 and search for something that you know 1063 00:48:08,800 --> 00:48:09,740 is a common vulnerability. 1064 00:48:09,960 --> 00:48:10,900 Self-Seek is pretty good. 1065 00:48:12,740 --> 00:48:14,060 Again, just wrapping up, 1066 00:48:14,060 --> 00:48:14,940 very simple attacks. 1067 00:48:16,680 --> 00:48:19,240 These are more of an annoyance than anything else. 1068 00:48:19,600 --> 00:48:21,240 Victims rarely get any sympathy. 1069 00:48:22,240 --> 00:48:23,840 It's kind of like your own fault 1070 00:48:23,840 --> 00:48:25,040 that you got hit with this. 1071 00:48:25,160 --> 00:48:25,620 I mean, you're dumb. 1072 00:48:25,680 --> 00:48:26,560 You're giving your stuff away 1073 00:48:26,560 --> 00:48:27,560 if you're open to this, 1074 00:48:27,660 --> 00:48:29,820 and you're not auditing your orders. 1075 00:48:30,180 --> 00:48:32,720 And just because there was a theft of service attack 1076 00:48:32,720 --> 00:48:35,180 does not mean that there was even loss of revenue 1077 00:48:35,180 --> 00:48:35,820 for the company. 1078 00:48:36,000 --> 00:48:37,820 They may have gotten more money 1079 00:48:37,820 --> 00:48:39,740 because more people signed up, 1080 00:48:39,800 --> 00:48:42,200 and so because their service, 1081 00:48:42,260 --> 00:48:44,040 because they were able to expand their app 1082 00:48:44,060 --> 00:48:46,760 access was better than any competitor. 1083 00:48:47,780 --> 00:48:50,420 And I think that is about it. 1084 00:48:50,560 --> 00:48:52,000 So thank you very much. 1085 00:48:57,000 --> 00:48:58,440 Since my time is up, 1086 00:48:58,500 --> 00:49:00,040 I don't have time for questions and answers, 1087 00:49:00,180 --> 00:49:01,120 but I will be outside 1088 00:49:01,120 --> 00:49:03,180 if anyone wants to ask me any questions. 1089 00:49:03,340 --> 00:49:04,020 So thanks a lot.