awk Injection via JWT Forgery [HackTheBox - Awkward] @0xdf
awk Injection via JWT Forgery [HackTheBox - Awkward]  @0xdf
Uploaded February 2023 | Updated November 2026, 3 hours ago
In Awkward from HackTheBox, I've got access to an API endpoint where a user's username is pulled from a JWT cookie and used in an awk command, and I've got the signing secret for the JWT. I'll show the various parts of this attack, and then write a script to take a filename and return it via this method.

#pentest #ctf #bugbounty

Awkward blog post: 0xdf.gitlab.io/2023/02/25/htb-awkward.html

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:52] Background on website and cookie
[01:24] JWT.io
[02:45] JWT validation with Python
[03:35] API vulnerability
[05:15] Showing awk injection locally
[07:14] Crafting JWT to exploit on Awkward
[08:58] Writing script to read files
[11:14] Running, debugging crash
[12:20] Updating to download binary files
[14:04] Demo of working script to read and download
[14:54] Conclusion
awk Injection via JWT Forgery [HackTheBox - Awkward]SpeedNet - HackTheSystem CTFsudo chroot Tech Details [CVE-2025-32463]Threat Index [HackTheBox - Coding Challenge]Day 23: Long Walk [AOC2023 Python]Day 8 - Two-Factor Authentication [Revival of Code 2023 - Advent of Code 2016]Reversing and Brute-Forcing TOPT Browser Plugin Export [HackTheBox Coder]Web Assembly Reversing Challenge [CodeLocked - Hacky Easter 2023]Ceres Search [Day 4 - Advent of Code 2024 - Python]JinjaCare - HackTheSystem CTFGameover(lay) Exploit ExplainedGift Shop [AOC2025 Day 2]
0xdf |

awk Injection via JWT Forgery [HackTheBox - Awkward]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER