Cross-site scripting (XSS) issue in "document" module in Odoo Community 11.0 and earlier and Odoo Enterprise 11.0 and earlier, allows remote attackers to inject arbitrary web script in the browser of a victim via crafted attachment filenames.
cpe:2.3:a:odoo:odoo:*:*:*:*:community:*:*:*
D9126A1A-FA35-4127-91B3-A3FA8B26FABB
11.0
cpe:2.3:a:odoo:odoo:*:*:*:*:enterprise:*:*:*
9ACA123F-EF25-4E9D-8D60-4368B2F25FA0
11.0
OR
# Security Advisory - CVE-2018-15633

**Affects**: Odoo 11.0 and earlier (Community and Enterprise Editions)
**CVE ID**: [CVE-2018-15633](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15633)
**Component**: "document" module
**Credits**: Nathanael ROTA (Capgemini), Lauri Vakkala (Silverskin),
         Tomas Canzoniero

Cross-site scripting (XSS) issue in "document" module in Odoo Community 11.0
and earlier and Odoo Enterprise 11.0 and earlier, allows remote attackers
to inject arbitrary web script in the browser of a victim via crafted
attachment filenames.

## I.   Background

Odoo 11 and earlier supported a generic feature where files can be
attached to any record through the installation of the "document" module.
This module has been replaced with a new mechanism in later versions.


## II.  Problem Description

Some attributes of the files were not properly sanitized.


## III. Impact

**Attack Vector**: Network exploitable
**Authentication**: No user account required
**CVSS3 Score**: High :: 7.1
**CVSS3 Vector**: [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N](https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N)

An attacker could craft a special attachment on a shared record and trick
a user into viewing it, in order to execute arbitrary web script in their
browser. This could lead to privilege escalation and execution of actions
using the session of the victim.

Odoo S.A. is not aware of any use of this vulnerability in the wild.


## IV.  Workaround

The module "Attachments List and Document Indexation" (document) can be
uninstalled as a workaround. Applying the patch is strongly recommended.

Odoo Cloud servers have been patched as soon as the correction was available.


## V.   Solution

Apply the patches corresponding to your Odoo installation, or upgrade
to the latest revision, either via GitHub or by downloading the
latest version from https://www.odoo.com/page/download
or http://nightly.odoo.com

To apply the patch, change into the main directory of your Odoo
installation (the one containing "openerp" and "addons" directories),
then execute the patch command, typically:

       patch -p0 -f < /path/to/the_patch_file.patch

This command assumes your installation layout corresponds to
the latest source code layout of the Odoo project on GitHub.
If your installation differs, please extract the various patch
hunks from the files and apply them in the appropriate locations.


## VI.  Correction details

The following list contains the revisions after which the vulnerability
is corrected:

- 11.0: a7e66b2303ab26a46b5927fbf9f7ff884f40de4a
- 11.0-ent (Enterprise): see 11.0.

[SEC] CVE-2018-15633 - Affects: Odoo 11.0 and earlier (Community an...
This is a GitHub Issue
repo:odoo
owner:odoo
Title : [SEC] CVE-2018-15633 - Affects: Odoo 11.0 and earlier (Community an...
Issue date:

--- start body ---
# Security Advisory - CVE-2018-15633

**Affects**: Odoo 11.0 and earlier (Community and Enterprise Editions)
**CVE ID**: [CVE-2018-15633](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15633)
**Component**: "document" module
**Credits**: Nathanael ROTA (Capgemini), Lauri Vakkala (Silverskin),
         Tomas Canzoniero

Cross-site scripting (XSS) issue in "document" module in Odoo Community 11.0
and earlier and Odoo Enterprise 11.0 and earlier, allows remote attackers
to inject arbitrary web script in the browser of a victim via crafted
attachment filenames.

## I.   Background

Odoo 11 and earlier supported a generic feature where files can be
attached to any record through the installation of the "document" module.
This module has been replaced with a new mechanism in later versions.


## II.  Problem Description

Some attributes of the files were not properly sanitized.


## III. Impact

**Attack Vector**: Network exploitable
**Authentication**: No user account required
**CVSS3 Score**: High :: 7.1
**CVSS3 Vector**: [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N](https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N)

An attacker could craft a special attachment on a shared record and trick
a user into viewing it, in order to execute arbitrary web script in their
browser. This could lead to privilege escalation and execution of actions
using the session of the victim.

Odoo S.A. is not aware of any use of this vulnerability in the wild.


## IV.  Workaround

The module "Attachments List and Document Indexation" (document) can be
uninstalled as a workaround. Applying the patch is strongly recommended.

Odoo Cloud servers have been patched as soon as the correction was available.


## V.   Solution

Apply the patches corresponding to your Odoo installation, or upgrade
to the latest revision, either via GitHub or by downloading the
latest version from https://www.odoo.com/page/download
or http://nightly.odoo.com

To apply the patch, change into the main directory of your Odoo
installation (the one containing "openerp" and "addons" directories),
then execute the patch command, typically:

       patch -p0 -f < /path/to/the_patch_file.patch

This command assumes your installation layout corresponds to
the latest source code layout of the Odoo project on GitHub.
If your installation differs, please extract the various patch
hunks from the files and apply them in the appropriate locations.


## VI.  Correction details

The following list contains the revisions after which the vulnerability
is corrected:

- 11.0: a7e66b2303ab26a46b5927fbf9f7ff884f40de4a
- 11.0-ent (Enterprise): see 11.0.

--- end body ---

comments :
--- start comments ---

--- end comments ---