SBN

The Absolute Beginner’s Guide to API Security 3/4 – FireTail Blog


Nov 21, 2025 – Jeremy Snyder – Hacker exploiting a mass assignment vulnerability‍OWASP API Security Top 10 6-8Article 3 of 4 see this article for the first in the series‍Traditionally, IT and security teams have been separate from the rest of the organization. The security role relied on the aggregation of data and logs from all possible attack surfaces into the Security Operations Center (SOC) for analysis and evaluation. Enter DevSecOps, a relatively new trend in the IT world. Where agile methodology and DevOps have changed how application development teams operate, DevSecOps has also led to a shift in how organizations do security. Essentially, DevSecOps is about introducing security practices earlier in the software development lifecycle (SDLC). This requires very close collaboration between security experts and the teams ultimately responsible for delivering code.In cloud computing, this has led to the rise of the Cloud Center of Excellence (CCOE), a team which includes experts from across the organization: from security, architecture, and every technical function in between. One organization I worked with called it their Guardians of the Cloud bi-weekly meeting, but the purpose remained the same: define which best practices should be prioritized, monitored and enforced. If you’re looking to set up a CCOE, you’re going to need to understand the best practices that will make your organization more secure:‍6. Mass Assignment‍Mass Assignment is about exploiting a vulnerability in an API endpoint receiving a data object by adding new parameters that allow for unintended application behavior or privilege escalation. This vulnerability is also sometimes called object injection or autobinding, depending on the programming language being used. Say a user of a rideshare app discovers that an endpoint allowing them to change their phone number also allows them to change how many credits they have in their account. Let’s see how it would play out: The user discovered the vulnerability by inspecting the data schema of the user object when it is returned as part of the “my profile” section of the rideshare app. On that page, the user object being returned by the backend includes a {“credits”: 0} parameter. By mocking an API call on the endpoint that allows the user to change their phone number and including {“credits”: 9999} in the request query, the user is able to trick the app into giving them a lot more credits than they should have.The Mass Assignment vulnerability is found on the endpoint handling the “my profile” section of the rideshare app. This endpoint is not checking if the user making the request is authorized to modify the “credits” parameter on their user account. To avoid this type of exploit, it is important to clearly define which object parameters should be modifiable by the user, and which ones should not. This definition can then be included and enforced in the API contract.‍7. Security Misconfiguration‍Security Misconfiguration is a rather large vulnerability category. It includes configurations that pertain directly to the API & application higher up in the technology stack but also the infrastructure lower down in the stack.There is a long list of areas where potential misconfigurations can slip through. Here are some of the most common sources of security misconfigurations:1) Using insecure transport protocols: Transport Layer Security (TLS) version 1.3 was released in 2018 and is the most up to date version.2) HTTP methods: Don’t allow for unnecessary HTTP methods on your endpoints. There are more than you think. 3) Require the latest HTTP security headers: HTTP Strict Transport Security (HSTS), Content Security Policy (CSP), and X-Frame-Options.4) Overly descriptive error messages – make sure when your endpoints return error messages to not expose anything about how the underlying application works. Keep messages short and generic.5) Enforce the use of HTTPS.6) Use a Cross-Origin resource sharing (CORS) policy that restricts data flows to only pages or domains which should communicate.7) Infrastructure misconfigurations by not following the security pillar of the well-architected framework.‍8. Injection‍As wide as the previous category was, the Injection vulnerability is fairly narrow. Many people have heard of SQL injections. They can be catastrophic beyond simple data breaches as they can very quickly take down the data servers that power mission-critical services. There are ways to configure your API or application logic that can stop code or command injections from going through. If none of these are implemented, then malicious users may be able to interact with your infrastructure through your vulnerable API.Command and code injection events often include predictable patterns that can easily be identified and blocked. Don’t let this one be your security team’s oversight.