Swagger UI
Exploit Swagger
Nuclei template
Find Exposed Swagger
Wordlist
OSINT
Audit endpoints
REST APIBurp Extension
Parse OpenAPI documentation using the OpenAPI Parser BApp
Get versions and their vulnerabilities.

Find old versions of Swagger-ui vulnerable to various XSS attacks - XSSwagger
CVE-2018-25031
Swagger UI 4.1.2 and earlier could allow a remote attacker to conduct spoofing attacks.
Test: /api/docs/?configUrl=https://jumpy-floor.surge.sh/test.json

Repo
Found Swagger try each of the file of the repo
Cookie Stealing
Server with CORS Header
POC: test.json
POC: test.yaml


Could lead to CSS exfiltration
Postman / Scanner

or check source code:
or dev tool

If the swagger is a json file use yq to convert it: pip install yq or apt install yq
You can now import the yaml file inside Postman or use it in scanner like Zap
Postman UsageZAP Scanner & other scanning methodsSOAPi
Other Scanners
Tools & ScannersInteresting Books
Interesting BooksHacking APIs: Breaking Web Application Programming Interfaces A crash course in web API security testing that will prepare you to penetration-test APIs, reap high rewards on bug bounty programs, and make your own APIs more secure.
Black Hat GraphQL: Attacking Next Generation APIs This hands-on book teaches penetration testers how to identify vulnerabilities in apps that use GraphQL, a data query and manipulation language for APIs adopted by major companies like Facebook and GitHub.
Support this Gitbook
I hope it helps you as much as it has helped me. If you can support me in any way, I would deeply appreciate it.
Last updated
