|
|
|
|
|
by cptskippy
147 days ago
|
|
> 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 the API requests are coming from an attested device. To mitigate the MITM attack you can use TLS Certificate pinning on sensitive API requests. You could have the server side API provide a session specific signing token that the App uses to sign payloads attached to API calls. |
|
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.