DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
  • Chat
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • Testim

      Testim Adds SDK to AI-Based Testing Platform

      IBM AI

      IBM Zones in on DevOps for AI

      Virtana

      Virtual Instruments Changes Name to Virtana to Drive AIOps

      AIOps for Mission Critical Workloads

      What is so Special About AIOps for Mission Critical Workloads?

      Continuous Optimization

      Continuous Optimization: An Idea Whose Time Has Come?

  • Cloud
    • Investing Mobile Device Testing Lab

      Investing in a Mobile Device Testing Lab

      Build Reliable App

      What It Really Takes to Build a Reliable App

      Serverless and GraphQL

      Serverless and GraphQL: Build and Launch at the Speed of Thought

      How Organizations Benefit from AWS App Patterns

      How Organizations Benefit from AWS App Patterns

      Accelerating Cloud Wars

      The Accelerating Cloud Wars

  • Continuous Delivery
    • Harness

      Harness Adds Analytics to CDaaS Platform

      Dell Boomi Dives Into DevOps

      Dell Boomi Dives Into DevOps

      Implement an Effective CI/CD Pipeline

      How to Implement an Effective CI/CD Pipeline

      CloudBees continuous delivery

      CloudBees Advances Continuous Delivery

      OverOps

      OverOps Integrates AI Code Analyzer With CI/CD Platforms

  • Continuous Testing
    • Investing Mobile Device Testing Lab

      Investing in a Mobile Device Testing Lab

      IBN’s Success is Driven by Formulating the Right Test Validation Strategy

      IBN’s Success is Driven by Formulating the Right Test Validation Strategy

      Steps to Ensuring Validity of Your Business-Critical Data

      5 Steps to Ensuring Validity of Your Business-Critical Data

      Agile and DevOps Success Needs Continuous Testing

      Agile and DevOps Success Needs Continuous Testing

      How Continuous Testing Advances Your Business Goals

      How Continuous Testing Advances Your Business Goals

  • DevSecOps
    • Three Ways Developers Can Worry Less About Security

      Three Ways Developers Can Worry Less About Security

      Engineering Approach to DevOps

      The Time Has Come for an Engineering Approach to DevOps

      AWS Application Patterns

      What Are AWS Application Patterns?

      DevSecOps

      Survey Surfaces Uneven Approaches to DevSecOps

      Breaking Down the OWASP API Security

      Breaking Down the OWASP API Security Top 10, Part 1

  • Leadership Suite
    • Solving Technology Skills Gap

      Five Tips for Solving the Technology Skills Gap

      developers

      Developers Are Gaining Clout, and We Need to Pay Attention

      Accelerating Cloud Wars

      The Accelerating Cloud Wars

      ServiceNow, Salesforce and Atlassian Work Together

      Crossing the Ecosystem Boundaries: How ServiceNow, Salesforce and Atlassian Work Together

      CIOs See Dramatic Change Ahead

      CIOs See Dramatic Change Ahead

  • Practices
    • Success of Software Deployments

      Operational Excellence and the Success of Software Deployments

      ServiceNowDevOps

      ServiceNow Makes the DevOps Connection

      Investing Mobile Device Testing Lab

      Investing in a Mobile Device Testing Lab

      Solving Technology Skills Gap

      Five Tips for Solving the Technology Skills Gap

      IT Scale Digital Transformation

      IT Enables Scale in Digital Transformation

  • ROELBOB
    • aspects-of-intimacy

      Aspects of Intimacy

      unintended-consequences

      Unintended Consequences

      Dev-Prod Parity in the Real World

      Dev-Prod Parity in the Real World

      employment-benefits

      Employment Benefits

      self-importance

      A Matter of Self-Importance

  • Toolbox
    • ServiceNowDevOps

      ServiceNow Makes the DevOps Connection

      Testim

      Testim Adds SDK to AI-Based Testing Platform

      The Power of Embedded Analytics and the Build Versus Buy Dilemma

      The Power of Embedded Analytics and the Build Versus Buy Dilemma

      How Organizations Benefit from AWS App Patterns

      How Organizations Benefit from AWS App Patterns

      Engineering Approach to DevOps

      The Time Has Come for an Engineering Approach to DevOps

  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » DevOps Practice » Breaking Down the OWASP API Security Top 10, Part 1

Breaking Down the OWASP API Security

Breaking Down the OWASP API Security Top 10, Part 1

Erez YalonBy Erez Yalon on November 4, 2019 Leave a Comment

As a result of a broadening threat landscape and the ever-increasing usage of APIs, the OWASP API Security Top 10 Project was launched. From the start, the project was designed to help organizations, developers and application security teams become more aware of the risks associated with APIs. This past September, the OWASP API Security Top 10 release candidate (RC) was finalized and published on OWASP.

Related Posts
  • Protego Spearheads Launch of the OWASP Official Serverless Top 10 Project
  • 9 more open source DevOps tools we love
  • API Security: A Key Part of the Bigger Plan
    Related Categories
  • Blogs
  • DevOps Practice
  • DevSecOps
    Related Topics
  • API
  • API security
  • authentication endpoints
  • OWASP
  • secure coding
Show more
Show less

In my previous article, I provided a high-level view of the interaction between API endpoints, modern apps and backend servers, in addition to how they’re different from their traditional browser-based counterparts. I also discussed why this project was so important to the contributors and the industry overall.

In this article, I aim to clarify the first five risks by highlighting some of the possible attack scenarios to help organizations and end-users understand the dangers associated with deficient API implementations. The following discussion follows the same order as found in the OWASP API Security Top 10.

API1:2019 – Broken Object Level Authorization

Attackers can exploit API endpoints vulnerable to broken object level authorization by manipulating the ID of an object sent within the client request. What this means is the client can request information from an API endpoint that they are not supposed to have access to. This attack normally leads to unauthorized information disclosure, modification or destruction of data.

Example attack scenario:

Say for instance there is an e-commerce platform that provides financial and hosted services to a group of different online stores (shops). The platform provides an API used to gain access to revenue charts for each of their hosted stores, and each store should only have access to their own revenue charts. However, while inspecting the client request from a single store who wants to gain access to their own revenue charts, an attacker can identify (find) the API endpoint for those revenue charts and identify the URL in use, for example /shops/{shop name}/revenue_data.json. Using the names of other stores being hosted on the e-commerce platform, an attacker can create a simple script to modify the {shop name} ID object in subsequent requests, and gain access to the revenue charts of every other store.

API2:2019 – Broken Authentication

Being different than authorization discussed above, authentication on the other hand is a complex and confusing mechanism concerning APIs. Since authentication endpoints are exposed to anyone by design, the endpoints responsible for user-authentication must be treated differently from regular API endpoints and implement extra layers of protection for credential stuffing attempts, in addition to brute force password and token guessing attacks.

Example attack scenario:

Suppose an attacker obtained a list of leaked username/password combinations as the result of a data breach from another organizations. If the API endpoint handling authentication does not implement brute force or credential stuffing protections such as CAPTCHA, rate-limiting, account lockout, etc., an attacker can repeatedly attempt to gain access using the list of username/password combinations to determine what combination(s) work.

API3:2019 – Excessive Data Exposure

By design, API endpoints often expose sensitive data since they frequently rely on the client app to perform data filtering. Attackers exploit this issue by sniffing the traffic to analyze the responses, looking for sensitive data that should not be exposed. This data is supposed to be filtered on the client app, before being presented to the user.

Example attack scenario:

Image an IoT-based camera surveillance system allows administrators to add a newly-hired security guard as a system user, and the administrator wants to ensure the new user should only have access to certain cameras. These cameras are accessible via a mobile app the security guard uses while at work. The newly hired security guard’s mobile app makes an API request to an endpoint in order to receive data about the cameras and relies on the mobile app to filter which cameras the guard has access to. Although the mobile app only shows the cameras the guard can access, the actual API response contains a full list of all the cameras. Using the sniffed traffic, an attacker can manipulate the API request to show all cameras, bypassing the filtering on the mobile app.

API4:2019 – Lack of Resources and Rate Limiting

It is common to find API endpoints that do not implement any sort of rate limiting on the number of API requests, or they do not limit the type of requests that can consume considerable network, CPU, memory and storage resources. The amount of resources required to satisfy a request greatly depends on the user input and endpoint business logic. Attackers exploit these issues causing denial-of-service attacks and associated endpoint outages.

Example attack scenario:

Let’s say an attacker wants to cause a denial-of-service outage to a certain API that contains a very large list of users. The users’ list can be queried, but the application limits the number of users that can be displayed to 100 users. A normal request to the application would look like this: /api/users?page=1&size=100. In this case, the request would return with the first page and the first 100 users. If the attacker changed the size parameter from 100 to 200,000, it could cause a performance issue on the backend database, since the size parameter in use is so large. As a result, the API becomes unresponsive and is unable to handle further requests from this or any other client.

API5:2019 – Broken Function Level Authorization

Although different than API1 above, exploitation of this issue requires the attacker to send API requests to endpoints that they should not have access to, yet are exposed to anonymous users or regular, non-privileged users. These types of flaws are often easy to find and can allow attackers to access unauthorized functionality. For example, administrative functions are prime targets for this type of attack.

Example attack scenario:

To illustrate this further, imagine during the registration process to a certain application that only allows invited users to join, the mobile app triggers an API request to GET /api/invites/{invite_guid}. GET is a standard HTTP method used to request information from a particular resource. In this case, the response to the GET contains details about the invite, including the user’s role and email address.

Now, say an attacker duplicated the request and manipulated the HTTP method by changing GET to POST. POST is an HTTP method used to send information to create or update a resource. The URL would look like this: POST /api/invites/new/{“email”:”hugo@malicious.com”,”role”:”admin”}. In this case, the attacker easily exploits this issue and sends himself an email invite to create an admin account.

In the context of the five risks above, one could easily image many similar attack scenarios. Those provided were just examples of the nearly unlimited possibilities when attacking vulnerable API implementations. As you can see, the risks above are primarily caused by errors or oversights. I believe these risks could easily be managed or nearly eliminated when organizations improve their secure coding practices, especially when it comes to the way they’re utilizing APIs.

Filed Under: Blogs, DevOps Practice, DevSecOps Tagged With: API, API security, authentication endpoints, OWASP, secure coding

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
Boost Business Agility with Hybrid Cloud and Containers

Boost Business Agility with Hybrid Cloud and Containers

IT and business are changing rapidly. Growth opportunities in new markets, evolving customer behaviors and preferences, increased competitive pressure, and new standards in regulatory compliance are causing organizations to adapt their operations and processes. Even so, rigid legacy IT infrastructure can keep you from adjusting to change and reduce the ... Read More
« AIOps: The Path to Greater Resilience and Uptime
Breaking Up and Making Up: Composable Persistent Storage for Kubernetes »

Live Coverage: KubeCon | CloudNativeCon, San Diego, CA

Click Play to Watch the Digital Anarchist Live Coverage.

Top Stories of the Week

  • View DevOps.com Privacy Policy

Latest from DevOps.com

Operational Excellence and the Success of Software Deploymen...
November 19, 2019 | Chris Tozzi
2019 DevOps Dozen Finalists Announced
November 19, 2019 | Alan Shimel
DevOps Chat: Robotic Process Automation with Tricentis
November 19, 2019 | Mitchell Ashley
ServiceNow Makes the DevOps Connection
November 18, 2019 | Mike Vizard
Investing in a Mobile Device Testing Lab
November 18, 2019 | Dan McFall

Most Read on DevOps.com

2019 DevOps Dozen Finalists Announced
November 19, 2019 | Alan Shimel
Five Microservices Worst Practices
November 13, 2019 | Eric Schabell
Dev-Prod Parity in the Real World
November 13, 2019 | ROELBOB
Serverless and GraphQL: Build and Launch at the Speed of Tho...
November 13, 2019 | Brecht De Rooms
WhiteSource Acquires Renovate to Automate Dependency Updates
November 13, 2019 | Mike Vizard

Upcoming Webinars

Thu 21

Igniting Your Digital Transformation With Microservices

Thu, November 21, 1:00 pm - 2:00 pm EST
Dec 03

Testing and Monitoring and Broken Things

Tue, December 3, 1:00 pm - 2:00 pm