Release: booh
Environment
gentoo linux,
gemini asbesto # ldd /usr/bin/gpg
libz.so.1 => /lib/libz.so.1 (0x4002c000) libreadline.so.4 => /lib/libreadline.so.4 (0x4003e000) libdl.so.2 => /lib/libdl.so.2 (0x4006c000) libusb-0.1.so.4 => /usr/lib/libusb-0.1.so.4 (0x40070000) libc.so.6 => /lib/libc.so.6 (0x40078000) /lib/ld-linux.so.2 (0x40000000)
Description
when trying to decode .RAR multivolume files created some time ago with PGP 2.6.3 with simmetric cipher:
- i obtain weird messages instead of a "Bad Passphrase" message
- i obtain errors while gpg try to overwrite the original file, decripting it.
- gnupg segfault inserting some bad passphrases.
Using the old pgp 2.6.3 gave me no problems at all.
How To Repeat
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ v
total 5020
drwxr-xr-x 2 asbesto users 4096 9 set 11:30 .
drwxr-xr-x 15 asbesto users 4096 9 set 09:54 ..
-rwxr-xr-x 1 asbesto users 1440597 9 set 11:32 telix.r00
-rwxr-xr-x 1 asbesto users 1440520 9 set 11:32 telix.r01
-rwxr-xr-x 1 asbesto users 789483 9 set 11:32 telix.r02
-rwxr-xr-x 1 asbesto users 1438259 9 set 11:32 telix.rar
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ gpg telix.rar
gpg: assuming IDEA encrypted data
gpg: telix.rar: unknown suffix
Enter new filename [telix.rar]:
File Telix.rar' exists. Overwrite? (y/N) y
gpg: [don't know]: invalid packet (ctb=22)
gpg: [don't know]: invalid packet (ctb=6a)
gpg: WARNING: message was not integrity protected
gpg: [don't know]: invalid packet (ctb=51)
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ file telix.rar
telix.rar: RAR archive data, v14, os: MS-DOS
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ gpg telix.r00
gpg: assuming IDEA encrypted data
gpg: telix.r00: unknown suffix
Enter new filename [telix.r00]:
File Telix.r00' exists. Overwrite? (y/N) y
gpg: fatal: zlib inflate problem: invalid block type
secmem usage: 2048/2208 bytes in 4/5 blocks of pool 2208/32768
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ ls -la telix.r00
-rwxr-xr-x 1 asbesto users 0 9 set 11:34 telix.r00
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ gpg telix.r00
gpg: assuming IDEA encrypted data
gpg: telix.r00: unknown suffix
Enter new filename [telix.r00]: merda
gpg: WARNING: message was not integrity protected
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ ls -la merda
-rw-r--r-- 1 asbesto users 1440000 9 set 11:35 merda
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ file merda
merda: RAR archive data, v14, os: MS-DOS
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $
EXAMPLE about a bad passphrase:
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ gpg telix.rar
gpg: assuming IDEA encrypted data
gpg: [don't know]: invalid packet (ctb=7e)
gpg: WARNING: message was not integrity protected
gpg: [don't know]: partial length for invalid packet type 62
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ gpg telix.rar
gpg: assuming IDEA encrypted data
gpg: [don't know]: invalid packet (ctb=1c)
gpg: WARNING: message was not integrity protected
gpg: [don't know]: partial length for invalid packet type 31
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $
asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $ gpg telix.rar
gpg: assuming IDEA encrypted data
gpg: [don't know]: invalid packet (ctb=19)
gpg: WARNING: message was not integrity protected
gpg: assuming IDEA encrypted data
gpg: telix.rar: unknown suffix
- glibc detected * free(): invalid next size (fast): 0x08110148 * Aborted asbesto@gemini ~/BACKUP/1/old/azzimiei/telix $
problem seem weird when using special characters or "!" into the passphrase.
Fix
Unknown