This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
Require API key to access /api/ path #1656
ghost
started this conversation in
Feature Requests
Replies: 1 comment 6 replies
-
I can't reproduce this. But I think it might be related to your setup. How did you make it run in the subfolder? I suppose that due to the subfolder, the password restrictions don't apply. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently host Paperless-ng at https://<mydomain.com>/paperless and recently discovered that - despite requiring login to view the Paperless interface - anyone w/ my URL can theoretically access the previews of my documents using the Paperless API path, which doesn't require login or a key of any kind.
For example, when I preview a document in Paperless, it generates a URL like this:
https://<mydomain.com>/paperless/api/documents/10/preview/
I can then take that URL and use it to access any document (by changing the number) or even someone else's documents within their own Paperless instance (by changing the 'mydomain.com' portion). I tested this in a private browsing session where I wasn't logged in and it worked exactly as suspected.
Unless I'm missing something, this is a huge security vulnerability that I think would typically be resolved by requiring an API key in the URL to prevent others from snooping.
In the meantime, I've protected my instance w/ Authelia, but this also means I can no longer use the mobile app given it requires access to the /api path.
Beta Was this translation helpful? Give feedback.
All reactions