ownCloud · Report #131082
Open Redirector via (apps/files_pdfviewer) for un-authenticated users.
How it was found
Affected Products: OWNCLOUD (https://demo.owncloud.org/index.php/apps/files_pdfviewer) Version Tested: v1.0.712, other versions might be vulnerable Class: Open Redirector Remote: Yes
A non authenticated user can be easily tricked into following one of the following links in order to download a supposedly uploaded file on an owncloud instance: The EvilFile the pdfviewer is trying to redirect will not load in the viewer automatically. But if the user clicks the download button on the right upper corner of the viewer any file will be downloaded instantly and the browser will be redirected to a different domain (ex. https://evildomain.xx ).
****OPEN REDIRECT Attack Replication Steps:
Step 1: Visit https://demo.owncloud.org/index.php/apps/files_pdfviewer?file=https://evildomain.xx/EvilFile.xx [ Check POC1.jpg ]
Step 2: Click Download button on the right upper corner of the viewer.
Step 3: Browser is redirected to https://evildomain.xx/EvilFile.xx
Comment: No user authentication is required for the user to be redirected. All owncloud installations in the wild are vulnerable to this attack.
****Example Phishing Message with OPEN REDIRECT Attack:
Message:
Please view the files i have shared with you by following the link below, if this file is not automatically opened please click the download button on the right upper corner: