Encryption fallback returns plaintext silently #165

Closed
opened 2026-04-10 16:03:49 +02:00 by shahondin1624 · 0 comments
Owner

Severity: HIGH

Location

lib/Service/EncryptionService.php:60-62

Description

If encryption fails (e.g., corrupted ICrypto configuration), encrypt() returns the plaintext value as a fallback. This means sensitive data (IBAN, health info) could be stored unencrypted in the database without any indication to the user or admin.

Recommendation

Throw an exception instead of silently returning plaintext. Data loss prevention is secondary to data exposure prevention for IBAN/medical data.

## Severity: HIGH ## Location `lib/Service/EncryptionService.php:60-62` ## Description If encryption fails (e.g., corrupted ICrypto configuration), `encrypt()` returns the plaintext value as a fallback. This means sensitive data (IBAN, health info) could be stored unencrypted in the database without any indication to the user or admin. ## Recommendation Throw an exception instead of silently returning plaintext. Data loss prevention is secondary to data exposure prevention for IBAN/medical data.
shahondin1624 added the backendsecuritypriority:high labels 2026-04-10 16:03:49 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shahondin1624/Mitgliederverwaltung#165