On the Internationalization of Cows (or: more about my job)Montreal International Jazz Festival

Secure Doors

June 29th, 2007

As you all surely know, I’m in a computer class this summer. Until a couple of days ago, I hadn’t been in Concordia’s computer labs since April. And since then, the powers that be here at the University changed something. When I noticed the change, it took me a good two days of pondering to figure it out. And when I did figure it out, I was blown away.

I’m not sure if a specific incident caused the change or not, but in the last few months, a major (yes, absolutely major) security flaw was fixed. I hadn’t even noticed this flaw was there until they changed the way the doors work. Then it all became clear. I will try my best to explain it here.

At Concordia - and probably every other college/university out there - Computer Science/Engineering students get special computer labs to themselves. I’m sure other departments do as well, actually. All of these computer labs are protected by secure doors. There are two ways to get in. The first is to use a key, which I expect only technicians and administration type people have. The second is what professors and students all tend to do. We all have a six-digit key that we can type into on a keypad on the door. It then beeps and unlocks itself for us. These keys are provided to us on a website (encs.concordia.ca) that we need a password to use. I think that’s pretty standard.

I’ll describe how the doors worked from September last year until April this year (possibly later, since I’m not sure exactly when the change occurred). As I mentioned briefly, the door codes are 6 digits long. Lets pretend, for this example, that the door code is 555876. If you were to walk up to the door and press a 5 on they keypad, you would get a green light and a happy beep. If you press a 5 after that, you would get a green light and a happy beep. If you continue pressing the keys correctly, after the sixth key you would get a long extended happy beep and green light, and could then go into the room. If, however, you pressed any of the keys incorrectly, you would get a red light and an angry beep. You would then have to start over and type in the code properly.

Do you see the flaw? I used these doors at least twice a week for eight months without realizing how awful this design is.

This has got to be the single worst lock design I have seen in my entire life. Most locks out there have flaws, but I’ve never seen anything this bad. (I know a lot of twist-style combination locks can be reduced from hundreds thousands of guesses to just a few thousand).

Now I’ll describe how they currently work. No matter what you press on the keypad, you will get a red light and an angry beep. If you put in the six correct digits, the door unlocks (you can imagine my original horror when I typed in the well-memorized code and got a bunch of angry beeps). If you put in just a single wrong digit, you won’t know until the door refuses to unlock after six key presses.

Just in case you don’t see how serious this was, I’ll outline how easy and trivial it used to be to break in to every single computer lab at Concordia. Here’s the algorithm for breaking into a door before April:

1. Walk up to a door when nobody is around (there are plenty of labs in empty, far-away-from-everything-else hallways)
2. Press the first digit.
3. Green light? Press the first digit again (we start by looking for 11XXXX).
4. Red beep from step 2? Press the second digit (we’re now looking for 12XXXX).
5. Repeat until you have all six, which shouldn’t take long.

I could be wrong about the next bit, so read carefully and please let me know if I made a mistake.

You should only need to press a maximum of 210 keys before you could gain access. You would need a maximum of 10 key presses to get each next digit, and you also need to press in the code you have so far (if you’re guessing the fourth digit, you have to press the first three and then make a maximum of ten guesses to get the fourth).

I think the math works out to 210 total presses at the worst case scenario. I get 210 from 10+20+30+40+50+60, which I think is correct. Now, the way the current system works, you would have no idea if you’ve made a mistake until the very end of punching in the six digits, which means you have to try every single combination. From good old fashioned high school combinatorics (and a quick refresher course from Wikipedia), we know that Combinatorics

Using n=10 and r=6, we get 151,200. I’ll take this number a bit further: That’s 720 times larger that the old number of 210. If we assume that a person can punch in four keys per second (I’d say that’s pretty fast), have a perfect memory, and never pause, then…

a) It would have taken them 210/4=52.5 seconds under the old system. Less than one minute to break into a lab.
b) It now takes 151,200/4=37,800 seconds, or 630 minutes, or 10.5 hours.

Of course, I assume that there is only one valid key per door, which there might not be. (I seriously hope the math above is correct.)

So there you have it! I cannot imagine any circumstance where a company thought this was a good idea. It’s like having a car that tells you how you’re doing when you’re trying to break into it.

It does make me wonder though. Did someone discover the problem and report it? Was there a break in? Did Concordia complain to the lock company? Who is the lock company?

I’m sure I could continue, but this post is probably long enough as it is.

I hope I’ve inspired some of you to check out your own university’s door locks. Are they the same as I describe? Do tell!

Music: Red Hot Chili Peppers
IBC: 66,602-72,910 (about a 100ish change)

Entry Filed under: Technology

8 Comments Add your own

  • 1. yellowstuff  |  April 11th, 2008 at 13:02

    I believe the math at the end is wrong. There are 1,000,000 permutations
    of 6 digits. Your math would be right if order were not important.

  • 2. Correcter  |  April 11th, 2008 at 13:04

    The number 151,200 is not correct. That is the number of ways you can choose 6 unique digits. It doesn’t account for duplicate digits in the code, or for the fact that the order of the digits in the code matters.

    The correct number of possible codes is actually much easier to come by. Note that the possible codes range from

    000000
    000001

    999998
    999999

    You’ll see that it is simply every number between 0 and 999,999 padded with 0’s on the left. So, there are actually 1,000,000 codes to try with the new system.

  • 3. John B  |  April 11th, 2008 at 13:16

    yellowstuff, read the article again. The door TELLS you when you press the incorrect button.

  • 4. Brian  |  April 11th, 2008 at 13:34

    I think you would have a maximum of 60 keystrokes to get it:

    10 trys to get the first #
    10 for second
    10 for third
    10 for fourth
    10 for fifth
    10 for sixth

    60 tries and you find a correct #.

    Brian

  • 5. ryan  |  April 11th, 2008 at 13:38

    This is still silly. You can just tell me the code and I spread it around, it’s still not even slightly secure.

    The real solution is RFID badges like every legitimate company in North America uses. Cheap to produce, cheap to maintain, easy to implement (eg, instead of a keypad that reads a code from someone’s fingers, it’s an RFID receiver that reads a code from someone’s access badge).

    Each person who has access gets a badge, then you can not only have better security against “Oh the code is 555876,” but also better security from logs of who entered when, this way people are deterred quite effectively from sharing badges/access to the area.

    Duh?

  • 6. Peter  |  April 11th, 2008 at 14:20

    The real solution is RFID badges like every legitimate company in North America uses. Cheap to produce, cheap to maintain, easy to implement

    And easy to steal, oh yes. Use your brain.

  • 7. Peter  |  April 11th, 2008 at 14:26

    I think you would have a maximum of 60 keystrokes to get it:

    No. There’s 60 combinations, but you need 210 keystrokes to enter them — when you make a bad guess, you have to start over and re-enter all the previous (known) digits again.

  • 8. Aaron  |  April 11th, 2008 at 14:42

    Sure, they’re easier to steal than a number in your head, but I’ve worked at 2 Fortune 500 companies in the Financial & Investment industry that used them, so it can’t really be THAT big of a risk. Definitely much better than telling all of your friends the code.

    If someone loses their card, report it stolen, they deactivate it, it’s worthless plastic. Problem solved.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories

Links

Recent Posts

Calendar

January 2009
S M T W T F S
« Jun    
 123
45678910
11121314151617
18192021222324
25262728293031

Posts by Month

Posts by Category

Meta




compare nexium protonix and prilosec fexofenadine 180mg pills fluoxetine without a prescription 75 effects lortab gfcnstig lorazepam long term effects ambien buying prozac viagra free consultation lamictal folic acid lipitor to generic ciprofloxacin alergies online diflucan from dreampharmaceuticals alcohol rehabilitation centers in southeast michigan canadian pharmacy wellbutrin xl buy ambien online 32 order butalbital no prescription cheap genric viagra online edinburgh uk viagra tid cfm lamictal message boards 14 22f500 cipro vioxx lawyer effexor xr and alcohol use generic viagra pay with online check free sites results computer viagra cheap viagra ambien generic cananda free sample viagra vs cialis cheap prinivil cialis delivery generic overnite tramadol cats mexico prescription drugs valium lipitor generic sale add cialis generic link valium collect on delivery paxil to prozac cialis soft tabs scam viagra versus levitra effexor xr side effects weight gain generic viagra 0d 0a hgh phentermine quit smoking xenical ambien stillnox fed ex dhl inndia nicorette wellbutrin nicotrol nicoderm zyban atorvastatin macrolide sulfonamide allergy wellbutrin xl oral xanax alcohol cialis jokes drugs and phentermine hcl fioricet butalbital migraine relief usa buy ambien line ibuprofen expiration date vicodin tuss cough syrup prednisone during pregnancy delivery overnight valium xanax does prozac and zoloft aggravate gerd effexor interaction wth valium cheap online meridia ambien active ingredient effexor xr buy phentermine online no pescription phentermine 30mg no prescription paxil buspar dreams cod vicodin what does oxycodone look like what are diazepam and valium benefit of taking folic acid bupropion wellbutrin zyban black jack marijuana seeds ambien contains cialis effective soft tab treatment phentermine half life original phentermine without doctor approval viagra with prescription xanax and viagra 2005 ambien mt november tbcgi bontril prescription diet pill addipex or phentermine hydrocodone pharmaceutical prescription vicodin without dom lorazepam dangers of zoloft buy ambien online 100 tabs tramadol get you high viagra free sites computer news generic tramadol or ultram buspar dizzie does make why addiction hydrocodone recovery ok to take zyrtec and lisinopril disorder lamictal movement viagra women forum taking zoloft with serzone ortho tri cyclen skipping periods cialis nicotine valium vicodin marijuana cialis whistle advair diabetes valium high tramadol er and itching phentermine 37.5 x 90 tablets does medrol cause night sweats what is drug soma celexa for anxiety hydrocodone m367 effexor anxiety dog licking carpets and prozac folic acid pills buy phentermine overnight tabs lortab 357 phentermine w online consultation actos canada online pharmacy phentermine plavix phentermine overnight no prior prescription vioxx celebrex skelaxin oral buy generic cipro drug information about oxycontin tramadol cash cod accutane and alcohol effexor versus wellbutrin anxiety too much folic acid pregnant prednisone and weight gain didrex diet pill spironolactone no prescription metered dose albuterol can you take ibuprofen with tramadol class-action lawsuit on effexor minoxidil finasteride after hair transplant cheapest phentermine with no prior script metformin hcl patient teaching viagra success stories generic viagra tadalafil levitra comparison wow hydrocodone vicodin online hydrocodone hydrocodone ambien and beer insomnia paxil 2006 casino cialis followup january phentermine poker post viagra naltrexone er package insert ordering ambien online viagra and levitra side effects of alcohol and paxil tramadol valium lorazepam rx 773 buy generic levaquin lamictal bipolar tramadol giving to dogs prednisone leukemia ambien metabolism viagra propecia buy online ephedrine sale isopropyl rubbing alcohol in ears tramadol 300ct ambien ingredients ultram online now fluconazole and patient package information folic acid vitamin b 12 generic zovirax dream online order pharmaceutical soma buy fioricet online with checking account mike booth aura soma aan cheapest shops selling phentermine hydrochlorothiazide hypokalemia phentermine cheap ambien cod diazepam drug information generic oxycontin picture xanax mexico easy way to buy hydrocodone online dosage prozac cheap nexium buy cheap celecoxib phentermine no prescription no membership pills phentermine fear of pills bupropion generic sr wellbutrin what is naprosyn phendimetrazine no rx ortho evra studies effexor xr canadian pharmacy where to buy phentermine discussion boards morphine sulfate tramadol loss phentermine weight cipro drug interactions albuterol sulfate inhalation solution 0.083 ambien and seizures affordable cheap propecia bisopropol hydrochlorothiazide viagra poems buying viagra in the united kingdom buy deal online sale viagra viagra tramadol apap tab effexor xr and acne online phentermine no script can valium kill marijuana cannabis drug relafen 500mg baltimore accutane attorney buying sildenafil citrate in ecuador buy hydrocodone online today does viagra hurt women soma by chicos viagra falls 2 xxx buy xanax illegally buy vicodin online 32 discount generic cialis adipex p deliver to uk ephedrine damage kidney took buspar amitriptyline with xanax buy generic cialis without prescription viagra no prescreption phentermine lowest prices online cheap phentermine folic acid rda tramadol select health insurance coverage cod shipped tramadol online prescription purchase tramadol without north carolina mexican pharmacy phentermine attractive levitra woman half a pill of propecia cialis cheap nasacort package insert life insurance urine test nicotine efa interaction plavix buy tadalafil 60 online what is metoprolol ecstasy mdma tramadol without prescriptions lobos norco ephedrine hydroxycut purchase didrex without perscription on line effexor metabolism cheap drug prescription tramadol viagra viagra hydrocodone codeine allergy omeprazole overdose online safe phentermine free prescription viagra without no prescription usa pharmacy nordette pregnant and using diflucan phentermine mail order canada paxil pill glucophage diabectic medicine what is pravastatin buy pain pills hydrocodone actos tramadol a 273 buy viagra online at lowest price buy genuine prozac buy cialis drug online rx cheap clonazepam buy pharmacy online now order tadalafil 270 online nicotrol patch lexapro withdrawal dizziness baldness hair lasercomb loss propecia generic hydrocodone vardenafil tadalafil cheap cialis india carisoprodol rx buy zyrtec online viagra sample overnight delivery sildenafil nitro online pharmacy hydrocodone india fosamax and estrogen imitrex codeine interaction dyspepsia effexor xr buy tadalafil direct online premarin drug viagra search find cheap pages osteoporosis fosamax dental glucophage er dosage cheapest viagra substitute sildenafil cialis vs viagra forums celebrex fda hearing buy phentermine no docotor needed tramadol abdominal pain lamictal pcos prescription for phentermine albuterol aerosol side effects lorazepam tabs sleep walking and ambien best diet while on metformin xanax and weight loss ambien purchase online lortab online cod coumadin glaucoma ibuprofen tylenol mixture flexeril drug interactions rapid detox tramadol buy vicodin online cheap cialis erection health man penis viagra buy 2mg xanax cheap lorazepam drip lexapro phentermine klonopin online no prescription medicaid viagra flomax hydrochlorothiazide fluconazole vs antifungal drugs affects of alcohol while driving sponsored by viagra levoxyl oral edinburgh uk viagra tid cfm moo tramadol orders is lorazepam sold in mexico 150 tramadol accutane journals with pictures ambien nightly ambien behavior buy evista on the net medicine prinivil effexor xr cause sores on lips lost weight with xenical viagra online href forum topic id penicillin and allergy tramadol no prescription overnight buy finasteride low cost phentermine hydrochloride ambien perscriptions flonase vs nasacort cialis jpg fatal ativan imitrex finasteride flutamide in prostate cancer treatment tramadol kidney failure mood disorder nos and prozac desloratadine alcohol xanax viagra diazepam accutane taxol interferon online sertraline buy furosemide lasix ambien and gastritis cheapest phentermine on line lortab order witout prescription viagra cialis prescription online buy cialis online rss feed celebrex heart attack valium vicodin ortho evra and spotting miralax coupons viagra for cheap eric kinney president fioricet ultram sale online bupropion hcl prescription buspar weight gain discount ambien phentermine pills in canada cheap fioricet site generic viagra vega sildenafil citrate elsinore lake norco buy generic cialis uk celexa and acne fioricet prices atorvastatin and macrolide and sulfonamide allergy buy phentermine with a mastercard dolor ibuprofeno tramadol tamsulosin drug ativan miacalcin cause pancreatitis riverside community college norco celexa antidepressant xanax info hydrocodone legally online hydrocodone apap 10 325 combivent coupon viagra non prescription deal sale href tramadol weight loss and nicotine new york accutane attorney generic patanol effects of drinking alcohol with effexor type i diabetes metformin use lotensin dosage aldara and exercise online propecia from dreampharmaceuticals can levitra be used by women xenical orlistat cheap tramadol 10mgs lortab 5500 mg phentermine online phentermine effexor withdrawl buy valium no script phentermine adipex no prescripton necessary buy generic ritalin online voltaren vioxx celebrex buy sildenafil viagra xanax 2mg cock on viagra tamsulosin hcl drug and alcohol testing kits fast online phentermine prednisone adverse effects generic pill viagra 2737 amerimedrx online pharmacy prevacid generic viagra softtabs lotrel drug is th diet pill phentermine successful tramadol clorhidrato nexium canada pharmacy where to buy yellow phentermine loratab tramadol pictures of steroids generic drug for detrol la buy levitra overnight vicodin picture sildenafil uses hydrocodone no prescription flomax drug interaction vardenafil hydrochloride without prescription diflucan online dream pharmaceutical buy hydrocodone online no membership fees paxil settlements discount fosamax does it viagra work cialis how much is safe paxil cr drug recall meridia drug screen find viagra free sites edinburgh pulled phizer viagra on line symptoms withdrawal effexor xanax and grapefruit interaction hydrochlorothiazide 50mg tramadol by the pill phentermine 37.5 mg blue traingle tablet buy non genaric ambiens online tadalafil money order online order u s a softtabs online ambien zolpidem overnight cheap generic phentermine purchase phentermine no tx change cyclen lo ortho time tri buy hydrocodone from amsterdam pharmacies buy drug satellite tv norco aquire evista online buspar forum tramadol cheap no prescription ortho tech school serzone patient feedback adverse affects of effexor once yearly fosamax injection buy zithromax single dose free viagra without presc effexor making you gain weight fiorcet levitra online pharmacy prescription bontril diet online pill propecia cost tramadol hcl 50mg used for flomax capsule diabetic diet protein phentermine pill paxil lexapro topamax and depression taking tamoxafin and prozac viagra baby cheap online phentermine free doctor consultation flonase side effects naproxen 550 mg fluoxetine and paroxetine lorazapam lorazepam cod generic pal pay viagra diarrhea folic acid 2mg xanax online paypal phentermine 100 $80 oral diflucan ambien canadian drug loss of taste vicodin phentermine overnight cheap phentermine yellow prednisone drug interaction ohio mortgage rates buy soma cheap xanax and phendimetrazine buy xanax overnight delivery to uk cialis generic information buy ultram online prescription ortho evra reply boards purchase hydrocodone online cod phentermine for weight loss phentermine no prescription next day shipping buy klonopin ortho evra mexico alcohol serving licence tramadol vs lortab diabetes medication ic metformin hcl tramadol generic names valtrex ortho evra patch dallas accutane lawyer adipex no imprint prednisone side effects cats pain medication morphine phentermine without prescription with overnight delivery buy card master xanax lipitor diet effexor and depression order vicoprofen online cognitive functioning topamax purchase soma online keywords cialis vardenafil folic acid food sources buy generic viagra pharmacy online effexor abnormal orgasm xenical online description chemistry ingredients orlistat totally free viagra keppra memory can you combine strontium with fosamax side effect hydrocodone with apap 5 sildenafil citrate 100mg plus cialis discount canada generic medicine for nexium glucophage metaformin info professional muscle difference between sanota and ambien phentermine generic cheap lovastatin generic lipitor chemical equivalent tramadol lexapro marijuana vs prescription drugs phentermine 37.5 mg sale buy buspar online prednisone burst 10 mg accutane journal picture phentermine 37.5 mg without primary docter viagra mailing list fear flying xanax natural herbal viagra zyrtec 10 mg tablet cialis the sex pill c cheap d o phentermine ativan klonopin vs purchase atorvastatin cheap online effects of ic fluoxetine hcl board evra message ortho filing income tax buy soma gemfibrozil and ceftin phentermine adipex phentermine phentermine mg abuse online pharmacy prednisone injection ambien cr sample bontril prescription online length of weight loss on phentermine diflucan ingredient is tramadol hcl a narcotic diazepam plant source effexor withdrawls sleep eating related to ambien christina renova viagra online fraud spironolactone vs finasteride forum lorazepam 1mg images depression glass diet phentermine pill nato diazepam belgrade cheap phentermine without prescription online pharmacy viagra find sites computer free generic prozac problems cod phentermine viagra help women buy us xanax online ambien side effects pulmonary check online order personal phentermine fioricet drug information no prescription needed true phentermine discount herbal viagra viagra viagra canadian viagra pharmacy buy propecia pills z71 glucophage premarin class action lawsuit