/

CVE-2026-129870

Severity:

HIGH RISK

(8.1)

Path Traversal (CWE-22) in Rocboss paopao-ce LocalOSS

CVE-2026-129870

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Deletion

Severity:

HIGH RISK

(8.1)

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

Rocboss paopao-ce has a path traversal flaw in LocalOSS object deletion that can let authenticated users delete server-writable files by supplying crafted avatar or media values. The risk arises when those values are used to construct file paths without adequate containment checks.

Affected context

The issue is reported in paopao-ce versions 0.2.0 through 0.6.0-alpha.3, in the LocalOSS DeleteObject path. The relevant request flows include POST /v1/user/avatar and POST /v1/post/comment, where avatar or media content may influence the file path used for deletion. The impact depends on the files writable by the server process.

Exploit preconditions

  • Attack surface: Authenticated requests to the affected avatar or post-comment endpoints
  • Required access: An account able to submit values processed by the LocalOSS deletion flow
  • Trigger point: Handling a request that causes DeleteObject to process the submitted avatar or media value
  • Why exploitation is possible: Path components in the value may escape the intended storage directory if paths are not safely resolved and constrained

Why this happens

The underlying bug is insufficient path validation when a user-influenced value is used to select a file for deletion. If traversal components are not neutralized and the resolved path is not constrained to an approved storage root, the deletion operation can target files outside the intended directory. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • An attacker may delete configuration or data files writable by the application
  • File deletion could disrupt application availability or cause data loss
  • Removing or altering the availability of configuration files could affect service behavior
  • The consequences may extend to other components that depend on affected files

General mitigation guidance

Defensive patterns focus on ensuring user-controlled values cannot select paths outside an explicitly approved storage area.

  • Prefer opaque object identifiers over accepting filesystem paths from request data
  • Resolve candidate paths and enforce containment within a designated storage root before file operations
  • Reject path separators and other unexpected path components where they are not needed
  • Apply least-privilege filesystem permissions so the service can write only to required locations
  • Use safe-by-default storage abstractions that separate object names from filesystem paths

How teams detect issues like this

  • Use static analysis to find file deletion and path construction operations that depend on request-controlled values
  • Review code paths from avatar and media input through LocalOSS deletion, including path normalization and containment checks
  • Add tests and policy checks that verify file operations remain within approved storage roots
  • Monitor for rejected traversal-like input and unexpected deletion activity, without logging sensitive request data
  • Automated code review tools may help identify user-controlled values reaching filesystem operations

Sources

SourceLink
github.comgithub.com/rocboss/paopao-ce
github.comgithub.com/rocboss/paopao-ce/blob/v0.6.0-alpha.3/internal/dao/storage/localoss.go#L149-L151
github.comgithub.com/rocboss/paopao-ce/blob/v0.6.0-alpha.3/internal/servants/web/core.go#L361-L371
vul.yulun.ac.cnvul.yulun.ac.cn/20261116/paopao-ce/
vulncheck.comvulncheck.com/advisories/rocboss-paopao-ce-0.2.0-through-0.6.0-alpha.3-path-traversal-in-localoss-file-deletion

Frequently asked

questions

The affected endpoints are request-facing, but exploitation requires authentication and access to values processed by the LocalOSS deletion flow.

An authenticated user must be able to submit avatar or media values that reach the affected deletion logic. The resulting impact is limited by the server process's filesystem permissions.

Avoid deriving filesystem paths directly from user-controlled values. Use opaque identifiers and verify that any resolved path stays within an explicitly approved storage directory.

Apply consistent path validation at filesystem boundaries, restrict application write permissions, and test that user-controlled inputs cannot direct file operations outside intended storage areas.

Find out what's already
exploitable in your codebase.