# GHSA-22J9-2W6R-J7C2: Confused-deputy BAC in the direct-upload endpoint

- Database: GitHub
- Severity: CVSS 6.5 (Medium)
- Published: 2026-09-29
- Modified: 2026-09-29

## Affected versions

- github.com/OpenListTeam/OpenList/v4 (Go): through 4.2.5

## Description

## Impact

A low-privilege authenticated user can obtain a presigned upload URL for any path within their own BasePath that per-path meta write-restrictions should forbid, fully bypassing those write restrictions.

## Proof of Concept

The `FsUp` middleware (`server/middlewares/fsup.go`) authorizes the `File-Path` request header, but the handler `FsGetDirectUploadInfo` (`server/handles/direct_upload.go`) builds the destination from the body field `req.Path` with only `user.JoinPath` and no `CanWrite` check. Send `POST /api/fs/get_direct_upload_info` with header `File-Path: /allowed` and body `{"path":"/restricted","file_name":"x","tool":"...","file_size":1}`; the response contains a presigned upload URL for `/restricted/x`.

## References

- https://github.com/OpenListTeam/OpenList/security/advisories/GHSA-22j9-2w6r-j7c2

Page: https://cve.now/GHSA-22J9-2W6R-J7C2

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
