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.doendpoint must be reachable. - Required access: The reported issue does not require authentication.
- Trigger point: A request supplies a crafted value for the
imgNameparameter. - 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.

