OpenSign icon indicating copy to clipboard operation
OpenSign copied to clipboard

[Bug]: fileupload issues download tokens without file authorization (CVE-2026-72688; reproduced on v3.0.1)

Open lenny76 opened this issue 1 month ago • 0 comments

Summary

The fileupload Parse Cloud Function issues a signed download URL for a caller-supplied file URL without checking the caller's session or authorization for the file. This is an independent reproduction of the already-public CVE-2026-72688, not a new discovery or a request for another CVE.

I did not find an existing issue specifically tracking fileupload. #2205 tracks the sibling getsignedurl endpoint; protecting that endpoint alone leaves this additional token-issuing entry point to review.

Tested version

  • Official tag v3.0.1, source commit 62117d36e0ef087db3157139daf4c67b5d612580, built locally without application authorization patches.
  • Local file storage, using only a fictitious document on an installation I control.
  • The source package.json still declares 2.37.0; the tag and commit above identify the tested release.

Reproduction with an owned test document

  1. Upload a fictitious PDF normally and retain its stored file URL, without the query string.
  2. Call POST /api/app/functions/fileupload with Content-Type: application/json, the installation's public X-Parse-Application-Id, and body {"url":"OWNED_TEST_PDF_URL_WITHOUT_QUERY"}.
  3. Send no cookies, session token, authorization header or master key.
  4. Retrieve the returned URL in a separate unauthenticated request.

Observed: the function returned HTTP 200 with a token-bearing URL. The subsequent unauthenticated GET retrieved the test PDF, verified by its %PDF header.

Expected: issuing a file-access capability requires authorization for the actual file. A session must be checked against document/file access; legitimate guest access must be scoped to an invited recipient and document, with expiry and revocation enforced when downloading.

In apps/OpenSignServer/cloud/parsefunction/fileUpload.js, the function passes request.params.url directly to getSignedLocalUrl(url, 200) without an authorization check.

Proposed fix and related reports

Draft PR #2322 proposes shared document/file authorization across fileupload, getsignedurl, guest document reads and signing. It includes frontend invitation changes and migration requirements, so it needs maintainer review before adoption. Its validation includes 41 policy/proxy tests, 16 Parse/Mongo HTTP scenarios and a complete browser signing flow. A live S3 service and non-SMTP invitation transports were not tested.

Related: #2205, #2218, #2262. Public record: CVE-2026-72688. Original discovery credit remains with the researcher named in that record.

No third-party installation or real customer document was accessed. This report contains no live file URL, token or credential. Could you confirm the official fix commit and first fixed release, or link the existing tracking issue if this is already covered elsewhere?

lenny76 avatar Oct 28 '26 09:10 lenny76