Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.1k
Use swagger as the source for targets#4833
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
stamparm commentedNov 5, 2021
I appreciate your effort here, though, how realistic is the scenario where user gets a swagger.json with properly filled example(s)? |
donnd-t commentedNov 12, 2021
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. |
arnoldasr commentedSep 9, 2022
Please add this, it is very useful |
sahin52 commentedOct 18, 2022
Can you please add more description, I want to use it from your repo even though it is not merged |
sahin52 commentedOct 18, 2022
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). |
janmaterne commentedOct 24, 2022
While I think you shouldnt find such swagger files in production, I like the idea for security tests while development. |
Uh oh!
There was an error while loading.Please reload this page.
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