-
Notifications
You must be signed in to change notification settings - Fork 6
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
Improvements and bug fixes #87
base: main
Are you sure you want to change the base?
Conversation
const stats = await rawStatistics | ||
.find() | ||
.project<Statistics>({ | ||
adapters: { [name]: 1 }, |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
.find() | ||
.project<Statistics>({ | ||
adapters: { [name]: 1 }, | ||
versions: { [name]: 1 }, |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
.find() | ||
.project<Statistics>({ | ||
adapters: { [name]: 1 }, | ||
versions: { [name]: 1 }, |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name is now checked against some regexes that ensure it can only be a valid adapter name. These names can't be used for prototype pollution or similar attacks.
.project<Statistics>({ | ||
adapters: { [name]: 1 }, | ||
versions: { [name]: 1 }, | ||
date: 1, |
Check failure
Code scanning / CodeQL
Remote property injection High
user-provided value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name is now checked against some regexes that ensure it can only be a valid adapter name. These names can't be used for prototype pollution or similar attacks.
…rough a stack trace Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Closes #60