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: origin-validation error in github.com/jub0bs/fcors #2807

Closed
1 task done
jub0bs opened this issue May 2, 2024 · 1 comment
Closed
1 task done

x/vulndb: origin-validation error in github.com/jub0bs/fcors #2807

jub0bs opened this issue May 2, 2024 · 1 comment

Comments

@jub0bs
Copy link

jub0bs commented May 2, 2024

Acknowledgement

  • The maintainer(s) of the affected project have already been made aware of this vulnerability.

Description

Some CORS middleware (more specifically those created by specifying two or more origin patterns whose hosts share a proper suffix) incorrectly allow some untrusted origins, thereby opening the door to cross-origin attacks from the untrusted origins in question. For example, specifying origin patterns https://foo.com and https://bar.com (in that order) would yield a middleware that would incorrectly allow untrusted origin https://barfoo.com.

Affected Modules, Packages, Versions and Symbols

Module: github.com/jub0bs/fcors
Package: github.com/jub0bs/fcors
Versions:
  - Introduced: 0.8.0
  - Fixed: 0.9.0
Symbols:
  - AllowAccess
  - AllowAccessWithCredentials
  - FromOrigins
  - Middleware

CVE/GHSA ID

GHSA-v84h-653v-4pq9

Fix Commit or Pull Request

jub0bs/fcors@b5dcb88

References

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/586140 mentions this issue: data/reports: add 2 reports

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

No branches or pull requests

3 participants