Authenticated members can publish documents into private collections through a retained parent link
Summary
Summary
An authenticated workspace member can publish an arbitrary document into a private collection that they cannot access.
The issue occurs when a detached draft retains a parentDocumentId. During publication, Outline checks permission against the parent document but does not check wheth...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| otherOutline |
< 1.12.0→ 1.12.0 |
1.12.0 |
Original description The description as published by the source.
Summary
An authenticated workspace member can publish an arbitrary document into a private collection that they cannot access.
The issue occurs when a detached draft retains a parentDocumentId. During publication, Outline checks permission against the parent document but does not check whether the member may create documents in the destination collection.
This allows unauthorized content injection into confidential collections. I confirmed the issue as both a read-only member and a member with no access to the target collection. I did not find a way to read the private collection through this issue.
Details
The vulnerable authorization logic is in server/commands/documentCreator.ts, in authorizeDocumentPublish.
At commit cb0207201ed2c8b641809c26e41fbe2bde297072, lines 135 through 143 contain:
if (document.parentDocumentId) {
const parentDocument = await Document.findByPk(document.parentDocumentId, {
userId: user.id,
transaction,
});
authorize(user, "createChildDocument", parentDocument, { collection });
} else {
authorize(user, "createDocument", collection);
}
When the document has no parent, line 142 correctly checks createDocument permission on the destination collection.
When parentDocumentId is present, the code instead checks createChildDocument against the parent. The destination collection is passed in the options object, but the corresponding policy does not inspect that object.
In server/policies/document.ts, lines 157 through 163 co…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY outline/outline