/

CVE-2023-54420

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in LiveBOS ShowImage Handler

CVE-2023-54420

Received

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

LiveBOS contains a path traversal vulnerability in the image-serving endpoint, where the imgName parameter can be manipulated to reference files outside the intended directory. An unauthenticated attacker may be able to read arbitrary system files by sending a crafted request that bypasses the endpoint's suffix handling.

Affected context

The issue affects LiveBOS builds through 2023-08-16 in the /feed/ShowImage.do image-serving endpoint. It occurs when attacker-controlled imgName values are used to locate files and path traversal sequences are not reliably contained; the reported suffix bypass may allow crafted requests to reach files outside the intended image location.

Exploit preconditions

  • Attack surface: The /feed/ShowImage.do endpoint must be reachable.
  • Required access: The reported issue does not require authentication.
  • Trigger point: A request supplies a crafted value for the imgName parameter.
  • Why exploitation is possible: Path components can escape the intended directory, and suffix handling may be bypassed, allowing the endpoint to access unintended files.

Why this happens

The underlying flaw is improper restriction of a user-controlled path, mapping to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). The insecure pattern is using a request parameter to construct or resolve a filesystem path without reliably enforcing that the final resolved path remains within an approved directory.

Potential impact

  • An attacker may read sensitive system or application files.
  • Exposed files could reveal credentials, configuration details, or other information useful for further attacks.
  • Disclosure of system files could support additional compromise or disruption.

General mitigation guidance

Mitigation generally focuses on removing direct control of filesystem paths from request parameters.

  • Prefer mapping opaque identifiers to approved files rather than accepting path-like input.
  • Canonicalize paths and verify that the resolved location remains within the intended directory.
  • Apply strict allowlists for permitted names and file types; do not rely on suffix checks alone.
  • Reduce trust in request parameters and limit the application process's filesystem permissions.
  • Return only the minimum file content needed and avoid exposing system paths through errors.

How teams detect issues like this

  • Use static analysis to identify request parameters flowing into file access or path-construction APIs.
  • Review image-serving code for missing canonical-path containment checks and suffix-only validation.
  • Monitor endpoint requests for traversal patterns, unusual separators, or repeated attempts to access unexpected files.
  • Apply gateway policies that restrict malformed path-like parameter values, while recognizing that filtering is not a substitute for safe path handling.
  • Include regression tests that verify requests cannot access files outside the approved image directory.

Sources

SourceLink
github.comgithub.com/luck-ying/Library-POC/blob/master/2023HW/20238.16/LiveBOS_howImage.do%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.py
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/livebos-file-read.yaml
vulncheck.comvulncheck.com/advisories/livebos-unauthenticated-path-traversal-file-read-via-showimage-do

Frequently asked

questions

Yes. The affected endpoint can be reached over HTTP, and the reported issue does not require authentication.

Network access to the endpoint is the key prerequisite; the vulnerability description indicates that authentication is not required.

Avoid using user-supplied path strings to select files. Resolve approved identifiers to files and ensure any resolved path remains inside the intended directory.

Use allowlisted file selection, enforce canonical-path containment, apply least-privilege filesystem access, and test file-serving routes against traversal attempts.

Find out what's already
exploitable in your codebase.