To access material, start machines and answer questions login.
What Are Hash Functions and Why Do We Care?
Hash functions are one of those tools that might seem hidden in the background but are incredibly important for protecting data. They take any amount of input (whether it's a tiny file or a huge one) and generate a fixed-length output that represents the data. It's like taking a fingerprint of the data—no matter how big or small it is, the output (the hash) will always be the same size.
Even the smallest change to the input will create a completely different hash. This makes hashes perfect for checking whether something has been tampered with. If the hash changes, you know the data isn't the same anymore.
Objectives
By the end of this room, you'll:
- Have a strong understanding of what cryptographic hash functions are and why they're essential for data security.
- Learn how Length Extension Attacks exploit certain hash functions.
- Explore scenarios where these attacks might be used in real-world systems.
- Gain practical, hands-on experience in identifying and exploiting Length Extension vulnerabilities.
Prerequisites
Before getting started, make sure you're familiar with:
- The basics of cryptographic hash functions and how they work.
- Key properties like pre-image resistance, collision resistance, and second pre-image resistance.
- Simple scripting (Python is a good tool for this) for cryptography-related tasks.
- The fundamentals of cyber security attacks, especially those targeting cryptographic systems.
Starting the Machine
Deploy the target attached to this task by pressing the green Start Lab Machine button. After obtaining the machine's generated IP address, you can either use the AttackBox or your own connected to TryHackMe's .
Add MACHINE_IP to your /etc/hosts file. For example:
MACHINE_IP lea.thm
We will be using the web application running on this machine in the upcoming tasks.
I have started the lab machine and I'm ready to learn about Length Extension Attacks!
Ready to learn Cyber Security?
The Length Extension Attacks room is only available for premium users. Signup now to access more than 500 free rooms and learn cyber security through a fun, interactive learning environment.
Already have an account? Log in
