CVE Vulnerabilities

CVE-2018-5225

Improper Link Resolution Before File Access ('Link Following')

Published: Mar 22, 2018 | Modified: Apr 20, 2018
CVSS 3.x
9.9
CRITICAL
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS 2.x
6.5 MEDIUM
AV:N/AC:L/Au:S/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu

In browser editing in Atlassian Bitbucket Server from version 4.13.0 before 5.4.8 (the fixed version for 4.13.0 through 5.4.7), 5.5.0 before 5.5.8 (the fixed version for 5.5.x), 5.6.0 before 5.6.5 (the fixed version for 5.6.x), 5.7.0 before 5.7.3 (the fixed version for 5.7.x), and 5.8.0 before 5.8.2 (the fixed version for 5.8.x), allows authenticated users to gain remote code execution using the in browser editing feature via editing a symbolic link within a repository.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Bitbucket Atlassian 4.13.0 (including) 5.4.8 (excluding)
Bitbucket Atlassian 5.5.0 (excluding) 5.5.8 (excluding)
Bitbucket Atlassian 5.6.0 (including) 5.6.5 (excluding)
Bitbucket Atlassian 5.7.0 (including) 5.7.3 (excluding)
Bitbucket Atlassian 5.8.0 (including) 5.8.2 (excluding)

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References