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

x/vulndb: potential Go vuln in github.com/swaggo/http-swagger: CVE-2024-25712 #2547

Closed
GoVulnBot opened this issue Feb 11, 2024 · 1 comment
Assignees

Comments

@GoVulnBot
Copy link

CVE-2024-25712 references github.com/swaggo/http-swagger, which may be a Go module.

Description:
http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been uploaded (via httpSwagger.WrapHandler and *webdav.memFile) can subsequently be accessed via a GET request. NOTE: this is independently fixable with respect to CVE-2022-24863, because (if a solution continued to allow PUT requests) large files could have been blocked without blocking JavaScript, or JavaScript could have been blocked without blocking large files.

References:

Cross references:

See doc/triage.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/swaggo/http-swagger
      vulnerable_at: 1.3.4
      packages:
        - package: n/a
cves:
    - CVE-2024-25712
references:
    - web: https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html
    - web: https://github.com/swaggo/http-swagger/releases/tag/v1.2.6

@neild neild self-assigned this Feb 28, 2024
@neild
Copy link
Contributor

neild commented Feb 28, 2024

Duplicate of #427

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

2 participants