Hash length extension attack¶
RootMe challenge: Service - Hash length extension attack: H(key ∥ message)
You can use Stephen Bradshaw’s hlextend module.
Resources¶
Counter moves¶
A length-extension attack abuses naive MAC-by-hash constructions. HMAC, rather than hash-of-secret-and-message, is the fix. The defender’s view is in the blue notes on the application layer as a target.