Can anyone recommend an open API for testing purposes?
Is there a dummy API for testing/practice?
What tools do you use for API testing at work? What tools would you like to use at work if you had a choice?
Automated Security Testing For REST API's (With Full Sources) - See Comment
Overview
REST API penetration testing is complex due to continuous changes in existing APIs and addition of new APIs. Astra can be used by security engineers or developers as an integral part of their process, so they can detect and patch vulnerabilities in the initial phase of the development cycle. Astra can automatically detect and test login & logout (Authentication API), which makes it easy for anyone to integrate this into CICD pipeline. Astra can take API collection as an input so this can also be used for testing APIs in stand-alone mode.
Attacks Performed
-
SQL Injection
-
Cross-site Scripting
-
Information Leakage
-
Broken Authentication and Session Management
-
CSRF (including Blind CSRF)
-
Rate limit
-
CORS misconfiguration (including CORS bypass techniques)
-
JWT attack
-
Open redirection
Usage
Once you have set up astra, you can use either CLI or web interface to start a scan.
You can use the arguments described in the README as per your need.
Example 1: In order to start a scan for GET api, use the following command.
$python astra.py -u http://localhost
Example 2: In order to start a scan for POST api with request headers, use the following command.
$python astra.py -u http://localhost -m POST --headers '{"token" : "123456789"}' --body '{"name" : "astra"}'
Example 3: Astra also provides a feature to scan all the apis using
Postman collection. Astra automatically detects login and logout apis and prompts the user to verify the apis.
More on reddit.com