Physical security and cryptography can learn from each other, part 11367:

Hotels wisely don't put the room number on guest keycards so if someone finds your card, they'd have to exhaustively search the hotel to find the room it opens.

Some hotels now have elevators programmed to only let you call the floor for which your keycard is coded, preventing guests from wandering to other floors.

But it also means the elevator can be used as an efficient oracle to determine the floor of a found key.

In other words, restricting the elevator in this way is a bad tradeoff. It makes it harder for guests to visit their friends on other floors, but it reduces the complexity for an outsider burglar from O(|rooms|) to O(|floors|) + O(|rooms_per_floor|), a much more feasible search space.
(The point here is not about securing any specific hotel or keycard system. The point is that thinking about security in abstract terms can reveal properties and weaknesses that aren't otherwise obvious.)

@mattblaze

In the holiday house we rent there is a masonite panel in a closet under the stairs, with screws in the corners.
Since it seems to hide something (actually it hides just the heating pipes) I wrote on the wall behind it: "The safe is not here! Try again!".

@mattblaze I am in a hotel now (in Japan, for context).

I observed that you could access any floor when my backpack pressed several floor buttons on our first ride.

When I later attempted to access the laundry room floor but could not, but could access my floor, thought that perhaps the first observation was an anomaly associated with the fact that the only other elevator was being attended by an elevator repairman at the time of the multiple floor incident.

It turns out that I had my Suica card in my hand, not my hotel card, had selected my floor based on the swipe of another guest in the elevator, but was unable to select the laundry floor after a time out.

I discovered this when I couldn't open my room with the Suica.

The flaw in this hotel is that one swipe enables multiple floors, defeating the security access aspect while providing the anonymity. A guest can swipe, and an intruder can then access a floor that they have previously observed a target accessing, and then, presumably, having determined the room number via other (social engineering) means, door knock with "hotel engineering".

@BernardSheppard @mattblaze In a hotel I stayed in a few years back, someone discovered an interesting hack: while you could only select a floor after swiping your card (IIRC and only your own), after someone had selected a floor you could select any additional floor by pushing the button of the already selected floor and the new floor at the same time, thanks to the physical wiring of the card-reader add-on.

Not sure whether you'd count that wiring as "software bug" or "physical security issue" :)

@mattblaze I enjoy the idea, but are you sure they don't print the room number for security reasons? I was under the impression it was because they reprogrammed them when they gave them to you
@mfdeakin @mattblaze
they do program them before they hand them to you, but the reason for that is security. They could just program a specific key for every room and put the room numbers on them, but that is considered bad practice.
@duckwhistle
Given how often people lose or forget to return their key cards when they check out, having room-specific keys isn't really a logistically sound idea.
@mfdeakin @mattblaze

@mfdeakin @mattblaze It's easy enough to decide. Are hotels interested in security or in cost? If the room number was on the key, it's extra cost to manufacture, it's extra cost because you'd need twice as many to allow for losses, it's extra cost because you'd need racks to store them, it's extra cost because reception would have to sort returned keys

So instead of having the room number on the key, it's quickly handwritten on the card folder, and you'd never lose that with the key

@mfdeakin @mattblaze
They don't print the room number because they don't have a printer for the cards. (And there's probably a policy against marker pens on stationary orders, for this reason.)

@mattblaze

the solution is for the hotel itself to drop keycards around the hotel and in the surrounding area

then when that honeypot keycard is used on the elevator it takes the potential burglar to the basement where a burly guy named Steve is waiting for them with a grin

@benroyce @mattblaze It's a funny idea, but as I'm sure you'll know this isn't like dropping your file/USB stick, it's not unlikely a customer will misplace their card and then 'miraculously find it again' in the surrounding area, as that's what they walked past

@syllopsium @mattblaze

well if i was being serious, the burly guy in the basement would have been named Bob

@benroyce @mattblaze Well, yeah, Steve is just too nice, isn't he?
@mattblaze I've also seen some hotel elevators where you swipe your keycard and it selects the correct floor for you, removing the O(floors) component.
@th @mattblaze yeah i encountered that recently in germany and was just like ????????????? why
@ariadne @th @mattblaze What if you wanted to have a drink at the rooftop bar before going to your room?
@ariadne @rhelune @th @mattblaze floors with shared amenities are usually open to all cards (provided you have one). Some hotels also doing restric your floors, but simply required a valid card to take the elevator, trying to prevent non-customer coming into the hotel from being able to wander in the corridors. This is obviously defeated by stairs (that are usually present) or simply by riding the elevator with other people.
@halfa @ariadne @th @mattblaze Sure but, if you scan keycard because there is a scanner in the lift and press the top floor to go to the bar, you do not want to be automatically taken to the third floor.
@rhelune
Oh, no hotel will restrict access to a bar. They're always free floors.
@ariadne @th @mattblaze
@hypostase @ariadne @th @mattblaze Yes but you do not want to be taken to the wrong floor just because you swiped your keycard. If the lift acted that way, I would suspect a prank (or worse): https://youtu.be/1Un_oHaf798
Ylvis | The Intelevator - Episode 1 (Exhibition) | discovery+ Norge

YouTube
@rhelune
I was almost expecting the Scotsmen.
@ariadne @th @mattblaze

@rhelune Also annoying if you are staying at a hotel with a group of friends (e.g. for an event). Then you cannot easily go to their floor and have to always meet in the lobby.

@ariadne @th

EDIT: OK I am an idiot, @mattblaze already covered this exact point! 🤪

>… harder for guests to visit their friends on other floors…

@ruari @rhelune @ariadne @th @mattblaze
Hotels don't want guests visiting each other's rooms. They want guests meeting each other profitably in the bar. (Also make it easier to charge the prostitutes their ground rent.)
@mattblaze
Given the recent news about one hotel chain giving a rando a keycard just by knowing the occupant's name, I'm not sure any hotel security should be trusted.
@mattblaze same with parkades where keywords are associated with being let in and out.. had used parkades in storms to remove ice and snow to allow ability to see better and wheels to be deiced for further movement