https://bugs.documentfoundation.org/show_bug.cgi?id=167289

            Bug ID: 167289
           Summary: Exported PDF does not prevent copy/print even when
                    security password was set for that protection
           Product: LibreOffice
           Version: 7.3.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I've used Atril for over 10 years, but never had need to verify that the
security features were actually honoured.

When I set the password for protection against the "Copy Text" or "Printing",
it all seems to progress nicely.

BUT ... when I then open that using Atril on UbuntuMATE 22.04.5, Atril is not
preventing the "Copy Text" or "Print" functions from being performed:

https://private-user-images.githubusercontent.com/59403874/460329329-92eb3793-a93b-4bdf-b3ed-83282f39a80c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTEyMjQ1MzYsIm5iZiI6MTc1MTIyNDIzNiwicGF0aCI6Ii81OTQwMzg3NC80NjAzMjkzMjktOTJlYjM3OTMtYTkzYi00YmRmLWIzZWQtODMyODJmMzlhODBjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNjI5VDE5MTAzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0YmJiMzk4ZDJlYTM5M2E0NTIxN2IzNDZjZmZlMmEyMDdlNTk0NDc1ZmMwYzE2MjZjMWU2MTY4NzVkNGVhNzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5NafXq9A5y4St7EHgHNkCMgchl6nTgahYCI_ARe6cKc

https://private-user-images.githubusercontent.com/59403874/460330463-468f090b-4b0b-4e77-a269-5fc96d2dff28.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTEyMjQ1MzYsIm5iZiI6MTc1MTIyNDIzNiwicGF0aCI6Ii81OTQwMzg3NC80NjAzMzA0NjMtNDY4ZjA5MGItNGIwYi00ZTc3LWEyNjktNWZjOTZkMmRmZjI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNjI5VDE5MTAzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzMGJhNjE2YmNkYzY2ZGNmZWQyMzY0OWUwZmM0YjkzYjlkMDY5ODJiODk5ZTZjYmFiYjVlMDhlMmU5M2UzMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RYXORPKR3k-HsC6NfVRHvN-1vbpoTlbp2J1t6m8Feco

https://private-user-images.githubusercontent.com/59403874/460330472-b386b790-7911-4c89-aee7-23a9f6aaf5c2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTEyMjQ1MzYsIm5iZiI6MTc1MTIyNDIzNiwicGF0aCI6Ii81OTQwMzg3NC80NjAzMzA0NzItYjM4NmI3OTAtNzkxMS00Yzg5LWFlZTctMjNhOWY2YWFmNWMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNjI5VDE5MTAzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk0OGJjNWI0OGVjZjg3Y2VhMjFmMGJiNzZlNzFjMWE5MTg0MjY2YWE5ZTkwMWNjZjgwMzAwODczODRjNGExN2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._oojBXlPW5jLUI73ZhS0K7e0HiBhiFfXFRYLSA7OLEU

Not knowing what various industry standards recommend or dictate, my concept of
implementing that security function would seem to dictate encryption of the PDF
output, thereby preventing any bypass of the security specification embedded in
the output.

In my view, this is a clear case of a bug, and would very much appreciate that
the Development Team consider such a clear failure of a central security
feature as worthy of as much immediate attention as is possible, in order to
ensure that the trust of the Community of Users is not permanently lost and,
potentially, by being able to demonstrate better functionality than other
tools, attract new users to the Community.


Version report from UbuntuMATE 22.04.5:

https://private-user-images.githubusercontent.com/59403874/460331623-4886a898-a48e-446e-a879-446393accaf5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTEyMjQ1MzYsIm5iZiI6MTc1MTIyNDIzNiwicGF0aCI6Ii81OTQwMzg3NC80NjAzMzE2MjMtNDg4NmE4OTgtYTQ4ZS00NDZlLWE4NzktNDQ2MzkzYWNjYWY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNjI5VDE5MTAzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3OGNmZjY0OTRkYjkxYzJhNjE1MTIxMjY1MDljOWUxYjVhYmMwZjc3MzhiYjlmZWU4YjY0MzI5NGE2MDM2MzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.nx0yrvKxRlOcGL4OoTfIVgcXVz6qDWl1ybrgyVZGF1k

Steps to Reproduce:
1. Choose "Export as PDF"
2. Set password for "Copy Text" & "Printing"
3. Click on "Export"
4. Open in any document viewer (a.k.a. Atril)

Actual Results:
Exported PDF file's contents can be copied and printed!!!



Expected Results:
Exported PDF file's contents are not protected unless the "PDF Viewer" does not
implement functionality to abide by that specification.

Protection of contents should not need to rely on 3rd-party capability for that
protection.

Protection feature is offered by the Authoring software, namely LibreOffice
Writer, and should therefore ensure by the embedding in the output format, the
mechanisms which would prevent any circumvention of the specified feature.

In this case, if the feature being offered is "Prevent Copy of Text" or
"Prevent Print", then the text in the output file should not be in a format
that is openly accessible, thereby allowing the security feature to be
bypassed, with the consequence of allowing it to be copied or printed.



Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.3.4.2 / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-CA (en_CA.UTF-8); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to