nextcloud/lib
Anna Larch c0b57cd298 fix(security): don't propagate ValueError from Crypto::decrypt() fallback
When decrypting a v3 ciphertext with a mismatched secret, the first
attempt throws an Exception (HMAC mismatch). The fallback then calls
decryptWithoutSecret() with an empty string, which causes hash_hkdf()
to throw a ValueError. Since ValueError extends \Error rather than
\Exception, it bypassed the catch block and propagated as an unhandled
error, crashing the whole request.

Wrap the fallback in its own try/catch(\Throwable) and rethrow the
original Exception so callers get a meaningful HMAC mismatch error.

Signed-off-by: Anna Larch <anna@nextcloud.com>
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 13:15:27 +00:00
..
composer feat(jobs): add command to list executed background jobs 2026-05-29 13:10:15 +00:00
l10n fix(l10n): Update translations from Transifex 2026-06-06 00:23:03 +00:00
private fix(security): don't propagate ValueError from Crypto::decrypt() fallback 2026-06-09 13:15:27 +00:00
public fix(caldav-delegation): send notification to delegator 2026-06-03 06:56:36 +00:00
unstable feat(wfe): add runtime operations 2026-05-18 14:52:59 +00:00
base.php Revert "[stable34] refactor(NavigationManager): move navigation definitions into apps" 2026-06-05 10:39:22 +02:00
versioncheck.php ci(PHP): Test against 8.5 on CI 2025-12-19 15:34:34 +01:00