Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Add support for OpenOffice formats #38

Open
OOTS opened this issue Sep 3, 2018 · 1 comment
Open

Add support for OpenOffice formats #38

OOTS opened this issue Sep 3, 2018 · 1 comment

Comments

@OOTS
Copy link

OOTS commented Sep 3, 2018

Hi,

I tried to bleach an open office document (.odt) file containing a macro. DocBleach did not report any threats and declared the document to be safe.

Running docbleach with the -vv switch revealed that it recognised the file to be a zip archive (which is somewhat correct). So this issue is both a feature request (add support for Open Office formats) and a bug report: DocBleach really should not declare a open office file with macros to be safe.

Steps to reproduce:

  1. Create a .odt file with a macro.
  2. Run DocBleach on the file: java -jar docbleach.jar -in file.odt -out file-out.odt -vv

Expected behaviour:
Remove the macro from the file.

Actual behaviour:
The file is declared to be safe.

Best regards,
OOTS

@altmas5
Copy link
Contributor

altmas5 commented Nov 8, 2018

I am getting this error on ODT files (seems like they are not supported):

[main] TRACE xyz.docbleach.api.bleach.CompositeBleach - Using bleach: Office Bleach
[main] DEBUG xyz.docbleach.module.ooxml.OOXMLBleach - Invalid format
org.apache.poi.openxml4j.exceptions.ODFNotOfficeXmlFileException: The supplied data appears to be in ODF (Open Document) Format. Formats like these (eg ODS, ODP) are not supported, try Apache ODFToolkit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants