Page MenuHome GnuPG

Kleopatra: Remove "Force Decryption" button shown if decryption failed due to missing integrity check (MDC)
Testing, NormalPublic

Description

If decryption fails due to a missing integrity check (MDC) then Kleopatra shows a "Force Decryption" button. This allows the user to ignore the missing integrity check and to force decryption with GnuPG.

I think this button should be removed. I think nowadays ignoring a missing integrity check on decryption is an absolute no-go. Therefore we shouldn't make it easy for people to shoot themselves in the foot. People who need to decrypt decades old data without MDC should use the command line. (We could show a hint in Kleopatra in case decryption fails because of missing MDC.)

I stumbled over this while looking into T7784: Kleopatra notepad: change to buttons in result list widget.

Some background information: The button was added with T4038: Kleopatra: Improve handling of MDC errors. It's only shown for legacy algorithms without MDC, i.e. if AES is used then decryption simply fails without more specific errors (see T4402: Kleopatra decrypt error - Missing MDC for non legacy algos).

You can create a file to test a missing MDC with

gpg --encrypt --rfc2440 --cipher-algo 3des -r 11A9C6D06717C4E284960BA906E28F5FB5297489 --output decrypt-me-no-mdc.gpg encrypt-me.txt

This encrypts the file encrypt-me.txt with the Edward Tester 2023 key.

Event Timeline

ebo triaged this task as Normal priority.Wed, Feb 25, 9:14 AM
ebo added a project: gpd5x.
ebo added a subscriber: ebo.

Please add the hint you mentioned.

ikloecker moved this task from Backlog to WIP on the gpd5x board.
ikloecker changed the task status from Open to Testing.Wed, Feb 25, 4:27 PM

Done.

ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Mar 2, 9:07 AM
timegrid added a subscriber: timegrid.

Looks good to me on gpg4win-5.0.2-beta2 @ win11:

timegrid edited projects, added gpd5x (gpd-5.0.2); removed gpd5x.