Ruby Labs
Explore 1 lab in Ruby.
AES-GCM (Galois/Counter Mode) is an authenticated encryption algorithm that provides both confidentiality and integrity. However, when implemented insecurely — for example, with a weak key size (AES-128 instead of AES-256 in high-security contexts), with predictable nonces, or when ciphertext and authentication tags are not properly verified — attackers can perform token tampering or truncation attacks.
In such cases, adversaries may alter encrypted tokens (e.g., session tokens, password reset tokens, API credentials) without detection, or exploit truncated authentication tags to bypass integrity validation. This can lead to unauthorised authentication, privilege escalation, or data disclosure.
Select a language to explore available labs for this vulnerability.
Try adjusting your language filter.
Want to skill-up in secure coding and AppSec? Try SecDim Wargames to learn how to find, hack and fix security vulnerabilities inspired by real-world incidents.
Join our secure coding and AppSec community. A discussion board to share and discuss all aspects of secure programming, AppSec, DevSecOps, fuzzing, cloudsec, AIsec code review, and more.
Read more