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

no shared audio and video embedding #10174

Closed
mcnesium opened this issue Jul 10, 2018 · 5 comments
Closed

no shared audio and video embedding #10174

mcnesium opened this issue Jul 10, 2018 · 5 comments

Comments

@mcnesium
Copy link

So since #2523 and resulting #6599 we can embed link-shared images into external web sites, which is awesome πŸ‘

I wonder, why this …/preview URL is only available for images, but not for audio and video files, or any other file type. Any clues?

@MorrisJobke
Copy link
Member

I wonder, why this …/preview URL is only available for images, but not for audio and video files, or any other file type. Any clues?

Because we need to re-encode the content otherwise attackers could inject malicious code and it then looks like the nextcloud server itself is the source of that code. Usually this is fixed by other services by serving user content from a different domain, but as we don't have this in Nextcloud and we serve everything from one domain it would be easier for attackers to server malicious files and do further attacks.

That's also the reason, why the real untouched files are always downloaded and never shown inline, because this is the only way to work around this attack beside re-encoding.

@MorrisJobke
Copy link
Member

@rullzer @nickvergessen Correct me if I'm wrong.

@rullzer
Copy link
Member

rullzer commented Jul 10, 2018

That is correct!

@mcnesium
Copy link
Author

sounds reasonable πŸ€”

@mcnesium mcnesium changed the title Embed shared audio and video no shared audio and video embedding Jul 10, 2018
@GAS85
Copy link

GAS85 commented Nov 7, 2018

Just to make it clear:
To embed content to e.g. forum, use shared link with download at the end:

https://domain.com/s/b37j9Lxi9LkR4ft/download

or in case of shared folder you need to embed one particular file

https://domain.com/s/b37j9Lxi9LkR4ft/download?path=/&files=000001.jpg

There is no need to make direct link on previews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants