Polski

Cybersecurity

API security

Object-level authorization, rate limits, input validation, CORS and safe tokens.

Article

API security in practice – OWASP API Security Top 10, BOLA, JWT, mass assignment, rate limiting and webhook signatures (NestJS, Express)

The pierogi shop's API serves a mobile app, an in-store kiosk and a courier company's webhooks. We go through the OWASP API Security Top 10 (2023 edition) with working code – object and function level authorization in NestJS, JWT verification with jose, protection against mass assignment, rate limits, signed webhooks with replay protection, safe consumption of third-party APIs and secrets that never reach the logs.

Related articles

Around the topic

In this group: Cybersecurity