Tuesday, December 24, 2024
HomeCyber Security NewsOver 3,200 Mobile Apps are Exposing Twitter API Keys that Enable Account...

Over 3,200 Mobile Apps are Exposing Twitter API Keys that Enable Account Take Overs

Published on

SIEM as a Service

Cybersecurity Company CloudSEK examined a broad range of apps for possible data leaks and discovered 3,207 apps leaking Twitter API keys, that can be utilized to gain access to or to take over Twitter accounts.

The report says 230 apps, some of which are unicorns, were leaking all 4 Auth Creds and can be used to completely take over their Twitter Accounts to carry out critical actions that include the following:

  • Read Direct Messages
  • Retweet
  •  Like
  • Delete
  • Remove followers
  • Follow any account
  • Get account settings
  • Change display picture

How Does Twitter API Work?

 Generally, an application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, that offers a service to other pieces of software.

- Advertisement - SIEM as a Service

The Twitter API is a set of programmatic endpoints that can be used to understand or build the conversation on Twitter. This API allows finding and retrieving, engaging with, or creating a variety of different resources like Tweets, Users, Spaces, Direct Messages, Lists, Trends, Media, and Places.

The Twitter API provides direct access to a Twitter account. Sending passwords with each request to the API is not an efficient and secure method.

Therefore, OAuth tokens are used by the Twitter API. OAuth (“Open Authorization”) is an open standard for access delegation, commonly used as a means to grant API access without using the password each time. This standard is also used by Amazon, Google, Facebook, and Microsoft

Building a Twitter Bot Army

Usually, while developing a mobile application, developers use the Twitter API for testing. At that time, they save the credentials within the mobile application at locations such as:

  • resources/res/values/strings.xml
  • source/resources/res/values-es-rAR/strings.xml
  • source/resources/res/values-es-rCO/strings.xml
  • source/sources/com/app-name/BuildConfig.java

These credentials are not removed before deploying them in the production environment occasionally. Once the app gets uploaded to the play store, the API secrets are there for anyone to access.

Finally, a threat actor can merely download the app and decompile it to get the API credentials. Thus, from here bulk API keys and tokens can be harvested to prepare the Twitter bot army.

According to CloudSEK, threat actors would use these exposed tokens to create a Twitter army of verified (reliable) accounts with large numbers of followers to promote fake news, malware campaigns, cryptocurrency scams, etc.

CloudSEK says the impacted applications include, apps between 50,000 and 5,000,000 downloads, including city transportation companions, radio tuners, book readers, event loggers, newspapers, e-banking apps, cycling GPS apps, and more.

How to Protect Against the Attacks?

  • Standardizing Review Procedures: Make sure accurate versioning
  • Hiding Keys: Variables in an environment are alternate means to refer to keys and disguise them
  • Rotate API keys: Rotating keys can help reduce the threat posed by leaked keys

Therefore, it is essential for organizations to secure their social media data and prevent their verified handles from being used to spread misinformation.

You can follow us on Linkedin, Twitter, Facebook for daily Cybersecurity and hacking news updates.

Gurubaran
Gurubaran
Gurubaran is a co-founder of Cyber Security News and GBHackers On Security. He has 10+ years of experience as a Security Consultant, Editor, and Analyst in cybersecurity, technology, and communications.

Latest articles

Skuld Malware Using Weaponized Windows Utilities Packages To Deliver Malware

Researchers discovered a malware campaign targeting the npm ecosystem, distributing the Skuld info stealer...

BellaCiao, A new .NET Malware With Advanced Sophisticated Techniques

An investigation revealed an intrusion in Asia involving the BellaCiao .NET malware, as the...

Malicious Apps On Amazon Appstore Records Screen And Interecpt OTP Verifications

A seemingly benign health app, "BMI CalculationVsn," was found on the Amazon App Store,...

Lazarus Hackers Using New VNC Based Malware To Attack Organizations Worldwide

The Lazarus Group has recently employed a sophisticated attack, dubbed "Operation DreamJob," to target...

API Security Webinar

72 Hours to Audit-Ready API Security

APIs present a unique challenge in this landscape, as risk assessment and mitigation are often hindered by incomplete API inventories and insufficient documentation.

Join Vivek Gopalan, VP of Products at Indusface, in this insightful webinar as he unveils a practical framework for discovering, assessing, and addressing open API vulnerabilities within just 72 hours.

Discussion points

API Discovery: Techniques to identify and map your public APIs comprehensively.
Vulnerability Scanning: Best practices for API vulnerability analysis and penetration testing.
Clean Reporting: Steps to generate a clean, audit-ready vulnerability report within 72 hours.

More like this

Skuld Malware Using Weaponized Windows Utilities Packages To Deliver Malware

Researchers discovered a malware campaign targeting the npm ecosystem, distributing the Skuld info stealer...

BellaCiao, A new .NET Malware With Advanced Sophisticated Techniques

An investigation revealed an intrusion in Asia involving the BellaCiao .NET malware, as the...

Malicious Apps On Amazon Appstore Records Screen And Interecpt OTP Verifications

A seemingly benign health app, "BMI CalculationVsn," was found on the Amazon App Store,...