Issue 112: Vulnerability in Paginator, Microsoft RESTLer, talks on API authentication and JWT security 🗝️

The Latest API Security News, Vulnerabilities and Best Practices
Issue: #112
Vulnerability in Paginator, Microsoft RESTLer, talks on API authentication and JWT security
This week, we have the recently reported API vulnerability in Duffel’s Paginator, a new API fuzzer from Microsoft Research, an upcoming JWT security webinar, and a recorded talk on approaches to API authentication.
Vulnerability: Paginator
 

Peter Stöckli from Alphabot Security has posted a write-up on the API vulnerability he found in Duffel’s Paginator (CVE-2020-15150).

Duffel is a UK-based startup in that offers a flight searching and booking platform that other businesses can build their sites on. They maintain an Elixir-based open-source project called Paginator. This component helps them and other products implement pagination in API calls. Instead of retrieving all values, API consumers can retrieve only a subset of them. A “cursor” value points the place where they left off before:

This cursor value is not a random string but a Base64-encoded binary serialized Erlang external term format (ETF). ETFs can be pretty much anything, from a simple string to a complete executable function. In Duffel’s case, Paginator blindly trusted the API input, allowing Stöckli to execute arbitrary code on the target system, such as starting xcalc and printing out the stacktrace.

A prime example of the OWASP API8:2019 — Injection vulnerability. Lessons learned here:

  • Be very careful when using external components that expose APIs.
  • API inputs cannot be trusted: instead of coming from your own components, API calls might originate from an attacker.
  • Beware of using interpreters on strings that originate from API input.
  • Always strictly define API parameters and payloads, including string patterns, and enforce them.
Tools: RESTLer
 

Microsoft Research has made their API fuzzing project, RESTLer, opensource.

Just like the other two REST API fuzzers that we have covered before, RESTLer takes the OpenAPI contract file as the API definition it bases the generated tests on. However, the subsequent scenario is very different:

  • RESTLer tries to automatically infer multi-step scenarios. For example, it looks for outputs from one operation that work as inputs for another one, or incompatible operation sequences that always fail. It then executes those scenarios while trying various parameters within allowed ranges, and reports the calls that resulted in errors.
  • Dredd generates calls within the limitations of the defined OpenAPI contract and reports the responses that do not match the defined responses.
  • 42Crunch API Contract Conformance Scan generates tests for both request and response validation. It sends purposefully invalid requests (wrong paths, operations, headers, parameters, payloads…) and reports if they do not get rejected. Just like Dredd, it also reports responses that do not match the contract.

Read the details on how RESTLer works from the original research paper. This whitepaper showcases some real-life results of RESTLer locating bugs in GitLab APIs.

Webinar: How to Best Leverage JWTs for API Security
 

Next Thursday, December 10, at 8 AM (PST) Isabelle Mauny and I, Dmitry Sotnikov, are hosting a webinar on JWT and API security. We cover common JWT attacks, security best practices, and technology that can be used to protect your APIs against them.  

For more details and to sign up for the webinar, click here.

Video: Serving the right recipe for API authentication
 

Philippe De Ryck has posted the slides and the recording from his recent talk “Serving the right recipe for API authentication” at the Belgian Visual Studio User Group (Visug).

There are many ways how API authentication can be implemented, and your own scenario will determine which is the right one for you. De Ryck covers the main options used in the industry today, how they work, when and where they are applicable, as well as their pros and cons:

  • Basic authentication
  • Shared secret
  • HMAC
  • Asymmetric signatures
  • Mutual TLS (mTLS)
  • Cookies
  • Tokens
  • OAuth2
 
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 110: API flaws in Bumble and COVID-KAYA, Forrester on API security, ASC 2020 talks 🖥️

Thursday, November 19, 2020

Hi, today we look at two recent API vulnerabilities, 2 session recordings, a webinar & APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #110 API flaws in

Issue 109: API token best practices, Dredd, IDOR hunting tips 🔬

Friday, November 13, 2020

Hi, this week we look at an API vulnerability leaking US voter data, API key best practices APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #109 API token best

Issue 108: API vulnerabilities in Thrillophilia and GitLab ✉️

Thursday, November 5, 2020

Hi, today we look at a couple recent API flaws, new OpenID Connect course, recent tool APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #108 API vulnerabilities in

Issue 107: Vulnerabilities in Waze, AWS, and NHS COVID-19 app, Forrester App Sec Tech Tide 🌊

Thursday, October 29, 2020

Hi, today we look into details of 3 recent API flaws, plus Forrester names API Security APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #107 Vulnerabilities in

Issue 106: API flaws at GitLab and Grindr, APICheck, API World and apidays conferences next week 👩‍🏫

Thursday, October 22, 2020

Hi, this week we have 2 API vulnerabilities, two conferences, one tool and one intro APIsecurity.io The Latest API Security News, Vulnerabilities and Best Practices Issue: #106 API flaws at GitLab and

You Might Also Like

Dark forest, bad art and paying to bike

Saturday, December 28, 2024

Neologism #24, 28.12.2024 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Weekend Reading — Happy New Year! 🥳

Saturday, December 28, 2024

Vitalis 🇺🇦 The most original and unusual landmark in Odesa, which has become a symbol of the creativity of Odesa residents. Tech Stuff Cursor I really really like Cursor. I had a great time using VS

Daily Coding Problem: Problem #1651 [Hard]

Saturday, December 28, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. You are going on a road trip, and would like to create a suitable music playlist.

📺 There's Still A Place for Universal Remotes — 10 Apps I Always Install on a New Mac

Saturday, December 28, 2024

Also: How to Add Emails to Your Tasks To-Do List in Gmail, and More! How-To Geek Logo December 28, 2024 Did You Know In December 2014, two con men from Girona, Spain, agreed to sell a fake Francisco de

Ranked | The World's Top 30 Countries, by Automobiles Manufactured 🚙

Saturday, December 28, 2024

In 2023, China led global car production, contributing nearly a third of total output. Which countries followed in this competitive industry? View Online | Subscribe | Download Our App FEATURED STORY

🐍 New Python tutorials on Real Python

Saturday, December 28, 2024

Hey there, There's always something going on over at Real Python as far as Python tutorials go. Here's what you may have missed this past week: Learn From 2024's Most Popular Python

15,000+ Four-Faith Routers Exposed to New Exploit Due to Default Credentials

Saturday, December 28, 2024

THN Daily Updates Newsletter cover Resilient Cybersecurity ($39.99 Value) FREE for a Limited Time Reconstruct your defense strategy in an evolving cyber world Download Now Sponsored LATEST NEWS Dec 28,

Hands Down One Of The Best Cards For 2025 Offering 0% interest until 2026

Saturday, December 28, 2024

iPhoneLife Logo Sponsored email sent by iPhone Life Hands Down One Of The Best Cards For 2025 Offering 0% interest until 2026 If you have outstanding credit card debt, getting a new 0% intro APR credit

📧 What Rewriting a 40-Year-Old Project Taught Me About Software Development

Saturday, December 28, 2024

​ What Rewriting a 40-Year-Old Project Taught Me About Software Development Read on: m​y website / Read time: 7 minutes The .NET Weekly is brought to you by: As the year wraps up, it's clear API

This Week in Rust #579

Saturday, December 28, 2024

Email isn't displaying correctly? Read this e-mail on the Web This Week in Rust issue 579 — 25 DEC 2024 Hello and welcome to another issue of This Week in Rust! Rust is a programming language