Slashdot Mirror


The Rising Barcode Security Threat

eldavojohn writes "As more and more businesses become dependent on barcodes, people are pointing out common problems involving the security of one- or two-dimensional barcode software. You might scoff at this as a highly unlikely hacking platform but from the article, 'FX tested the access system of an automatically operated DVD hire shop near his home. This actually demanded a biometric check as well, but he simply refused it. There remained a membership card with barcode, membership number and PIN. After studying the significance of the bar sequences and the linear digit combinations underneath, FX managed to obtain DVDs that other clients had already paid for, but had not yet taken away. Automated attacks on systems were also possible, he claimed. But you had to remember not to use your own membership number.' The article also points out that boarding passes work on this basis — with something like GNU Barcode software and a template of printed out tickets, one might be able to take some nice vacations."

20 of 125 comments (clear)

  1. Nice vacations? by MiniMike · · Score: 5, Funny

    > The article also points out that boarding passes work on this basis -- with something
    > like GNU Barcode software and a template of printed out tickets, one might be able
    > to take some nice vacations."

    Yeah, in Guantanamo...

    1. Re:Nice vacations? by jacquesm · · Score: 5, Funny

      water boarding passes ?

    2. Re:Nice vacations? by Penguinisto · · Score: 4, Interesting
      There's also the missing component of having the corresponding data in the airline's computer network/system that matches the barcode for that flight, at that time, on that date, at that gate, for that seat, etc etc... it only get more complex if you're dumb enough to try and check baggage as well.

      You'd have to study more than just algorithms to get on a plane - all of the data the barcode represents would have to be in the airline's computer as well, else you won't ever get past the gate.

      Unless there's some sort of secret code that gives free flights (could be, like for stewardesses returning home and such), it just ain't gonna happen that way.

      Of course you could get real lucky, but it would have to be something on the scale of winning enough money via the Lottery to pay for the flight.

      /P

      --
      Quo usque tandem abutere, Nimbus, patientia nostra?
    3. Re:Nice vacations? by Smordnys+s'regrepsA · · Score: 5, Funny

      Water boarding? If that's anything like wake boarding, count me in!

      --
      Just -1, Troll talking to another.
    4. Re:Nice vacations? by JacksBrokenCode · · Score: 4, Insightful

      You'd have to study more than just algorithms to get on a plane - all of the data the barcode represents would have to be in the airline's computer as well, else you won't ever get past the gate.

      Ticket numbers are tied to specific passengers, not just flight & seat info. If you got to the point where you could accurately predict future ticket numbers for other passengers, you'd be able to get past security and likely on the plane... until a legitimate passenger shows up with the same ticket number. Even if you didn't sit in the seat you forged, they'd force everyone to disembark and reauthenticate themselves with photo-ids. Then there's the uncomfortable situation of trying to explain why you forged a boarding pass to circumvent security measures.

  2. Great. by Rgb465 · · Score: 3, Funny

    The article also points out that boarding passes work on this basis -- with something like GNU Barcode software and a template of printed out tickets, one might be able to take some nice vacations."

    Great, now GNU Barcode will be classified as a terrorist weapon...
  3. Re:This is a fairly obvious vector by schon · · Score: 5, Insightful

    Maybe I'm missing something salient, but all this says is if you change the membership number provided to the system, the system will use that instead of any other. Yes, you are missing something. And it's significant becaose of this:

    instead of the number being provided via a keyboard, it's provided via a barcode. Yes, and the people operating the machines that read these codes trust them.

    Think about this: you go somewhere that uses ID/membership cards with barcodes on it. Salesdrone asks for your card. If you just give them the number verbally and are security-minded, they'll probably ask for ID. However if you provide the card, they won't, because they the card *is* the ID.

    Non-technical people don't understand how barcodes work, so they assume that nobody else does either. So if nobody else understands it, then it can't be forged.
  4. Must admit I've taken advantage... by russotto · · Score: 3, Funny

    Darn it, now Acme* is going to read this and put a stop to my fake-discount-card ways. (they'll accept any code with the right length and first three digits... amusingly including other supermarket's cards).

    *That's the grocery store, not Roadrunner's coyote-torturing company.

  5. Nothing special by markdavis · · Score: 3, Insightful

    There is nothing special or inherently secure about barcodes. They are just a machine readable number. Security has nothing to do with it- those are measures taken outside the barcodes. Anyone can print any type of barcode on just about anything.

  6. Barcodes still worthless without insider info... by shlingus · · Score: 3, Insightful

    Being able to print 2-dimensional, 3-dimensional, or even n-dimensional barcodes is useless no matter what software you have unless you already possess the inside info of knowing somebody's valid account number, data, etc. If somebody's gotten a hold of enough info to successfully print and use an illicit barcode, your security problem lies NOT with the barcode itself but with the system that allowed this information to get out in the first place.

    The same situation exists with magnetic stripes. If you have valid account data you can write it to a magnetic stripe on a card and go to town with it. It's getting the data that's the hard part.

  7. Re:This is a fairly obvious vector by jimmyswimmy · · Score: 5, Interesting

    I used to work at a semiconductor fab - basically a big chemical factory. Access control, security and timecards were all kept by a barcode system, printed on the back of your badge. I had a lot of fun making bar codes to see which would get me into places I shouldn't have been, like the spaces between the cleanroom walls, or the tunnel under the building, or the chemical storage area (that was a place I didn't ever like being in). Probably seems worse now than it did then.

    Back in elementary school we had a stored-value system for buying lunch, with security based on bar codes on little plastic cards. This was nearly 20 years ago and there was free software available then (on my Commodore 64? Atari? Can't remember) to generate bar codes. I made a couple, based on the ID numbers of friends, and gave them to the lunch lady, telling her that those cards were a bad idea. They never changed anything, though. These days I'd have been kicked out of school for that, though, if not arrested.

    --

    Just my $0.55 (US inflation, 1774-2008, for $0.02)
  8. In other news... by Anonymous Coward · · Score: 5, Funny

    L33t hackers discovered that with a certain amount of awareness and bravado it is possible to obtain quite tasty sandwiches for free, by hanging around the pickup counter at sub shops and pretending to hold the ticket number that was just called out.

  9. Re:Fraud with copied bar codes by bjorniac · · Score: 3, Informative

    Been done a few times, but the one that comes to mind is this:http://www.denverpost.com/news/ci_3270764

    There was also someone who stole a bunch (something like $300k) of legos like this (yeah, geeks crime) and I remember a case involving Mall-wart and iPods...

  10. Souldn't work against properly designed systems. by BitterOak · · Score: 5, Informative

    Anyone who has done any work with barcodes knows they are encoding schemes, not encrypting schemes. A barcode is simply a way of representing data (may be alphanumeric or binary), in a way that is easily read by scanning equipment. The commonly used algorithms are well publicized and it is easy to obtain software to read or write them. If security is important, encryption must be applied before the data is encoded in a barcode. I've scanned many barcodes on many things, and if money is involved, such as tickets or postage, I've generally found that they decode to seemingly random binary data, which means that most likely, encryption was applied first.

    --
    If I can be modded down for being a troll, can I be modded up for being an orc, or a balrog?
  11. Chaos Communication Congress by matelmaster · · Score: 3, Informative

    The talk this Heise article is about (which was held at 24c3 on friday) is actually available as a full-length download in various formats on mirrors (look for "2273-en-toying with barcodes") and on bittorent along with most of the other talks given at this (totally awesome) event. And it's in english, too.

  12. Not entirely accurate... by Anonymous Coward · · Score: 5, Interesting

    I've done this for kicks just to see if I could do it, but once I brought one of my fake ID's and fake boarding passes to the airport and got through the "security" (security? BAHAHAHA!) and made it into the terminal. Bought some drinks, ate some food and went home.

    No one was the wiser.

    You see, it's just a billion dollar FARCE and a WASTE OF TAXPAYERS MONEY for the *feeling* of safety when there really isn't any.

    Of course I couldn't get on the plane. I couldn't get on a plane in 2001 without a correct ticket anyways. They had the barcode scanners to "check" you into the plane anyhow. At least, I remember them being available back in 1999 -AND- I wasn't too keene on getting onto a plane where there weren't enough seats where I'd get caught :P

    Anyways, just as I said, this is easy to blow a hole through. There's nothing in the world that makes me more mad than being patted down, scanned or searched before boarding PUBLIC TRANSIT. I'm not a criminal, wtf are government agencies doing there?

    (posted anon and through a couple anon proxies)

  13. Passes worthless! I got on a flight without paying by KWTm · · Score: 4, Interesting

    There's also the missing component of having the corresponding data in the airline's computer network/system that matches the barcode for that flight, at that time, on that date, at that gate ...
    You won't be so sure after you hear what happened to me.

    Once, I got on a flight to Hawaii. The plane was about to push off and, like most of the other passengers, I had settled into my seat. Then some other passenger came and said I was sitting in her seat! We compared boarding passes, and lo and behold, both of our passes were for the same seat! We couldn't figure it out, so we asked the flight attendant for assistance. She couldn't figure it out either, so she had to go back to the boarding gate with our passes to ask the ground crew to figure it out.

    After a while, someone finally realized what happened. I was on the wrong flight! I was on board a direct flight to Hawaii, but I had actually bought a ticket to fly to San Francisco and from there transfer to a flight to Hawaii. I had always thought of it as "my flight to Hawaii" and had completely forgotten that I would have to transfer. The boarding gate was off by one, but the airport always changes boarding gates at the last minute and I figured this was one of the times. And the flight was scheduled 5 minutes before my actual flight, so I figured that the flight was early. I lined up like everyone else with my Internet-printed boarding pass, the computer scanned it, and I got on board just like everyone else. There was no alarm that I was on the wrong flight or anything like that.

    That was with me accidentally getting on the wrong flight. What do you suppose could happen if someone was intentionally trying to pull off a deception? The only redeeming feature is that this happened in 2002, and I hope that airline security has improved somewhat since then. (I can dream, can't I?)
    --
    404555974007725459910684486621289147856453481154 in hex is "You sank my Battleship?"
    [GPG key in journal]
  14. Re:bar codes can be copied by DoomfrogBW · · Score: 4, Informative
    That is incorrect. While the barcode can be photocopied, a backend database with terminal-level authentication to verify the barcode would stop most people. Before passing to the server, the terminal takes the barcode and has the algorithm below for generating the checksum. The two are compared and if they match, then it is passed onto the server which provides the ultimate authentication. If the checksum's do not match, then it is invalid. This prevents someone from simply changing a few digits and thinking it will work, which is what the article is talking about. The following method is a popular means by which to combat photocopying. For instance: A barcode number in Code 128C can be given as 000000070314100601 then apply checksum security and add these last two digits to the end of the current number:

    // Generate CRC16 checksum using pos 1,3,5,7,9,11,13,15,17 of barcode

    unsigned short cs;
    cs = crc16((unsigned char*)barcode);
    barcode[18] = (cs / 10) + '0';
    barcode[19] = (cs % 10) + '0';
    barcode[20] = '\0';
    ...

    unsigned short __fastcall TFormMenu::crc16(char* p) {
    char checksum = 0;
    for (int i = 1; i <= 17; i += 2) {
    checksum = checksum + p[i] - '0';
    }

    return checksum;
    }
  15. Re:Passes worthless! I got on a flight without pay by skiddie · · Score: 3, Interesting

    Hmm. I boarded a flight on Dec. 24, sitting in seat 27C. As I got on the plane and handed the ticked to the member of cabin crew (having already had this boarding pass scanned at least twice) for her to direct me to my seat, she pointed it to me, and then did a double take.

    "Sorry," she said, "I thought your ticked was for December 27, not row 27."

    Now, either she was tired, or that's something that happens sometimes. Anybody know?

  16. Re:Passes worthless! I got on a flight without pay by jbengt · · Score: 4, Interesting

    "and I hope that airline security has improved somewhat since then. (I can dream, can't I?)"

    Keep dreaming.
    My experience with a current construction project for a major airline at a major airport speaks to a discomfortingly confused security situation.

    The first time I went to the site with the Architect, who had a badge to escort us into the terminal, we were refused entry at 3 different points, always told to go somewhere else that wouldn't let us in. Then we went to an airline official, who said that the badge the architect had would get us in at a security gate that we tried before, so she escorted us there, and we weren't let in. So she did about a half hour of research, and found that we needed to go to the desk where they check in pets in their crates! There they checked the architect's badge and our IDs and issued us each a ticket-like piece of paper that we took to the security gate. There they took that "ticket" from us (and my co-worker's zippo lighter) and let us through. We then had the run of the place, without any ticket or pass.
    We spent over an hour and a half getting in to do 2 hours of work. Then, after suffering through all that security red tape, we at one point got separated from the contractor with the keys, while we were in the non-secure loading dock (accessible from a public roadway). But not to worry, a friendly worker let us back to the secured passenger terminal side.

    The second time I went with my boss, who picked up his own badge that he applied for three weeks earlier. He had been told it was ready to pick up. It took a little over an hour wating in lines and watching safety videos to pick up the badge. But when we tried it (it was a swipe and pin number type), it didn't work. So we went back down to the security badging office, only to find a sign on the door saying that they were closed for lunch and would be back at 1:00pm (even though it wasn't noon yet). I went back to the office, and he stayed the rest of the day to get it straightened out and do about an hour of work.

    The third time I went, construction was well under way, the walls were knocked down, and the only thing bewteen the public parking and the secure air side was some pastic sheeting.

    Did I mention that both the existing layout and the new design include a loading dock that connects the non-secured public roadways with the secure airside through a locked, but un-manned, door? Anyone on the inside (including employees, or sneaky passengers) could open the door, (or man the freight elevator if they had the key), and bring large, explosive things off the truck with a forklift and into the passenger terminal.