CVE-2016-6517: Liferay Portal directory traversal in barebone.jsp

CVE-2016-6517 · Severity: critical · CVSS 9.8 · Published 2017-01-23

Liferay Portal, a widely used enterprise collaboration and content management platform, contains a security flaw in its file processing component. An attacker can exploit this to access sensitive files on the underlying server, such as configuration files or system passwords. This could lead to a complete compromise of the server and the data stored within the portal.

Technologies: Liferay Portal. Vendors: Liferay.

Quick answers

Is CVE-2016-6517 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2016-6517 being exploited in the wild.
How severe is CVE-2016-6517?
Critical severity, with a CVSS score of 9.8, published 23 January 2017.
Which products and versions are affected?
Liferay Portal 5.1.0.
Is there a fix for CVE-2016-6517?
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-6517 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2016-6517?
Check whether you run Liferay or Liferay Portal 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 directory traversal vulnerability exists in Liferay Portal 5.1.0 within the 'barebone.jsp' component. The issue resides in the 'minifierBundleDir' parameter, which fails to properly sanitize input containing encoded path traversal sequences. An unauthenticated remote attacker can use URL-encoded 'dot-dot-slash' characters (%2E%2E/) combined with a null byte (%00) and a trailing '.html' extension to bypass validation and access arbitrary files on the host operating system, such as /etc/hosts. Successful exploitation can result in full information disclosure and potential system compromise.

Affected products

  • Liferay Liferay Portal 5.1.0

Timeline

  • 2016-08-01: disclosed: Vulnerability details shared on oss-security mailing list
  • 2017-01-23: advisory: NVD published the CVE record

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.