Bug 38370 - [FILEOPEN] LibreOffice Impress do not allow open password-protected PowerPoint presentations in "read-only" mode
Summary: [FILEOPEN] LibreOffice Impress do not allow open password-protected PowerPoin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:ppt
: 47075 62611 89338 106332 127574 (view as bug list)
Depends on:
Blocks: Slide-Show PPT
  Show dependency treegraph
 
Reported: 2011-06-16 05:48 UTC by Răzvan Sandu
Modified: 2021-09-09 07:57 UTC (History)
18 users (show)

See Also:
Crash report or crash signature:


Attachments
Testacase file (Microsoft .pps in .7z archive) for bug 38370 (I) (921.60 KB, application/x-7z-compressed)
2011-06-16 06:01 UTC, Răzvan Sandu
Details
Testacase file, part II (921.60 KB, application/x-7z-compressed)
2011-06-16 06:01 UTC, Răzvan Sandu
Details
Testcase file, part III (921.60 KB, application/x-7z-compressed)
2011-06-16 06:02 UTC, Răzvan Sandu
Details
Testcase file, part IV (921.60 KB, application/x-7z-compressed)
2011-06-16 06:03 UTC, Răzvan Sandu
Details
Testacase file, part V (921.60 KB, application/x-7z-compressed)
2011-06-16 06:03 UTC, Răzvan Sandu
Details
Testcase file, part VI (final) (634.35 KB, application/x-7z-compressed)
2011-06-16 06:04 UTC, Răzvan Sandu
Details
MS .pps file in .7z archive part 1 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:14 UTC, RR
Details
MS .pps file in .7z archive part 2 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:14 UTC, RR
Details
MS .pps file in .7z archive part 3 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:15 UTC, RR
Details
MS .pps file in .7z archive part 4 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:16 UTC, RR
Details
MS .pps file in .7z archive part 5 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:16 UTC, RR
Details
MS .pps file in .7z archive part 6 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:17 UTC, RR
Details
MS .pps file in .7z archive part 7 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:18 UTC, RR
Details
MS .pps file in .7z archive part 8 (973.77 KB, application/x-7z-compressed)
2013-02-15 17:18 UTC, RR
Details
MS .pps file in .7z archive part 2 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:17 UTC, RR
Details
MS .pps file in .7z archive part 3 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:18 UTC, RR
Details
MS .pps file in .7z archive part 4 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:20 UTC, RR
Details
MS .pps file in .7z archive part 5 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:21 UTC, RR
Details
MS .pps file in .7z archive part 6 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:22 UTC, RR
Details
Test file (1) - Without Password (8.00 KB, application/vnd.ms-powerpoint)
2013-10-14 15:10 UTC, Geraldo
Details
Test file (2) - With Password (10.50 KB, application/vnd.ms-powerpoint)
2013-10-14 15:10 UTC, Geraldo
Details
Test file (3) - Removed Password (8.00 KB, application/vnd.ms-powerpoint)
2013-10-14 15:12 UTC, Geraldo
Details
zip with dump & diff (72.93 KB, application/x-zip)
2014-02-04 19:16 UTC, Cor Nouws
Details
Cordoba hechicera nazarena y sultana (V.).pps (8.83 MB, application/vnd.ms-powerpoint)
2017-03-05 11:16 UTC, David García
Details
password-encrypted Microsoft PowerPoint (8.16 MB, application/vnd.ms-powerpoint)
2017-07-03 08:30 UTC, Andrej
Details
Used to open with LO 5.3.3.2/5.3.4.2 (56 bytes, text/plain)
2018-02-28 09:56 UTC, Sebastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Răzvan Sandu 2011-06-16 05:48:48 UTC
Hello,

My LibreOffice version is 3.3.2 OOO330m19 (Build:202) on Ubuntu 11.04

LO cannot open some Microsoft PowerPoint files (.pps) and I get this error:

"Read error. Loading passwprd-protected Microsoft files is not supported".

However, the .pps file is NOT a password-protected Microsoft file, but a regular one. Same file may be opened without a hitch both in Openoffice.org and Microsoft Office.

Same phenomenon may be seen In LibreOffice 3.3.2, Windows version.

Please see an attached test case file.


Thanks a lot,
Răzvan
Comment 1 Răzvan Sandu 2011-06-16 06:01:18 UTC
Created attachment 48044 [details]
Testacase file (Microsoft .pps in .7z archive) for bug 38370 (I)
Comment 2 Răzvan Sandu 2011-06-16 06:01:55 UTC
Created attachment 48045 [details]
Testacase file, part II
Comment 3 Răzvan Sandu 2011-06-16 06:02:31 UTC
Created attachment 48046 [details]
Testcase file, part III
Comment 4 Răzvan Sandu 2011-06-16 06:03:04 UTC
Created attachment 48047 [details]
Testcase file, part IV
Comment 5 Răzvan Sandu 2011-06-16 06:03:51 UTC
Created attachment 48048 [details]
Testacase file, part V
Comment 6 Răzvan Sandu 2011-06-16 06:04:37 UTC
Created attachment 48049 [details]
Testcase file, part VI (final)
Comment 7 tester8 2011-06-16 13:34:29 UTC
Reproduced with

Ubuntu 10.04.2 x86
LO 3.4

I don't try ot open file in something else.
Comment 8 Björn Michaelsen 2011-12-23 12:23:06 UTC Comment hidden (obsolete)
Comment 9 Rainer Bielefeld Retired 2012-01-24 07:41:05 UTC
[Reproducible] with reporter's sample and "LibreOffice 3.4.5 English UI [Build ID: OOO340m1 (Build:502)]" parallel Server installation on German WIN7 Home Premium (64bit). Very old problem, also does not open with  "LibreOffice Portable 3.3.0  - WIN7  Home Premium (64bit) German UI [OOO330m19 (Build:6) tag libreoffice-3.3.0.4]", OOo 3.1.1. OOo 3.4Beta and OOo 3.3.3 also fail.

I always get message "Read-Error. The loading of password-encrypted Microsoft PowerPoint presentations is not supported"

So this one seems inherited from OOo.

Works fine with MS PPT VIEWER and reporter's sample.

Currently I see this one as an Enhancement request. Do we have ambition to support that?

@Thorsten:
Please feel free to reassign (or reset Assignee to default) if it’s not your area or if provided information is not sufficient. Please set Status to ASSIGNED if you accept this Bug.
Comment 10 Rainer Bielefeld Retired 2012-01-24 07:51:05 UTC
I wonder why MS PPT VIEWER does not ask for a password. May be I'm wrong and this one is related to "OOo 112764 - OO wrongly claims that pps is encrypted"?
Or "46307 - Support RC4 encryption to load password protected PPT(Powerpoint)-file"
Comment 11 edelzak 2012-03-13 14:39:25 UTC
(In reply to comment #10)
> I wonder why MS PPT VIEWER does not ask for a password. May be I'm wrong and
> this one is related to "OOo 112764 - OO wrongly claims that pps is encrypted"?
> Or "46307 - Support RC4 encryption to load password protected
> PPT(Powerpoint)-file"

It appears that:-
When someone password protects a PPS so that modifying can only be carried out after a password is entered. Power Point Viewer will open it in read only mode however Libre Office sees that there is a password and will not go any further even though the password is not necessary for read only.
Comment 12 Tony 2012-04-27 09:21:31 UTC
This bug is a very important one; it should be upgraded to high/critical. If somebody sends me (which they do) a normal ppt file which all MSO users can read, then it is a serious setback for LO if it can't even open it.
Comment 13 Tony 2012-04-27 09:25:38 UTC
*** Bug 47075 has been marked as a duplicate of this bug. ***
Comment 14 Rainer Bielefeld Retired 2012-04-27 09:51:07 UTC Comment hidden (obsolete)
Comment 15 RR 2013-02-15 17:14:16 UTC Comment hidden (obsolete)
Comment 16 RR 2013-02-15 17:14:59 UTC Comment hidden (obsolete)
Comment 17 RR 2013-02-15 17:15:38 UTC Comment hidden (obsolete)
Comment 18 RR 2013-02-15 17:16:16 UTC Comment hidden (obsolete)
Comment 19 RR 2013-02-15 17:16:55 UTC Comment hidden (obsolete)
Comment 20 RR 2013-02-15 17:17:33 UTC Comment hidden (obsolete)
Comment 21 RR 2013-02-15 17:18:12 UTC Comment hidden (obsolete)
Comment 22 RR 2013-02-15 17:18:41 UTC Comment hidden (obsolete)
Comment 23 RR 2013-02-15 17:23:07 UTC Comment hidden (obsolete)
Comment 24 Rainer Bielefeld Retired 2013-02-16 09:31:12 UTC Comment hidden (obsolete)
Comment 25 RR 2013-02-16 11:10:27 UTC
I am sorry for my sarcasm but no one care about old bug.
My intention was to awake people and have possibilities to opening MSO files without buying this proprietary software.

Problem is as in Description of bug and, for example, comment #9
"Read error. Loading password-protected Microsoft files is not supported"

Attached file isn't password protected and users of MSO can read it without any password.
Comment 26 RR 2013-02-16 11:17:07 UTC
Created attachment 74929 [details]
MS .pps file in .7z archive part 2 (binary)

Right content type.
Comment 27 RR 2013-02-16 11:18:36 UTC
Created attachment 74930 [details]
MS .pps file in .7z archive part 3 (binary)

Right content type.
Comment 28 RR 2013-02-16 11:20:04 UTC
Created attachment 74931 [details]
MS .pps file in .7z archive part 4 (binary)

Right content type.
Comment 29 RR 2013-02-16 11:21:08 UTC
Created attachment 74932 [details]
MS .pps file in .7z archive part 5 (binary)

Right content type.
Comment 30 RR 2013-02-16 11:22:24 UTC
Created attachment 74933 [details]
MS .pps file in .7z archive part 6 (binary)

Right content type.
Comment 31 Thorsten Behrens (allotropia) 2013-02-19 18:12:48 UTC
So - commenting out

if ( pStorage->IsStream( rtl::OUString("EncryptedSummary" ) ) ) in sd/source/filter/sdpptwrp.cxx, instead of the "cannot open password-encrypted doc" gets us a "Version incompatibility. Incorrect file version." error instead. So I presume, since the ole stream carries this EncryptedSummary, there _is_ some (possibly empty / redundant) encryption in this file.

Someone with a bit of time at their hands to dig into the binary file format needs to have a look. I'm afraid I cannot currently commit to this.
Comment 32 pj 2013-03-15 15:06:56 UTC
Same issue here... file has a password to modify but not read. Looks like it has been ignored since at least 2005 (https://issues.apache.org/ooo/show_bug.cgi?id=46307), though not fully Libre's fault of course. Any chance to get some bug-fix love?
Comment 33 ign_christian 2013-06-03 07:43:04 UTC
*** Bug 62611 has been marked as a duplicate of this bug. ***
Comment 34 Cor Nouws 2013-09-22 08:11:48 UTC
Hi

Can someone please help with the following :

1 - create simple one slide presentation in PowerPoint
2 - save without passWord as 
    38370_test_WithoutPassword.pps
3 - save again _with_ passWord as 
    38370_test_WithPassword.pps
4 - then remove password
    and save again as 
    38370_test_RemovedPassword.pps

Pls attacht the three files (or as one in zip).
I'll ask someone who did some digging in binaries before to have a look.
And then only the code has to be extented ;)

thanks,
Comment 35 Geraldo 2013-10-14 15:10:03 UTC
Created attachment 87604 [details]
Test file (1) - Without Password
Comment 36 Geraldo 2013-10-14 15:10:56 UTC
Created attachment 87605 [details]
Test file (2) - With Password
Comment 37 Geraldo 2013-10-14 15:12:48 UTC
Created attachment 87606 [details]
Test file (3) - Removed Password
Comment 38 Geraldo 2013-10-14 16:55:25 UTC Comment hidden (obsolete)
Comment 39 Cor Nouws 2013-10-14 21:22:37 UTC Comment hidden (obsolete)
Comment 40 Cor Nouws 2014-02-04 19:16:12 UTC
Created attachment 93406 [details]
zip with dump & diff

Hi,

Being at the UX-Hackfest, Miklos was so friendly to help me with getting up with
  git://anongit.freedesktop.org/libreoffice/contrib/mso-dumper

Made an output of files
 - 38370_test_WithoutPassword.pps
 - 38370_test_RemovedPassword.pps
and a diff of the two

I'll attach the 38370_dumped_diff.zip with
 38370_without
 38370_removed
 38370_diff_removed_without


Most remarkable differences seem to me the lines
240, 288, 304

Would appreciate any specialist to step in.
thanks,
Cor
Comment 41 Cor Nouws 2014-02-04 19:19:49 UTC Comment hidden (obsolete)
Comment 42 Valek Filippov 2014-02-04 22:04:04 UTC Comment hidden (obsolete)
Comment 43 Valek Filippov 2014-02-05 03:15:12 UTC
First of all LO 4.1.x seems to open file with removed password without any problem here. All differences I see between "without_password" and "removed_password" are not related to passwords/security.

At second the initially attached 6 parts 7z archive CONTAINS PASSWORD PROTECTED FILE.
If you try to open it in MS Office it will ask for password and w/o password will allow to open the document as read-only.

So Rainer was right in the comment #9 -- it's an enhancement request.
Comment 44 Valek Filippov 2014-02-05 13:24:57 UTC
For potential implementor:

<caolan> I have no idea about this specific .pps/ppt encryption mechanism, but FWIW there is various shared bits, e.g. include/filter/msfilter/mscodec.hxx for the crippled rc4 stuff used in msoffice 97 which might be relevant
Comment 45 David García 2017-03-05 11:12:48 UTC
Hello,

I have just experienced the same problem.

I have a PPS file that doesn't have a password, and yet, LibreOffice 5.3.0 says it can't open it because it's password-protected. I've tried to open it both from the Windows explorer and from LibreOffice itself with the same results.
Comment 46 David García 2017-03-05 11:16:00 UTC
Created attachment 131645 [details]
Cordoba hechicera       nazarena y sultana (V.).pps

It says it's password-protected, but it's not
Comment 47 Xisco Faulí 2017-03-08 11:23:23 UTC
*** Bug 89338 has been marked as a duplicate of this bug. ***
Comment 48 Xisco Faulí 2017-03-08 11:24:41 UTC
*** Bug 106332 has been marked as a duplicate of this bug. ***
Comment 49 Jean-Baptiste Faure 2017-03-09 05:55:04 UTC
(In reply to David García from comment #45)
> [...]
> I have a PPS file that doesn't have a password [...]

Are you sure? Please have a look at https://bz.apache.org/ooo/show_bug.cgi?id=112764#c9. In other words, did you try to _edit_ (not only viewing it in slideshow mode) this presentation in MS-Powerpoint?

Best regards. JBF
Comment 50 David García 2017-06-21 16:49:22 UTC
(In reply to Jean-Baptiste Faure from comment #49)
> (In reply to David García from comment #45)
> > [...]
> > I have a PPS file that doesn't have a password [...]
> 
> Are you sure? Please have a look at
> https://bz.apache.org/ooo/show_bug.cgi?id=112764#c9. In other words, did you
> try to _edit_ (not only viewing it in slideshow mode) this presentation in
> MS-Powerpoint?
> 
> Best regards. JBF

Hello,

I'm sorry it took me so long to reply. I've tried on LibreOffice 5.3.3.2 and I get the same error message ("The loading of password-encrypted Microsoft PowerPoint Presentations is not supported"). Since I was able to see the presentation on PowerPoint, I assumed the file didn't have a password, but I've realized that it's edit-protected.

As for your question, is there a view-mode only for PowerPoint files? I basically double-click PowerPoint files in order to see the presentations.

Thanks in advance for your help.

Best regards.
Comment 51 Andrej 2017-07-03 08:28:44 UTC
Can at least this problem be fix so that the document could be open as read-only?
I am attaching the problem file with a name as "DEJANJE SO cUTJA.pps.ppt".
Thank you
Comment 52 Andrej 2017-07-03 08:30:27 UTC
Created attachment 134443 [details]
password-encrypted Microsoft PowerPoint
Comment 53 Sebastian 2018-02-28 09:46:05 UTC
I was able to open password protected pps file with Libre Office 5.3.3.2. worked without problem. Now installed version 5.3.7 which displays error window "Opening of password protected Power Point document is not supported".
On v5.4.5.1 On 5.4.5.1  LibreOffice is not showing the error Window "Opening of password protected Power Point document is not supported", but just silently exits/crashes when opening MSO RC4 encrypted pps file. I reinstalled 5.3.3.2 but now it can't either open the password protected pss file.
Added test file which used to open
Comment 54 Sebastian 2018-02-28 09:56:41 UTC
Created attachment 140211 [details]
Used to open with LO 5.3.3.2/5.3.4.2

Used to open with without problem with LO 5.3.3.2 or 5.3.4.2. Can't remember exactly which one.
Comment 55 Julien Nabet 2018-02-28 10:04:34 UTC
Eike: I know it's not Calc but, noticing your work on hash parts, thought you might be interested in this one.
Comment 56 Eike Rathke 2018-02-28 13:53:32 UTC
Comment on attachment 140211 [details]
Used to open with LO 5.3.3.2/5.3.4.2

This is a text file containing the comment text, without use.
Comment 57 Eike Rathke 2018-02-28 14:36:26 UTC
My work was for OOXML password hashing, this seems to be some internal Impress problem.

If there is a password set for editing and otherwise open the file read-only, that erroneously fools Impress to believe there is encryption and also prevents it to open the file in read-only mode.

It's likely only a flag somewhere with an associated password hash for edit-mode. OOXML PresentationML defines
19.2.1.19 modifyVerifier (Modification Verifier)
that sounds pretty much related and likely has an equivalent in the binary file format,
Comment 58 Sebastian 2018-03-02 06:51:54 UTC
I had LO open those password protected from edition pps files with Impress around mid march 2017 to the end of may 2017. It was exactly when this feature appeared in release notes for LO 5.3 around march/april/may 2017:
"The contemporary Microsoft Office default Binary Document encryption "RC4 CryptoAPI Encryption" is now supported (Caolán McNamara, Red Hat, Inc.)"

I did not memorize the exact version, 'cause I was not expecting the feature will get broken.
Some version from that time was opening those pps file without problem in read-only mode. I was testing versions from 5.3.1.2 to 5.3.5.2 from download archive but none will open pps, just display mentioned error window. But than not all versions of LO are in download archive. All I can remember I was able to open those pps files with LO 5.3.3 or 5.3.4 and then the feature got broken with 5.3.5 or 5.3.6 because LO started to display error window about not supporting password protected Powerpoint documents. Maybe Caolán McNamara can check the code for errors?
Comment 59 Michal Svec 2018-12-21 09:13:21 UTC
The regression is still there with LO 6.1.4.
Comment 60 hmslima1992 2019-09-07 21:02:06 UTC
It still is an issue in LO 6.3.1
Comment 61 Julien Nabet 2019-09-08 10:13:13 UTC
(In reply to David García from comment #46)
> Created attachment 131645 [details]
> Cordoba hechicera       nazarena y sultana (V.).pps
> 
> It says it's password-protected, but it's not

At least, we got in "if" block:
     91             if ( pStorage->IsStream( "EncryptedSummary" ) )
     92                 mrMedium.SetError(ERRCODE_SVX_READ_FILTER_PPOINT);
So this part should be implemented:
https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ppt/8faaf589-abed-4d79-a758-529ce59dfcfd
Comment 62 Julien Nabet 2019-09-16 13:22:49 UTC
*** Bug 127574 has been marked as a duplicate of this bug. ***