Quick answers
- Is CVE-2016-4340 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2016-4340 being exploited in the wild.
- How severe is CVE-2016-4340?
- High severity, with a CVSS score of 8.8, published 23 January 2017.
- Which products and versions are affected?
- GitLab 8.2.0 through 8.2.4, 8.3.0 through 8.3.8, 8.4.0 through 8.4.9, 8.5.0 through 8.5.11, 8.6.0 through 8.6.7, 8.7.0.
- Is there a fix for CVE-2016-4340?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2016-4340 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2016-4340?
- Check whether you run GitLab at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A privilege escalation vulnerability exists in the GitLab 'impersonate' feature due to improper access controls. An authenticated attacker can exploit this by sending a crafted POST request to the '/admin/users/stop_impersonation' endpoint, specifying a target username (such as 'root') and providing a valid authenticity token from their own session. This allows the attacker to bypass intended restrictions and assume the identity of the target user. The vulnerability affects GitLab versions 8.2.x through 8.7.0 and has been addressed in official security patches released by the vendor.
Affected products
- GitLab GitLab 8.2.0 through 8.2.4, 8.3.0 through 8.3.8, 8.4.0 through 8.4.9, 8.5.0 through 8.5.11, 8.6.0 through 8.6.7, 8.7.0
Timeline
- 2016-05-02: advisory: GitLab released security patches and an advisory for this vulnerability.
- 2016-08-15: other: Public exploit published on Exploit-DB.
- 2017-01-23: disclosed: NVD published the CVE record.