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

Allow multiple JWT tokens on different locations #86

Open
gl4nce opened this issue Oct 21, 2022 · 3 comments
Open

Allow multiple JWT tokens on different locations #86

gl4nce opened this issue Oct 21, 2022 · 3 comments

Comments

@gl4nce
Copy link

gl4nce commented Oct 21, 2022

Would be a nice feature, if JWTs in multiple locations can appear with an option to select one for testing.

I'm currently testing an website which is sending two JWTs (access and refresh token) on the same time.

Example request:

GET /api/v1/getpage HTTP/1.1
Host: xyz
Cookie: refresh=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Connection: close

As you can see, there are JWTs in cookie and authorization header. jwt_tool doesn't work in this case and quits with: Too many tokens! JWT in more than one place: cookie, header, POST data

@OXERY
Copy link

OXERY commented Apr 16, 2024

If anybody stumbles upon this (after all this time) - one can use the Burp Addon ReShaper with the "Then"-Action Set-Value, e.g. using a cookie as source and set a header with the identical value. Match/Replace is also possible.

@gl4nce
Copy link
Author

gl4nce commented Apr 16, 2024

If anybody stumbles upon this (after all this time) - one can use the Burp Addon ReShaper with the "Then"-Action Set-Value, e.g. using a cookie as source and set a header with the identical value. Match/Replace is also possible.

Thanks for this suggestion. Nevertheless, linking to login protected website isn't very helpful.

@OXERY
Copy link

OXERY commented Apr 16, 2024

@gl4nce Thanks, I updated the link. Could you please also change/remove the link in your quote? Thanks!

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

No branches or pull requests

2 participants