You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue with Seafile Community Edition and OnlyOffice integration where non-shared files can be accessed without authentication through a copied file link.
Steps to Reproduce
Set up Seafile Community Edition with OnlyOffice integration using Docker.
Create a document (e.g., Test.docx) in Seafile.
Click on the document to open it in the OnlyOffice editor.
Copy the file link from the browser.
Paste the link into a non-authorized browser or incognito mode.
Expected Behavior
The link should prompt for authentication or display an error message if the user is unauthorized.
Actual Behavior
The file opens in the OnlyOffice editor, displaying the content. The Seafile user appears connected to the document, even in an unauthorized session.
Additional Information
The file is not shared, and no public link has been generated.
Seafile is running on a Raspberry Pi using Docker with Cloudflare tunnels for HTTPS and internet access.
Configuration Details
Docker Compose file and additional settings can be provided if needed.
Relevant logs from Seafile and OnlyOffice are available upon request.
This behavior seems to bypass authentication for files that are not explicitly shared, which might indicate a misconfiguration or a security issue. Any guidance would be appreciated.
The text was updated successfully, but these errors were encountered:
@tuzumkuru Hello, we were unable to reproduce this issue locally. Could we log in to your Seafile web interface and linux server side to conduct debugging and troubleshooting?
I think it is maybe caused by cache of Cloudflare.
@freeplant Good catch. I tested it by setting a page rule that bypasses caching, and it correctly asked for login as expected.
@tuzumkuru Hello, we were unable to reproduce this issue locally. Could we log in to your Seafile web interface and Linux server side to conduct debugging and troubleshooting?
@imwhatiam The issue has been identified as Cloudflare's caching of the file link. If access to my setup is still required, I can provide it tomorrow.
That said, I believe this is still a concern. Why was the file cached while other pages requiring authentication were not? Even though the caching explains the behavior, it exposes a potential risk. Pages or files requiring authentication should never be cacheable, as this could lead to unauthorized access in scenarios similar to mine.
I encountered an issue with Seafile Community Edition and OnlyOffice integration where non-shared files can be accessed without authentication through a copied file link.
Steps to Reproduce
Expected Behavior
Actual Behavior
Additional Information
Configuration Details
This behavior seems to bypass authentication for files that are not explicitly shared, which might indicate a misconfiguration or a security issue. Any guidance would be appreciated.
The text was updated successfully, but these errors were encountered: