Hash Extension Attack [HackTheBox Ouija] @0xdf
Hash Extension Attack [HackTheBox Ouija]  @0xdf
Uploaded May 2024 | Updated November 2026, 3 hours ago
In Ouija, I need to do a Hash Extension attack to escalate access against an API. The issue is that I don't know the secret length. I'll use Python to write a wrapper around hash_extender to try lengths one by one and test them against the API until I find the right length, which means I have a valid hash.

HackTheBox Ouija Blog post: 0xdf.gitlab.io/2024/05/18-htb-ouija.html
HackTheBox Ouija: hackthebox.com/machines/ouija
hash_extender: github.com/iagox86/hash_extender

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

[00:00] Introduction
[01:13] Situation overview
[05:26] Hash extension attack
[07:35] Strategy with Python
[08:28] Creating class
[13:48] Testing initial class
[15:03] Processing hash_extender output
[17:09] Creating generate class method
[18:35] Making __str__ function
[19:50] Encoded data property
[21:10] __repr__ function
[22:08] Loop to brute secret length
[22:45] Checking if hash is valid
[24:45] Successful run
[25:30] Conclusion

#pentest #ctf #hash_extension #python
Hash Extension Attack [HackTheBox Ouija]Analysis of a Python / GRPC Application [PC - HackTheBox]Configuring VSCode to Debug Python [AOC2023 Python]Day 7 - Internet Protocol Version 7 [Revival of Code 2023 - Advent of Code 2016]MinMax [HackTheBox - Coding Challenge]Python Script to Read Files on RainyDay [HackTheBox]Recent Updates in Feroxbuster 2.9.1Day 16 - Dragon Checksum [Revival of Code 2023 - Advent of Code 2016]Day 10 - Balance Bots [Revival of Code 2023 - Advent of Code 2016]cURLing - An Introduction to curl [Sans Holiday Hack 2024]Day 11: Cosmic Expansion [AOC2023 Python]Exploring the HackTheBox TwoMillion PHP Application [Beyond Root]
0xdf |

Hash Extension Attack [HackTheBox Ouija]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER