
There is a rule that gets repeated endlessly in cybersecurity: never trust what the user sends you. This story is about that, although I got to it by an unusual route. Through my parents.
Anyone who has taken classes at a gym knows what I mean. Places are limited, booking opens at an exact time and some people will do anything not to be left out. There were people who walked out halfway through a class to be phone in hand at the very first second the next one could be booked. That was the situation.
And anyone who hasn’t had to deal with it doesn’t know how infuriating it is to miss out on a place, because it wrecks all your plans. Or what it’s like to end up on the waiting list and live with the uncertainty of not knowing whether you’ll get in.
My parents lived with that constantly. Until one day they asked me, the way you ask your son whether the letters on the phone can be made bigger: is there any way to fix this?
I picked up the phone. The restriction was simple: a class couldn’t be booked until 24 hours before.
So I did what every kid of my generation has done at some point in a video game to move faster. If the game made you wait eight hours, you set the device’s clock eight hours ahead, and it worked as long as nobody had bothered to prevent it. I thought: is a gym’s home-made app really going to account for this? Surely not.
I changed the date and time on the phone, trusting that the app checked the phone’s clock and not a server’s.
Bingo.
You have no idea how much I laughed when I saw that classes could be booked even weeks in advance. I pictured the instructor’s face on opening the list a few hours early and finding, by chance, that someone was already signed up.
It’s the rule from the beginning, seen from another angle. The phone’s time is also data sent by the user, and the user can set whatever they like. That check had to happen on the server, which is the only clock the gym controls.
I reported it, of course, and they fixed it in version 4.4.19 of the app. But let’s just say I made sure to test it thoroughly before I did.
Technical summary
I found a flaw in the Club Gym Sierra app’s time checks that let users book classes before the permitted time. I reported it, and it was fixed in version 4.4.19.