A permission enforcement flaw allows users without download privileges (download=false) to still expose and retrieve file content via public share links when they retain share privileges (share=true). This bypasses intended access control policy and enables unauthorized data exfiltration to unauthenticated users. Where download restrictions are used for data-loss prevention or role separation.
The backend applies inconsistent authorization checks across download paths:
Perm.Download:
Perm.Share:
Perm.Download:
As a result, a user who is blocked from direct downloads can create a share and obtain the same file via /api/public/dl/<hash>.
perm.share = trueperm.download = falsePOST /api/resources/nodl_secret_<rand>.pdf with Content-Type: application/pdfGET /api/raw/nodl_secret_<rand>.pdf202 Accepted (blocked)POST /api/share/nodl_secret_<rand>.pdf200, response includes hash (example: qxfK3JMG)GET /api/public/dl/<hash>200, Content-Type: application/pdf, and PDF bytes are returnedLive evidence captured (March 1, 2026):
create user: 201create file: 200direct /api/raw: 202 Acceptedcreate share: 200public download /api/public/dl/mxK-ppZb: 200public download content-type: application/pdfpublic download body length: 327 bytesThis is an access control / authorization policy bypass vulnerability.
share=true but denied download.{
"cwe_ids": [
"CWE-284",
"CWE-639",
"CWE-863"
],
"github_reviewed": true,
"github_reviewed_at": "2026-03-18T12:59:12Z",
"nvd_published_at": "2026-03-20T00:16:17Z",
"severity": "MODERATE"
}