Reverse engineering Lyft Bikes for fun (and profit?)
11–20 of 30 posts
Re: Reverse engineering Lyft Bikes for fun (and profit?)
#12Howdy. Back in 2019 I reverse engineered the lyft bikes api to unlock them from my bed. It's one of my favorite stories, and after telling it dozens of times I finally decided to write it up in its full technical glory. I used to love learning about security through blog posts/writeups, so I tried to include as much detail as possible. Let me know if you like this style!
Believe it or not, straight to jail! Just kidding, great writeup. I know it's not groundbreaking, but does surprise me how many products don't bother with rate limiting controls.
Re: Reverse engineering Lyft Bikes for fun (and profit?)
#13you've unlocked hundreds of bikes under your account. That would mean you've reserved the bike and therefore have to pay for damage/loss of property?
Re: Reverse engineering Lyft Bikes for fun (and profit?)
#14Re: Reverse engineering Lyft Bikes for fun (and profit?)
#15Now that some bikes have electronic shifting, you can attack the bike itself. I wrote two blog post about how to downgrade the Shimano Di2 shifters and do a replay attack to remotely shift it. You can find them here:
https://grell.dev/blog/di2_downgrade https://grell.dev/blog/di2_attack
Re: Reverse engineering Lyft Bikes for fun (and profit?)
#16Re: Reverse engineering Lyft Bikes for fun (and profit?)
#17> Geofence bypass: As far as I understand, there's no easy way to enforce a geofence server-side other than timing, consistency, etc. You sort of just have to trust whatever the phone tells you. There's no fool proof method but you can make it very hard and impractical. Both Apple and Google offer attestation mechanisms to confirm the integrity of the App and Device Environment that it's running on. This ensures that…
In my experience, all forms of attestation start to become impractical at scale unless you have a fairly homogeneous, well-patched fleet. This is particularly heinous for TPMs, where I've observed TPMs coming off one STM line having invalid EK certs, but other STM TPMs of the same model are fine. Or the platform firmware stamped out onto the motherboard has a bug in how it extends PCR0 and the event log is just borked forever, and so on... Totally unworkable.
Re: Reverse engineering Lyft Bikes for fun (and profit?)
#18After getting the endpoints, I was able to plug it directly into Home assistant.
Re: Reverse engineering Lyft Bikes for fun (and profit?)
#19You'd generally expect a company like Lyft to pin its certificates, so it's notable that they don't. Any ideas as to why?
Re: Reverse engineering Lyft Bikes for fun (and profit?)
#20> Geofence bypass: As far as I understand, there's no easy way to enforce a geofence server-side other than timing, consistency, etc. You sort of just have to trust whatever the phone tells you. There's no fool proof method but you can make it very hard and impractical. Both Apple and Google offer attestation mechanisms to confirm the integrity of the App and Device Environment that it's running on. This ensures that…
2. Please don't give people bad ideas. This is how we get bikeshare apps that don't work on rooted/old/GrapheneoOS/... devices and further entrench google's position in the Android ecosystem.
If your security depends on devices faithfully reporting their location, you've already lost. Get a whiteboard, start from scratch.