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

Backport of Vault-4010 Unauthenticated panic when processing "help" requests into release/1.10.x #14711

Merged

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #14704 to be assessed for backporting due to the inclusion of the label backport/1.10.x.

The below text is copied from the body of the original PR.


Approved PR on enterprise: https://github.com/hashicorp/vault-enterprise/pull/2556
Jira: https://hashicorp.atlassian.net/browse/VAULT-4010
The Vault server's wrapHelpHandler function incorrectly processes the requests sent to the Vault server. It assumes that all request URL paths start with the "/v1/" string, and when they do not, it panics. This panic is then recovered by the Go's HTTP server and while the server does not crash, this process is likely resource exhaustive and can be used for a denial of service attack.
Solution: Fix the Vault's help request processing, so it doesn't panic when the request URL path does not start with the "/v1/" prefix. Validate it before calling the handleHelp function. This will prevent a possibility of triggering an unauthenticated panic in a Vault server which could be used for a denial of service attack.

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/Vault-4010FixHelpPanic/frankly-loving-egret branch from 7aa00f9 to 25a6152 Compare March 24, 2022 19:19
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 24, 2022 19:19 Inactive
@vercel vercel bot temporarily deployed to Preview – vault March 24, 2022 19:22 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 24, 2022 23:04 Inactive
@vercel vercel bot temporarily deployed to Preview – vault March 24, 2022 23:04 Inactive
@akshya96 akshya96 merged commit a2f79c3 into release/1.10.x Mar 24, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants