-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use swagger as the source for targets #4833
base: master
Are you sure you want to change the base?
Conversation
I appreciate your effort here, though, how realistic is the scenario where user gets a swagger.json with properly filled example(s)? |
Hi @stamparm . Thanks for your comment. Examples(s) are not required by the swagger spec but it is generally good practice to add them. Adding them has other advantages e.g. Swagger UI will prefill requests from the examples for users browsing and trying your APIs. It is a small sample size but of the two applications I'm working on in my company, one had full examples already and the other had a handful missing which I was able to add in a few minutes. If an example is missing a warning is printed and that API is skipped. Other APIs with full examples will still be scanned. |
Please add this, it is very useful |
Can you please add more description, I want to use it from your repo even though it is not merged |
I tried this, it has bugs + there is no document or something that tells how it works + it doesn't directly work when a swagger is supplied + it doesn't run after doing everything(getting rid of bugs). |
While I think you shouldnt find such swagger files in production, I like the idea for security tests while development. |
Parse a JSON swagger document describing all APIs, for possible targets. Specify the swagger document using the --swaggerFile option.
The swagger must contain examples which sqlmap will use as parameter values to inject.
Addresses issue #3140