← All Labs
A04 Cryptographic Failures – Encoded Is Not Encrypted
A portal calls a Base64-encoded JSON token encrypted, although its contents are readable after decoding.
What is Cryptographic Failure – Sensitive Data Only Base64-Encoded?
Base64 changes data representation; it does not encrypt data or require a secret key. Confidential data must be protected with appropriate cryptography and should not be placed in readable client-side tokens.
About this lab
Designed by the SecurityElites team specially for training.
How AI helps you find it
AI can explain the relevant HTTP behaviour, suggest a focused test checklist and help compare expected and observed responses. Confirm findings manually.
How to fix it
- Do not use Base64 as a substitute for encryption.
- Avoid placing sensitive information in client-readable tokens.
- Use authenticated encryption when confidentiality is required.
- Remember that signatures protect integrity but do not hide token contents.
- Keep cryptographic keys on the server.
- Rotate exposed secrets and invalidate affected tokens.
How AI helps you defend against it
AI can help review the relevant route, input handling or configuration and draft regression tests. A developer must validate the implementation.
Read the full OWASP LLM Top 10 guide · All free labs · AI red team certification