Atlassian Companion App Zero-Day Bug Patching
Asked by Deon Petrus Meyer:

Hi Atlassian Community

You all would've seen the article relating to the zero-day bug identified in the Atlassian Companion app: <https://www.theregister.co.uk/2019/12/05/atlassian_zero_day_bug/>

Does anybody know when we can expect the bug identified to be patched and an updated version of the Atlassian Companion App be ready for download?

Our organisation is currently using the app and although our Confluence is hosted on our intranet only, our IT Risk department still sees this as a dangerous vulnerability that needs to be addressed.

The only alternative is to discontinue the use of the app and revert to the darkfeature, to enable customers to edit their office documents.


Answers:
author: Shannon S
body: Hello [@Deon Petrus Meyer](/t5/user/viewprofilepage/user-id/1211883),

Thank you for contacting us about this. This depends on your current Confluence version. If you are on a version prior to 6.11, then you are not affected.

++For the following versions++, you'd be able to switch to the original Edit in Office functionality:

* **6.13.6 - 6.13.8**

* **6.15.6 - 6.15.9**

* **7.1.0 and later**

If you are on one of those versions, the steps to enable this feature (see [Enable Edit in Office as a dark feature in Confluence](https://confluence.atlassian.com/confkb/enable-edit-in-office-as-a-dark-feature-in-confluence-978217013.html)) are as follows:

1. Go to **\<confluence-url\>/admin/darkfeatures.action**.
2. Add the **enable.legacy.edit.in.office** dark feature flag.
3. Select **Submit**

Do note, Edit in Office does not support the editing of all file types supported by the Companion App. Users will, however, be able to edit Microsoft Office documents. Additionally, Edit in Office will only work in the following environments:

* OS: Windows

* Browsers:

  * Chrome (only in Windows 10 and Office 2016 or later)

  * Firefox (only in versions 55.x and 56.x)

  * Internet Explorer 11

++If you are *not* on one of the versions listed above++, then you will want to disable the Companion App for now while we work on the fix.

To disable the Companion App:

1. Click **Settings \> Manage Apps**
2. Select **System** from the dropdown
3. Search for Confluence Previews
4. Click the **+** next to **28 of 28 modules enabled**
5. Disable the following modules:
   1. ADCClient AMD Wrapper (companion-client-wrapper)
      * This is the only mandatory module to disable the Companion App. The rest remove UI elements that display 'Edit with' to avoid confusion
   2. Edit With button (companion-plugin-button)
   3. Templates for Edit With feature (companion-plugin-templates)
   4. Companion CSS resources (companion-plugin-css)
   5. Edit With plugin for the Media Viewer (companion-plugin)
   6. Embedded 'Edit With' button (embedded-edit)

Once these modules are disabled, users will no longer have the ability to start editing a Confluence attachment directly from the UI. They would need to manually download any attachments, edit them locally, and manually upload them back into Confluence via its UI.

If you have any questions about these workarounds, please let me know.

I will follow-up with you here as soon as we have a fix released for this.

Thank you for your understanding!

Regards,

Shannon

comments: author: Shannon S
body: Hello [@Deon Petrus Meyer](/t5/user/viewprofilepage/user-id/1211883),

We have another workaround at this time that could work for you. That is that you see if you can update to the the latest version of the Confluence Previews plugin. This may fix the problem for some users.

To manually upgrade the **Confluence Previews** system app:

1. Download the appropriate version of the Confluence Previews plugin for your version of Confluence from the table above.

2. Go to **COG** \> **Manage apps**.

3. Choose **Upload** and follow the prompts to manually install the plugin.

See [Installing Marketplace apps: Installing by file upload](https://confluence.atlassian.com/display/UPM/Installing+Marketplace+apps "https://confluence.atlassian.com/display/UPM/Installing+Marketplace+apps") for more information.

The following plugin versions have been released:

* Confluence 7.1.x [++confluence-previews-9.1.5++](https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/9.1.5/confluence-previews-9.1.5.jar "https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/9.1.5/confluence-previews-9.1.5.jar")

* Confluence 7.0.x [confluence-previews-9.0.4](https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/9.0.4/confluence-previews-9.0.4.jar "https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/9.0.4/confluence-previews-9.0.4.jar")

* Confluence 6.15.x [++confluence-previews-8.2.2++](https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/8.2.2/confluence-previews-8.2.2.jar "https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/8.2.2/confluence-previews-8.2.2.jar")

* Confluence 6.14.x [confluence-previews-8.0.7](https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/8.0.7/confluence-previews-8.0.7.jar "https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/8.0.7/confluence-previews-8.0.7.jar")

* Confluence 6.13.x (Enterprise release) [++confluence-previews-7.0.19++](https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/7.0.19/confluence-previews-7.0.19.jar "https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/7.0.19/confluence-previews-7.0.19.jar")

  * May work with 6.12.x (untested)

  * May work with 6.11.x (known issue - the progress bar for upload/download via Companion doesn't work)

Let me know if you have any questions about that!

Regards,

Shannon


author: Deon Petrus Meyer
body: tnx [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

I'll check it out.


author: Shaun Alsobrook
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)With the Cloud version of Confluence, the versioning does not seem to be the same as the above, what should we do as a workaround? Also, where is the status for the fix being tracked so we can monitor? Thanks, Shaun


author: Darryl St_ Pierre
body: Apparently the question is whether or not this impacts Cloud, or only Server...


author: Shaun Alsobrook
body: Very true. Good way of restating it.


author: Shannon S
body: Hello [@Shaun Alsobrook](/t5/user/viewprofilepage/user-id/3388886),

The impact was to Cloud and DC/Server, but the fix was pushed out to Cloud shortly after the vulnerability was discovered.

My instructions apply only to Server and Data Center sites at this time. More information on that can be found below:

* [Can't edit files in Confluence Server using Atlassian Companion app in Internet Explorer, Edge, Firefox, or Safari](https://confluence.atlassian.com/confkb/cant-edit-files-in-confluence-server-using-atlassian-companion-app-in-internet-explorer-edge-firefox-or-safari-981152695.html)

Regards,

Shannon


author: Heikki Harsunen
body: From that linked page
> This problem does not affect people using Chrome or Firefox 56 or later.  

Are you sure Google and Mozilla won't push revocation to modern browsers? Have you made arrangement with them not to push their CRLsets?  


author: Anh Le
body: Hi,

I have updated Confluence-previews as advised but the edit with MS-office stop working after that.

"Some of the content could not be read, do you want to reset it?"

- Confluence 6.14.x [confluence-previews-8.0.7](https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/8.0.7/confluence-previews-8.0.7.jar "https://packages.atlassian.com/maven-closedsource-local/com/atlassian/confluence/plugins/confluence-previews/8.0.7/confluence-previews-8.0.7.jar")

Brs,

Le Anh Dung


author: Shannon S
body: [@Heikki Harsunen](/t5/user/viewprofilepage/user-id/903010),

Thank you for the follow-up! By design, when Companion App is not able to make a secure connection, it will automatically default to an insecure connection directly to localhost.

Safari, Edge, IE 11, and some other browsers won't allow this connection due to mixed-content issues (i.e., an insecure connection made from a page being served securely). Firefox and Chrome allow mixed-content connections via localhost, and therefore aren't affected.

I hope this answers your question!

[@Anh Le](/t5/user/viewprofilepage/user-id/3572305),

I would recommend for this issue, you raise [a support ticket](https://support.atlassian.com/contact) if you are able, or a new question here on Community.

Regards,

Shannon


Tags: companion-app

confluence-server

server