revisions.export authorizes listRevisions instead of download, so a Viewer can export revision markdown or HTML after admin disables ViewersCanExport, bypassing the Settings security export gate.
Summary
Security Report: Viewer export restriction bypass via revisions.export
Credit: Wenhao Wu, Southeast University
Summary
The team preference "Viewer document exports" (viewersCanExport) is intended to control whether viewer-role users can download documents. The primary export en...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| otherOutline |
< 1.10.0→ 1.10.0 |
1.10.0 |
Original description The description as published by the source.
Security Report: Viewer export restriction bypass via revisions.export
Credit: Wenhao Wu, Southeast University
Summary
The team preference "Viewer document exports" (viewersCanExport) is intended to control whether viewer-role users can download documents. The primary export endpoint (documents.export) enforces this via the download document policy, and the web UI consistently hides all download actions — including revision (version history) downloads — behind the same download ability. However, the underlying API endpoint for revision exports, revisions.export, authorizes with the weaker listRevisions policy instead of download, so a viewer can download the full content of any document revision (including attachments) even when the preference is disabled.
Product claim reference
- Settings → Security → "Viewer document exports": "When enabled, viewers can see download options for documents" (
app/scenes/Settings/Security.tsx:330-342, preferenceTeamPreference.ViewersCanExport). - Server-side enforcement of this claim exists solely in the
downloadpolicy (server/policies/document.ts:43-51), which denies guests and viewers unless the preference is enabled. - The frontend gates revision download actions on the same ability (
app/actions/definitions/revisions.tsx:156-158, 196-198, 213-215—visible: ... stores.policies.abilities(activeDocumentId).download), confirming that revision downloads are understood to be within t…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY outline/outline