POST on /auth/token/renew/self
endpoint with negative increment in payload causes internal server error
#11311
Labels
core
Issues and Pull-Requests specific to Vault Core
Describe the bug
Making a POST request on
/auth/token/renew/self
with specific payload causes internal server errorTo Reproduce
Hi, I was fuzzing vault and found this bug. To reproduce it, just run
vault server -dev
and make a request. The request is described in enclosed zip (single JSON file inside). The JSON has also thecurl
formated of the request, however, the request contains some wild unicode characters that your terminal may not like (at least mine does not 😄). Therefore is better to use theresender
utility that I made (along with the fuzzer). You may find it in my repo (github.com/matusf/openapi-fuzzer), with all installation instructions.This time I fuzzed vault with supplied
X-Vault-Token
header, so to reproduce the crash you will need to add the root token toopenapi-fuzzer-resender
as well. There is a flag for that. Run is as follows:auth-token-renew-self.zip
This crash seems to be similat to #11310. They both seem crash because of the increment field value.
See error from request:
In logs: nothing
Expected behavior
Response with non 500 status code.
Environment:
vault status
):vault version
):Vault v1.7.0-rc1 (9af08a1c5f0f855984a1fa56d236675d167f578e)
The text was updated successfully, but these errors were encountered: