-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2018.2135
    Sourcetree - Remote Code Execution vulnerabilities - CVE-2018-11235
                               24 July 2018

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:          Atlassian Sourcetree
Publisher:        Atlassian
Operating System: Mac OS
                  Windows
Impact/Access:    Execute Arbitrary Code/Commands -- Remote with User Interaction
Resolution:       Patch/Upgrade
CVE Names:        CVE-2018-13386 CVE-2018-13385 CVE-2018-11235

Reference:        ESB-2018.1827
                  ESB-2018.1763
                  ESB-2018.1704
                  ESB-2018.1614

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

This email refers to the advisory found at
https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-07-18-953674465.html
.


CVE ID:

* CVE-2018-11235.
* CVE-2018-13385.
* CVE-2018-13386.


Product: Sourcetree.

Affected Sourcetree product versions:

* for macOS, 1.0b2 <= version < 2.7.6
* for Windows, 0.5.1.0 <= version < 2.6.10


Fixed Sourcetree product versions:

* for macOS, Sourcetree 2.7.6 has been released with a fix for these issues.
* for Windows, Sourcetree 2.6.10 has been released with a fix for these issues.


Summary:
This advisory discloses critical severity security vulnerabilities. Versions of
Sourcetree are affected by these vulnerabilities.



Customers who have upgraded Sourcetree to version 2.7.6 (Sourcetree for macOS)
or 2.6.10 (Sourcetree for Windows) are not affected.

Customers who have downloaded and installed Sourcetree >= 1.0b2 but less than
2.7.6 (the fixed version for macOS) or who have downloaded and installed
Sourcetree >= 0.5.1.0 but less than 2.6.10 (the fixed version for
Windows) please
upgrade your Sourcetree installations immediately to fix these vulnerabilities.



Sourcetree for macOS - Git submodules vulnerability (CVE-2018-11235)

Severity:
Atlassian rates the severity level of this vulnerability as critical, according
to the scale published in our Atlassian severity levels. The scale allows us to
rank the severity as critical, high, moderate or low.
This is our assessment and you should evaluate its applicability to your own IT
environment.


Description:

The embedded version of Git used in Sourcetree for macOS was vulnerable to
CVE-2018-11235. An attacker can exploit this issue if they can commit to a Git
repository linked in Sourcetree for macOS or that has been recursively cloned or
if a user interacts with a submodule. This allows them to execute arbitrary code
on systems running a vulnerable version of Sourcetree for macOS.
Versions of Sourcetree for macOS starting with version 1.02b before version
2.7.4 are affected by this vulnerability. This issue can be tracked at:
https://jira.atlassian.com/browse/SRCTREE-5845 .

Sourcetree for Windows - Git submodules vulnerability (CVE-2018-11235)

Severity:
Atlassian rates the severity level of this vulnerability as critical, according
to the scale published in our Atlassian severity levels. The scale allows us to
rank the severity as critical, high, moderate or low.
This is our assessment and you should evaluate its applicability to your own IT
environment.


Description:

The embedded version of Git used in Sourcetree for Windows was vulnerable to
CVE-2018-11235. An attacker can exploit this issue if they can commit to a Git
repository linked in Sourcetree for Windows or that has been recursively cloned
or if a user interacts with a submodule. This allows them to execute arbitrary
code on systems running a vulnerable version of Sourcetree for Windows.
Versions of Sourcetree for Windows starting with version 0.5.1.0 before version
2.6.10 are affected by this vulnerability. This issue can be tracked at:
https://jira.atlassian.com/browse/SRCTREEWIN-8882 .

Sourcetree for macOS - Argument injection via Mercurial repository filenames
(CVE-2018-13385)

Severity:
Atlassian rates the severity level of this vulnerability as critical, according
to the scale published in our Atlassian severity levels. The scale allows us to
rank the severity as critical, high, moderate or low.
This is our assessment and you should evaluate its applicability to your own IT
environment.


Description:

There was an argument injection vulnerability in Sourcetree for macOS via
filenames in Mercurial repositories. An attacker with permission to commit to a
Mercurial repository linked in Sourcetree for macOS is able to exploit this
issue to gain code execution on the system.
Versions of Sourcetree for macOS before version 2.7.6 are affected by this
vulnerability. This issue can be tracked at:
https://jira.atlassian.com/browse/SRCTREE-5846 .

Sourcetree for Windows - Argument injection via Mercurial repository filenames
(CVE-2018-13386)

Severity:
Atlassian rates the severity level of this vulnerability as critical, according
to the scale published in our Atlassian severity levels. The scale allows us to
rank the severity as critical, high, moderate or low.
This is our assessment and you should evaluate its applicability to your own IT
environment.


Description:

There was an argument injection vulnerability in Sourcetree for Windows via
filenames in Mercurial repositories. An attacker with permission to commit to a
Mercurial repository linked in Sourcetree for Windows is able to exploit this
issue to gain code execution on the system.
Versions of Sourcetree for Windows before version 2.6.10 are affected by this
vulnerability. This issue can be tracked at:
https://jira.atlassian.com/browse/SRCTREEWIN-8884 .



Fix:

To address these issues, we've released the following versions containing a
fix:

* Sourcetree for macOS version 2.7.6
* Sourcetree for Windows version 2.6.10

Remediation:

Upgrade Sourcetree for Windows to version 2.6.10 or higher.

The vulnerabilities and fix versions are described above. If affected, you
should upgrade to the latest version immediately.

If you are running Sourcetree macOS and cannot upgrade to 2.6.10 (Sourcetree for
Windows), upgrade to version 2.7.6.


For a full description of the latest version of Sourcetree, see the release
notes found at https://www.sourcetreeapp.com/update/releasenotes/2.7.6.html.
You can download the latest version of Sourcetree from the download centre
found at https://www.sourcetreeapp.com/.

Acknowledgements:
Atlassian would like to credit Etienne Stalmans and Terry Zhang at Tophant for
reporting these issues to us.
- -----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEXh3qw5vbMx/VSutRJCCXorxSdqAFAltVGpgACgkQJCCXorxS
dqDDgQ/8CkE1lfklIXoPIHPBQOeotujU4+1szCIp16WSLw5j8OhIN0mPO/wd9Vb/
OW1uP6oFloXcZ7uCxfFsCHjP7UAR27sQc2acbDI41bvnLSr/JT5hdEFSive1fpl5
gtWn8cCjon9CQul3lXSsiEtNlKfCCqtEiA14idBedLHsaVdQ+4UmqEhezO1iGaW+
+HMzGcF0IsCVVxZEsJp+/JHPcqddaPeAb6YG9zG9Oiyg/a4kySKBSxev/Tmg8SNw
bDS3gc54zK9Du2U00Cl/2Jh9/0W3u9d9SjcFGGT12mXIHmZrqCa//YTHaAw9LovD
gqP/NTVV8TYF3w4OpDbSznF6BvKs6X41YcpAeCJjlJ9vthGxtaK3MtATu6aVG1d5
I6kKA64tmgJdsPvfTjNL/r+ZBHwTHFJpz5vb3UNo2WhAVt3sYYF0juEconvgL1Gv
fTL10jGzD9RxXuXJoKblJ4STqdSWhNjrcCChhTYgk0PWLTzfQuIFRs2Lu44UprV5
pPmx/bO2elDUmgVRasxEEWqRVQf4L1m8R005TT5ChdP02C6GBXSuwL2G2Bwb+IrW
1TpPteDLBoQwwOfUbgM0HdrOK2dD6EkOWtsgBewFYT82v+wl5WMV1ATKJotbo5O0
FvFPfWa2pIMp2Sq11nxn1q6MuxSzclkTN9A1dXAser61HBxmkRE=
=ceAu
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBW1bBw2aOgq3Tt24GAQifcxAAgBF3h4QeXyhOJjEcbDn4u1+wbndd939d
YDp/kGUSqq23fejUvASoNv0fKF4wqrktiNg2LrwVgMl/ESxXokUIMUk7WZ7vkhg1
RKYnwj4poi3mRwzEj3f74XJPyOqklewQq/dw2MTC2bPbH791N6dlYoXd7psi3dIL
WBaTt1VqvGLZKC8mjNeJxck7lgXlz9N6TCY45xpBcDViFLFT/fU6BjcWt7K/iV8U
ioIgsWlhm4g03nMRpSvo5fMHnpWNrIVDgzgYd2ugXvWx5P1DF5X/xjfUxEafDxPV
Xi3Ki7oEqlbLaKwB8LZi6pe8G4Vro4ZT04NjOMoR4YkYNLORNo3Xf1UG+jsPpexi
ZhX2KrquScwfKwLEYuBUPdhES6nAIKwcQ25C3QVoGgO9C0He/XjvBwKQtWcCM06h
hI+mO6TW0QPjw4i5YLvzPd44vhTfMVIvX+zZ3z1zFnF+rP/2BiQLDoOyr1qR18pW
gFSj+Q0B44kUGS2vARiq+v13p2cIB4d5+Wjci5Vb+XFiIsvps/zUjiBmMFOodS9Q
KxHVZQohiTzFNh44EFb1JRy0JGGnISacFbhULD+yo1pnTZskB4iXweAacAfdmd1y
GGOLqtPAf4n1emKp88BSoJBAGoRNYAptRlkSfryIje54IkU1XpBG5pLWBlgBqsN1
cbXRlBaJIKw=
=3Ib4
-----END PGP SIGNATURE-----