Cross-Site Scripting in swagger-ui
Affected versions of `swagger-ui` contain a cross-site scripting vulnerability in the key names of a specific nested object in the JSON document. ## Proof of Concept The vulnerable object structure is: ``` { "definitions": { "arbitraryVal": { "properties": { "<INJECTABLE_KEY_NAME>": "LoremIpsum" } } } } ``` Malicious JSON documents can be loaded in by providing a URL to them in the `url` query string parameter. ## Recommendation Update to version 2.2.1 or later.
beschreibt (1)
Zugehörige CVEs.
| ID | Schweregrad | ausnutzbar | ||
|---|---|---|---|---|
| CVE-2016-5682US | medium6.1 | — | ||
Swagger-UI before 2.2.1 has XSS via the Default field in the Definitions section. | ||||
Referenzen
Externe Belege — Patches, Meldungen, Analysen.
- https://community.rapid7.com/community/infosec/blog/2016/09/02/r7-2016-19-persistent-xss-via-unescaped-parameters-in-swagger-uiWEB
- https://github.com/swagger-api/swagger-uiPACKAGE
- https://github.com/swagger-api/swagger-ui/issues/1865WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-5682ADVISORY
- https://www.npmjs.com/advisories/126WEB
Advisories wie diese benennen die exponierten Produkte, die Angreifer auf Ihrer Angriffsfläche ins Visier nehmen. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan