Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecureView. Download and Copy buttons are available for secure view file in the search result #9608

Closed
ScharfViktor opened this issue Jul 15, 2024 · 9 comments · Fixed by #9638
Labels
Priority:p1-urgent Consider a hotfix release with only that fix Type:Bug

Comments

@ScharfViktor
Copy link
Contributor

ScharfViktor commented Jul 15, 2024

ocis | 6.1.0+0b8559f91
web 9.1.0

started using https://github.com/owncloud/web/blob/master/docker-compose.yml

Steps:

  • admin upload .png file -> (strange -no preview in the file list)
  • admin add tag secure to .png file
  • admin shares .png to einstein with secure view role
  • einstein tries to find .png file by name and goes to search result

Actual:

  1. einstein cannot see/add tags in the file in Shares with me page but can see tag secure in the filter in the search result
  2. buttons Download Copy and Preview are available for .png file
  3. einstein can see file preview here is wrong. einstein cannot see preview
Screenshot 2024-07-15 at 12 04 58
@JammingBen JammingBen added the Priority:p3-medium Normal priority label Jul 15, 2024
@AlexAndBear
Copy link
Contributor

I don't think with the current implementation of the search service this is not preventable, as we don't get the share permissions

@ScharfViktor
Copy link
Contributor Author

ScharfViktor commented Jul 15, 2024

then we need add permission because secure view feature becomes insecure:

case:

  • admin creates share .txt file with secure view
  • recipient can only open this file in collabora if -> he is in Shares with me page
  • recipient goes to the search result -> he can open file using Onlyoffice
Screen.Recording.2024-07-15.at.15.27.07.mov

@JammingBen
Copy link
Contributor

Can't we check for the missing DAV permission?

@ScharfViktor
Copy link
Contributor Author

we added X: Securely Viewable https://owncloud.dev/apis/http/webdav/#supported-webdav-properties but response doesn't contains it. I'll create issue in ocis repo

Screenshot 2024-07-15 at 16 06 59

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Jul 15, 2024

How this feature is called secure at all if the file can be opened with something else than collabora ? 🫨
no matter if the permissions coming back from the server correct or incorrect ?

I think we have a security issue here

@micbar
Copy link
Contributor

micbar commented Jul 15, 2024

How this feature is called secure at all if the file can be opened with something else than collabora ? 🫨
no matter if the permissions coming back from the server correct or incorrect

Normal downloads are prohibited.

We made it possible to open the File in the webOffice.

Currently it "works as designed" except the full text search.

@butonic we didn't consider that "onlyoffice" is active on the same instance. Can we limit that?

@micbar micbar added Priority:p2-high Escalation, on top of current planning, release blocker Priority:p1-urgent Consider a hotfix release with only that fix and removed Priority:p3-medium Normal priority Priority:p2-high Escalation, on top of current planning, release blocker labels Jul 15, 2024
@micbar
Copy link
Contributor

micbar commented Jul 15, 2024

Making this P1 because this should trigger a new rolling release.

@AlexAndBear
Copy link
Contributor

Making this P1 because this should trigger a new rolling release.

I don't think we need any code changes in web as soon the permission will be exposed via search API, everything should work out of the box.
At least I designed it that way 🤔

@micbar
Copy link
Contributor

micbar commented Jul 15, 2024

Transfer to ocis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p1-urgent Consider a hotfix release with only that fix Type:Bug
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants