Tika and Leantime secondary file-reference boundaries¶
Two July 30 records expose the same durable file-ingestion question: does an accepted dataset or import request contain a secondary filename that is later interpreted relative to the server filesystem or by a URL-capable file API?
Sources:
- Apache Tika GHSA-vrmh-37mg-28h3: the ISA-Tab parser accepts
Study Assay File Namereferences that can traverse outside the dataset directory and emit the referenced file into extracted text; and - Leantime GHSA-rfxf-9pcf-q3rq: the authenticated Blueprints import path passes caller-selected filenames to
file_get_contents(), creating local-path and URL-wrapper interpretation boundaries.
The Tika record covers 1.8 through 3.3.1 and 4.0.0-alpha-1. Verify exact fixed releases from the upstream advisory before claiming a version is corrected.
Canary references only
Use disposable parser/import roots, one synthetic outside-root file, and owned callback URLs. Never reference environment files, keys, application source, cloud metadata, internal services, or another tenant's uploads.
Preconditions¶
- Confirm the exact parser or import route is reached. Merely accepting an archive, directory, or blueprint is not enough.
- Record the service working directory, dataset/import root, path canonicalization, URL-wrapper configuration, process identity, and output channel.
- Create
inside-canary.txtunder the intended root andoutside-canary.txtin a disposable sibling directory. Give each a random, non-secret marker. - For URL behavior, run one owned HTTP listener that returns a harmless marker and cannot redirect to non-owned destinations.
Tika ISA-Tab reference workflow¶
- Build a minimal valid ISA-Tab dataset with ordinary investigation, study, and assay files. Establish the extracted-text baseline.
- Change only
Study Assay File Name: normal child name, missing name,../sibling reference, repeated traversal, absolute path, encoded separator if the surrounding ingestion layer decodes it, and symlink to the outside canary. - Instrument the raw field, decoded value, joined path, canonical path, containment decision, file-open target, and extracted output marker.
- A bounded positive is accepted investigation metadata -> secondary assay filename resolves outside the dataset root -> only the synthetic outside marker appears in extracted text.
- Compare patched and affected builds with the same fixture. Component-aware containment must be evaluated after decoding and symlink resolution.
Do not describe archive extraction traversal unless an archive entry itself writes outside the root; this issue is a secondary-reference read during parsing.
Leantime blueprint file-selector workflow¶
- Capture a normal authenticated Blueprints import request from the exact lab version. Identify the JSON-RPC method and the field that reaches
file_get_contents()without guessing undocumented schemas. - Submit the inside canary, sibling canary, absolute temporary canary, and owned HTTP URL one dimension at a time. Test only URL wrappers enabled in the lab; never use process, archive-to-execution, or filter chains.
- Record raw filename, PHP wrapper classification, normalized local path or parsed URL, open/fetch target, response marker, and import parser result.
- Keep local read and outbound fetch claims separate. The owned listener proves server-side fetch; the random outside marker proves local opening.
- Negative controls: unauthenticated request, unrelated low-role user if object ownership applies, disabled remote wrappers, out-of-root rejection, random nonexistent path, and corrected build.
Evidence and reporting¶
Report manifest secondary filename to outside-root parser read, blueprint filename to local file open, or blueprint filename to owned outbound fetch. Include authentication state, exact route/parser, roots, canonical paths, wrapper configuration, marker hashes, callback logs, and fixed controls. Do not infer code execution from file_get_contents() or from parser output.
November 16 follow-up: SSCMS layerImageUpload, a copy parameter turns an upload endpoint into an anonymous-download file read (CVE-2026-129539 / GHSA-j86m-5x66-8h64, high, 7.2.0 through 7.4.0)¶
Any registered user-center account sends siteId 0 with crafted filePaths entries to the layerImageUpload endpoint, and the server copies referenced server files into the caller's public sitefiles/home upload directory, which is then downloadable anonymously. The endpoint validates the image workflow but never asks where the source path lives; the copy step is the read primitive, and the attacker-chosen destination is the exfil channel (issue 3909, sink at LayerImageUploadController.Submit.cs#L114-L130).
Operator rules:
- Any upload endpoint that accepts a path/URL source parameter instead of file bytes is a read primitive. Validation typically covers the image format or the destination, never the source containment. Hunt pattern: grep upload/image/merge/preview controllers for parameters named
filePath|source|src|path|urlthat feed a copy/move/open call. - Pair the read with an attacker-controlled destination. The escalation here is that the copy lands in a web-served directory the caller can fetch anonymously. Black-box probe (authorized lab only): point one
filePathsentry at a disposable outside-root marker file you planted, then request the public upload URL for it; the marker reappearing is the whole proof. - Sweep zero/default tenant parameters.
siteId 0selects site context from outside any legitimate tenant flow; on any site/tenant-scoped parameter, include 0, empty, and default values in the battery, they often resolve to a shared or root context with weaker checks.
Validation boundary: disposable SSCMS instance, planted marker files only; never copy application config, connection strings, or key material into a public directory even briefly on a shared host.
November 25 follow-up: two reference-resolving sinks hand you the server's secret files (Eclipse Apoapsis ORT Server reporter-template:// and Posit Package Manager custom-homepage)¶
- ORT Server
reporter-template://reads (CVE-2026-136863 / GHSA-chwp-h8jc-px94, high, server 0.1.0-0.83.0). The file-based configuration providers do not restrict resolved paths to the configured directory: an authenticated user allowed to trigger an ORT run for a single repository puts../sequences or absolute paths intoreporter-template://references in the reporter job config, and the reporter worker reads arbitrary files, embedding them in the generated report: environment variables, mounted secrets, and cross-tenant shared configuration. Rules: (a) on any CI/analysis/report platform, every URI-scheme config field (template://,file://,config://, scheme-shaped values in job YAML) is a file-read candidate; fuzz../and absolute paths in each and check whether the artifact contains the file, that is the whole PoC; (b) report artifacts are an exfil channel, the read lands in a downloadable output, no outbound network needed; (c) price by blast radius: single-repo trigger permission reaching all tenants' shared config is a horizontal-to-vertical ladder. - Posit Package Manager
/__api__/custom/home/traversal (CVE-2026-135888 / GHSA-jp9r-h8vj-r627, critical, multiple bands before .2/.4/.6 patch levels). The custom-homepage asset endpoint appends the request URI to a filesystem path; in the default configuration (Server.LandingPageunset) paths resolve from the filesystem root, so no../sequences are needed at all: simply request/etc/passwd-class paths appended to the endpoint. Scanners that test only for traversal sequences miss it entirely. Rules: (a) for every asset/static-file endpoint, try the plain absolute path appended first, before any encoding tricks, a "no traversal needed" default-config leg is the highest-severity shape; (b) the read runs as the service account, enumerate what that account can read (package store, config, tokens) and prove with one synthetic canary; (c) version-band fingerprinting here is per-branch (2025.09/2025.12/2026.04/05/06/08/09/10/11 each with its own fixed level), fingerprint the exact branch from the product's own version endpoint before claiming exposure.