DEV Community

Intesar Shannan Mohammed
Intesar Shannan Mohammed

Posted on

Best Practices for Securing Your Vulnerable REST APIs

Why API security is a common problem. Most web and mobile apps are security tested at some point but APIs hardly get any attention. This means you may have vulnerabilities in your production APIs.

For example, let’s say you have a fintech application. It does things like accounts, transfers, etc. It has mobile/web UIs for performing these operations. You might have tested all the UI paths are only accessible to an authenticated user. Sometimes API endpoint like the one below is left unsecured because without realization and any hacker/bot can pick it up and continuously get a feed of recent transactions out of your system. The only way to fix these kinds of flaws is to detect them before they’re exploited.

Example endpoint with the flaw:
GET: /transactions - Any bot can access it without authentication because it has a broken authentication flaw.

One easy way to detect an OWASP API2 vulnerability or security flaw in your APIs is to use open-source tools like Burp and EthicalCheck. Using these tools is very simple. All you need is your OpenAPI Specification/Swagger URL and get an instant report.

Top comments (0)