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.9.x #14709

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.9.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

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.

@hashicorp-cla
Copy link

hashicorp-cla commented Mar 24, 2022

CLA assistant check
All committers have signed the CLA.

@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:55 Inactive
@vercel vercel bot temporarily deployed to Preview – vault March 24, 2022 23:55 Inactive
@akshya96 akshya96 requested review from a team March 24, 2022 23:56
@vercel vercel bot temporarily deployed to Preview – vault March 25, 2022 16:53 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 25, 2022 16:53 Inactive
@vercel vercel bot temporarily deployed to Preview – vault March 28, 2022 18:00 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 28, 2022 18:00 Inactive
@vercel vercel bot temporarily deployed to Preview – vault March 29, 2022 16:08 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 29, 2022 16:08 Inactive
@vercel vercel bot temporarily deployed to Preview – vault March 29, 2022 20:10 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 29, 2022 20:10 Inactive
@akshya96 akshya96 force-pushed the backport/Vault-4010FixHelpPanic/readily-perfect-leopard branch from 1da324d to 326af32 Compare March 29, 2022 22:19
@vercel vercel bot temporarily deployed to Preview – vault March 29, 2022 22:19 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 29, 2022 22:19 Inactive
@akshya96 akshya96 force-pushed the backport/Vault-4010FixHelpPanic/readily-perfect-leopard branch from 326af32 to d24f761 Compare March 29, 2022 22:23
@vercel vercel bot temporarily deployed to Preview – vault March 29, 2022 22:23 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 29, 2022 22:23 Inactive
@akshya96 akshya96 force-pushed the backport/Vault-4010FixHelpPanic/readily-perfect-leopard branch from d24f761 to 7f395ac Compare March 29, 2022 22:24
@vercel vercel bot temporarily deployed to Preview – vault March 29, 2022 22:24 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 29, 2022 22:24 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 29, 2022 22:25 Inactive
@vercel vercel bot temporarily deployed to Preview – vault March 29, 2022 22:25 Inactive
@akshya96 akshya96 merged commit ee2ef35 into release/1.9.x Mar 29, 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

4 participants