Artifacts Associated With Ticket b3c7429255
Ticket change [255901158d] (rid 218210) by apnadkarni on 2023-09-15 03:13:00:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
``` % zipfs mount ../tests/zipfiles/test-password.zip mt badpass % set fd [open //zipfs:/mt/cipher.bin] zipfs_14c_2 % read $fd (junk returned) ``` This is bad because application has no way of knowing a bad password was entered and the data is bogus. It should raise an error just as when a password is not supplied: ``` % zipfs mount ../tests/zipfiles/test-password.zip mt % set fd [open //zipfs:/mt/cipher.bin] decryption failed ```
- foundin initialized to: "8.7"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
Read of a password protected zipfs file with a bad password does not raise an error
- type initialized to: "Bug"
Ticket change [fc47bc658f] (rid 218212) by apnadkarni on 2023-09-15 03:34:11:
- icomment:
The prior case was for an encrypted, uncompressed file. If the file is encrypted AND compressed, an error is raised for a different reason. ``` % zipfs mount ../tests/zipfiles/test-password.zip mt badpass % set fd [open //zipfs:/mt/cipher-deflate.bin] decompression error ``` While this raises an error, it is still problematic in that the data is decrypted without error indication and if the bogus data happens to be formatted correctly for compression, no error will be detected.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [ae8688fc5e] (rid 218358) by apnadkarni on 2023-09-17 15:20:41:
- icomment: "Now caught as CRC errors."
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [fe53665906] (rid 218359) by apnadkarni on 2023-09-17 15:20:51:
- closedate changed to: "2460205.13948998"
- closer changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"