Skip to content
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

Swagger interface allows the injection of JavaScript code #613

Open
catalinapopa-uipath opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@catalinapopa-uipath
Copy link

Hello,
I've come across this security issue with flasgger.

Swagger interface allows the injection of JavaScript code, which can be injected using the remote Swagger configUrl and url. As a result, someone could execute arbitrary JavaScript code in the context of the domain that hosts the swagger file.

Examples:

I've tried to remove the query parameters and to reset the values for queryConfig from flasgger\ui3\static\swagger-ui-bundle.js.map
but did not help.

How can I remove completely query parameters from swagger?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant