Security
Headlines
HeadlinesLatestCVEs

Headline

Leaky Access Tokens Exposed Amazon Photos of Users

Hackers with Amazon users’ authentication tokens could’ve stolen or encrypted personal photos and documents.

Threatpost
#vulnerability#android#google#amazon#auth

Hackers with Amazon users’ authentication tokens could’ve stolen or encrypted personal photos and documents.

The Amazon Photos app for Android insufficiently protected user access tokens, according to a blog post published on Wednesday.

Theoretically, with exposed tokens, an attacker could’ve accessed users’ personal data from a number of different Amazon apps – not just Photos but also, for example, Amazon Drive. They also could have performed a ransomware attack, locking up or permanently deleting photos, documents and more.

The findings were first reported to Amazon’s Vulnerability Research Program on November 7th of last year. On December 18th, Amazon announced that the issues had been fully resolved.

Loose Tokens

To authenticate users across various apps within their ecosystem, like other software suite vendors, Amazon uses access tokens. It’s convenient for users, but also, potentially, for attackers.

In their report, researchers from Checkmarx described how access tokens naturally leaked through an Amazon application programming interface (API) through “a misconfiguration of the com[.]amazon[.]gallery[.]thor[.]app[.]activity[.]ThorViewActivity component, which is implicitly exported in the app’s manifest file” – manifest files describe critical application information to the Android OS and Google Play store – “thus allowing external applications to access it. Whenever this activity is launched, it triggers an HTTP request that carries a header with the customer’s access token.” In a video explainer, they put it in simpler terms:

“You can think of it as the password being sent to other apps in plaintext.”

In addition to third-party applications, the same unsecure token was also shared with Amazon Drive – used for file storage and sharing.

Attackers Could’ve Stolen, Deleted Data

There are any number of ways in which an attacker could’ve leveraged unsecured access tokens.

For example, with a malicious third-party app installed on the victim’s phone, they could’ve redirected the token in a way “that effectively launches the vulnerable activity and triggers the request to be sent to a server controlled by the attacker.” From there, the attacker could have accessed all kinds of personal information a victim had stored in Amazon Photos.

Because the tokens also leaked to Amazon Drive, attackers could’ve found, read, or even unrecoverably deleted files and folders in a victim’s Drive account.

And “with all these options available for an attacker,” the researchers speculated, “a ransomware scenario was easy to come up with as a likely attack vector. A malicious actor would simply need to read, encrypt, and re-write the customer’s files while erasing their history.”

It’s unclear just how many apps could’ve been targeted with such loose access tokens, as only a small number of Amazon APIs were analyzed for the report. The real scope could be quite a bit greater. Erez Yalon, vice president of security research at Checkmarx, reflected on the implications, in a statement to Threatpost via email:

“In an era where we all blindly trust our technology suppliers and gladly store all our private and most coveted secrets on someone’s cloud, a reminder is necessary that these incidents might happen even to the best (Amazon.)”

Threatpost: Latest News

Student Loan Breach Exposes 2.5M Records