Issue 104: API vulnerabilities at Twitter and Grandstream, mTLS in AWS API Gateway, Application Security Podcast 📻

The Latest API Security News, Vulnerabilities and Best Practices
Issue: #104
API vulnerabilities at Twitter and Grandstream, mTLS in AWS API Gateway, Application Security Podcast
This week, we check out the recent API-related vulnerabilities at Twitter and Grandstream Networks, the newly added support for mutual TLS (mTLS) in AWS API Gateway, and the API security episode in the Application Security Podcast.
Vulnerability: Twitter
 

A misconfiguration in the Twitter developer portal caused browsers to cache API keys, account access tokens, and account secrets.

Twitter API key caching note

 

It is highly unlikely that the vulnerability has been exploited. Not only would attackers have to had known about the vulnerability, they would also have needed physical access to the computers of their victims. That being said, this flaw could potentially had leaked these secrets on shared computers.

To avoid issues like this one, make sure you never cache any sensitive data on client-side.

Vulnerability: Grandstream Networks
 

Grandstream Networks is a global provider for IP video and voice services as well as WiFi and related services and equipment, and they operate in over 150 countries around the world.

The about 5 million Grandstream devices and services are managed in their GWN.Cloud management platform. Researchers from Pen Test Partners took a look at the platform and found vulnerabilities in the APIs behind it.

The web UI used an API to change device and network settings. When a user applied changes, the web UI invoked a POST operation where the networkIds field in the JSON payload contained the ID of the network to be configured:

POST /app/user/save HTTP/1.1
Host: www.gwn.cloud
Connection: close
Content-Length: 72
Accept: application/json, text/plain, */*
Origin: https://www.gwn.cloud
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36
Content-Type: application/json;charset=UTF-8
Referer: https://www.gwn.cloud/account/users
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: SESSION=7672dd7d-58a7-47f2-8bbc-3534108e4987

{"email":"egw@mailinator.com",
"roleId":2,"
networkIds":[
16089
],

The problem was that this API never checked if the user was actually the owner of the network or in any way authorized to give access to it. Anyone could change settings of any network managed in through the Grandstream portal.

To make matters worse, the IDs were also sequential integers, making it possible to enumerate through them, and change settings and retrieve information, such as:

  • View and change WiFi passwords
  • Switch off all devices
  • Get information on access points
  • Get information on WiFi clients (computer or phone name)
  • Get SSH passwords of all devices
  • Get system logs
  • Enable URL access log (all URLs clients have visited)

This is a classic example of the Broken Object-Level Authorization (BOLA / IDOR) vulnerability, which is the number one in OWASP API Security Top 10). To avoid it:

  • Ensure that you perform authorization checks on object access.
  • Avoid sequential identifiers.
Tools: mutual TLS support in AWS API Gateway
 

Amazon has finally added mutual certificate authentication option (mutual TLS) to AWS API Gateway .

If your API is hosted in AWS and you use custom domain endpoints, you can upload your certificates and have API clients authenticate that way. You can still continue to use JWT and other mechanisms in addition to mTLS.

tls8
Podcast: API security at the AppSec Podcast
 

If you are not a subscriber of the Application Security Podcast, you should definitely check it out. Every week, the hosts Chris Romeo and Robert Hurlbut have a guest and discuss a specific area of application security.

I took part in their latest episode and we had a lovely discussion of API Security, what makes it different from web application security, top threats, most effective counter-measures, and lots of real life stories.

 
dmitry_apisec-1  

Dmitry Sotnikov

APIsecurity.io

 
Thanks for reading.

That's it for today. If you have any feedback or stories to share, simply reply to this email.

Please forward the newsletter to your friends and colleagues who might benefit from it.

 
42Crunch Ltd   71-75 Shelton Street  Covent Garden  London  Greater London   WC2H 9JQ   United Kingdom
You received this email because you are subscribed to API Security News from 42Crunch Ltd.

Update your email preferences to choose the types of emails you receive or Unsubscribe from all future emails  
 
 

Older messages

Issue 102: Vulnerabilities in Facebook and campaign apps, creating defensible APIs 🛡️

Thursday, September 24, 2020

Hi, today we look at a couple of recent API vulnerabilities, a new API design book, and APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #102 Vulnerabilities in

Issue 101: Vulnerabilities in Giggle, Google Cloud Platform, SonicWall, New Relic, Tesla 🚗

Thursday, September 17, 2020

Hi, today we cover 5 recent API vulnerabilities, IDOR cheatsheet & 2 upcoming events APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #101 Vulnerabilities in

API Security advice from top industry experts | Nano Leaf Giveaway! 🎆

Thursday, September 10, 2020

Hi, in our centennial edition we hear API security advice from 12 top industry experts! APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #100 API Security advice

Issue 99: API flaws in the Mercedes-Benz app and Russian inter-bank money transfer

Friday, September 4, 2020

Hi, this week we look at two recent API vulnerabilities, upcoming ACS 2020, and IIoT APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #99 API flaws in the Mercedes

Issue 98: APIs as the next frontier in cybercrime

Thursday, August 27, 2020

Hi, today we look at a couple recent vulnerabilities, what makes APIs such a target, an APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #98 APIs as the next

You Might Also Like

New U.S. DoJ Rule Halts Bulk Data Transfers to Adversarial Nations to Protect Privacy

Wednesday, January 1, 2025

THN Daily Updates Newsletter cover Full Stack Web Development ($54.99 Value) FREE for a Limited Time This book offers a comprehensive guide to full stack web development, covering everything from core

Detecting Parasites 🪲

Wednesday, January 1, 2025

A newsletter publisher takes on parasite SEO. Here's a version for your browser. Hunting for the end of the long tail • December 31, 2024 Detecting Parasites Our year-end award for best blog post

Final Chance to Claim Your Bonus Gift 🎁

Tuesday, December 31, 2024

Just sign up to VC+ by January 1st and we'll include a free gift. View email in browser OFFER ENDS JANUARY 1ST Last Chance to Claim Your Free Gift! The Global Forecast Series, presented by Inigo,

Top 5 of 2024, Ninja, Deploying on AWS, and More

Tuesday, December 31, 2024

\#1: Build Captivating Display Tables With Great Tables #662 – DECEMBER 31, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo A lot has happened in the Python ecosystem in 2024 and with our final

Daily Coding Problem: Problem #1654 [Hard]

Tuesday, December 31, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quora. Word sense disambiguation is the problem of determining which sense a word takes

🐶 Robot Pets Are Making a Comeback — Blu-ray Players Will Soon Be Almost Gone

Tuesday, December 31, 2024

Also: The Issue With EVs Is That They're Doing Too Much, and More! How-To Geek Logo December 31, 2024 Did You Know In Western nations, people celebrate the New Year at the start of the Gregorian

Charted | What Made the News in America in 2024 📊

Tuesday, December 31, 2024

Election-related events and crime dominated the news according to Google's yearly search data drop. View Online | Subscribe | Download Our App FEATURED STORY What Made the News in America in 2024

️🚨 New Windows security bug - what to know

Tuesday, December 31, 2024

LG's AI laptops; Free Apple TV+; Life-saving smartwatch -- ZDNET ZDNET Tech Today - US December 31, 2024 Windows 11 updates New Windows 11 24H2 bug could block future security updates - see

End of Year Sale

Tuesday, December 31, 2024

Discount for the end of the year Sébastien Dubois DeveloPassion's Newsletter End of Year Sale By Sebastien Dubois • 31 Dec 2024 View in browser View in browser I'm launching a sale for the end

Post from Syncfusion Blogs on 12/31/2024

Tuesday, December 31, 2024

New blogs from Syncfusion What's New in WPF Diagram: 2024 Volume 4 By Sarathkumar V This blog explains the new features and enhancements added in the Syncfusion WPF Diagram Library for the 2024