News for hackers. Stuff that matters.
Re:BMW Connected Apps Protocol by theflyinghorse on Monday January 20, 2020 @05:37PM (#22102652)
I am thoroughly impressed! How did you find that the key was obfuscated inside the image though?
Re:BMW Connected Apps Protocol by selpop on Tuesday January 21, 2020 @12:03AM (#22104421)
Similar to what netsharc describes

Found the call that added the header for the API key to each request (even with Proguard's obfuscation string literals are preserved, so searching for "x-api-key" worked)

From there I followed the call chain to their transformer, then looked at the input for the transformer and it was loading a subset of bytes read from the same resource as the launcher icon (and sure enough, opening it in a hex editor there was some weird "garbage" that I'm honestly surprised Android doesn't choke on)

Re:BMW Connected Apps Protocol by netsharc on Monday January 20, 2020 @07:54PM (#22103377)
My guess is that a function that looks like fetchKey() loads that image. Although maybe that's too easy to discover?