Oh no, you're thinking, yet another cookie pop-up. Well, sorry, it's the law. We measure how many people read us, and ensure you see relevant ads, by storing cookies on your device. If you're cool with that, hit “Accept all Cookies”. For more info and to customize your settings, hit “Customize Settings”.

Review and manage your consent

Here's an overview of our use of cookies, similar technologies and how to manage them. You can also change your choices at any time, by hitting the “Your Consent Options” link on the site's footer.

Manage Cookie Preferences
  • These cookies are strictly necessary so that you can navigate the site as normal and use all features. Without these cookies we cannot provide you with the service that you expect.

  • These cookies are used to make advertising messages more relevant to you. They perform functions like preventing the same ad from continuously reappearing, ensuring that ads are properly displayed for advertisers, and in some cases selecting advertisements that are based on your interests.

  • These cookies collect information in aggregate form to help us understand how our websites are being used. They allow us to count visits and traffic sources so that we can measure and improve the performance of our sites. If people say no to these cookies, we do not know how many people have visited and we cannot monitor performance.

See also our Cookie policy and Privacy policy.

This article is more than 1 year old

Polish developer hacks Android rewards app for free beer

Broadcasting authent keys over the air is just asking for trouble

A cunning Polish developer has hacked an Android food and drink rewards app to grant himself unlimited free beer.

Kuba Gretzky detailed his excellent exploits in a blog post on Breakdev – though, to deter copycats, he didn't name the rewards app or the precise location within Poland where it was operating.

He did, however, name the makers of the tech used by the unnamed rewards app: beacon supplier Estimote.

The rewards app worked by allowing bars and restaurants to award loyalty points to diners for certain purchases, including beer. To verify the purchase, the vendor either swipes a physical beacon over your phone or enters a PIN.

Gretzky's interest was piqued when he started looking into how secure the beacon technology used by the rewards app was. Thanks to Estimote's extensive online documentation for its software development kit he was able to learn what sort of information their beacons transmitted – and their range, which is a maximum of 70 metres.

He wondered, in particular, whether the authorisation keys for the transaction were broadcast over the air by the beacons.

Armed with a custom-written Android app to read the beacons' signals – again, aided by Estimote's exhaustive documentation and its Developer App – along with a Windows platform running packet-sniffing program Fiddler, Gretzky discovered not only that the rewards app definitely required a PIN, it locked him out for 30 minutes after he started trying to brute-force it.

After setting up his Android phone to forward HTTPS traffic from the app to a specially set-up VPN where he could later retrieve and decrypt the traffic, Gretzky toured three restaurants and captured some genuine PINs which confirmed his hypothesis that the authorisation keys were broadcast over the air.

He summarised his exploits (“how to get free EatApp points”) as:

  • Walk into restaurant ZZZ.
  • Open up Estimote developer's app and detect the closest nearby beacon.
  • Save the screenshot with the visible UUID, Major and Minor values.
  • Go home.
  • Set a breakpoint in Fiddler to intercept EatApp packets with /users/ path in GET requests.
  • On your phone, select the ZZZ restaurant and set EatApp to await PIN authorization for earned points.
  • Enter any PIN.
  • Modify the intercepted packet in Fiddler, removing the "pin":"NNNN" entry and replacing it with the valid "main_beacon":{...} content containing the beacon keys captured with Estimote app.
  • Let the modified packet through to EatApp server.
  • Enjoy your free points!

Doubtless many Reg readers are familiar with man's eternal quest for free beer through technological means. Not that many will have gone to these lengths – or have you? ®

Similar topics

Similar topics

Similar topics

TIP US OFF

Send us news


Other stories you might like