CVE-2022-28981: Path Traversal Vulnerability in com.liferay.headless.discovery.web Package

Summary

23/09/2022
Yes i
High
7.5

CVE-2022-28981: Liferay Portal Path Traversal Vulnerability via the Hypermedia REST APIs Module. Affects com.liferay:com.liferay.headless.discovery.web versions < 4.0.12. Fixed in 4.0.12. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The com.liferay.headless.discovery.web package is part of the Liferay Portal, which provides a set of APIs for accessing and managing resources in a web environment. This package enables developers to create hypermedia-driven applications, allowing for dynamic interaction with web services. However, it has been identified to have a significant security flaw that could expose sensitive files to unauthorized access.

Vulnerability Detail

The vulnerability arises from a path traversal issue in the Hypermedia REST APIs module of the com.liferay.headless.discovery.web package, affecting versions prior to 4.0.12. Attackers can exploit this flaw by manipulating the 'parameter' parameter to access files outside the intended directory, specifically files located outside of com.liferay.headless.discovery.web/META-INF/resources. This could lead to unauthorized data exposure, potentially compromising sensitive information stored on the server.

How To Fix

Minimum fixed version

4.0.12

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, a temporary workaround is to restrict access to the affected APIs or implement additional validation on the 'parameter' parameter to prevent unauthorized file access. However, this is not a substitute for applying the official patch.

Conclusion

The CVE-2022-28981 vulnerability in the com.liferay.headless.discovery.web package poses a significant risk due to its path traversal nature, allowing unauthorized file access. It is crucial to update to version 4.0.12 or later to mitigate this risk effectively.

See every vulnerability recorded for com.liferay:com.liferay.headless.discovery.web →

Share this vulnerability

FAQ

CVE-2022-28981 is a path traversal vulnerability found in the com.liferay.headless.discovery.web package, allowing unauthorized access to files on the server.

Versions of com.liferay.headless.discovery.web prior to 4.0.12 are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities using just the pom.xml file. Visit Vulert Scanner to check your application without any signup.

Exploitation of this vulnerability could lead to unauthorized access to sensitive files, potentially compromising the security of the application and its data.

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

4.0.12

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback