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

Public webdav url is vulnerable with full path disclosure #64

Open
TomasKulhanek opened this issue Apr 12, 2018 · 8 comments
Open

Public webdav url is vulnerable with full path disclosure #64

TomasKulhanek opened this issue Apr 12, 2018 · 8 comments
Assignees
Labels

Comments

@TomasKulhanek
Copy link
Member

https://www.owasp.org/index.php/Full_Path_Disclosure
the path url contains path within user context e.g. https://portal.west-life.egi/webdav/ABCDefg123/b2drop/myfile.txt which discloses path to other user files. It should be better https://portal.west-life.egi/webdav/ABCDefg/myfile.txt

@TomasKulhanek
Copy link
Member Author

Additionally, private deployment allows to browse content of another user.

@TomasKulhanek TomasKulhanek self-assigned this Jun 14, 2018
@TomasKulhanek
Copy link
Member Author

TomasKulhanek commented Jun 15, 2018

@TomasKulhanek
Copy link
Member Author

Still present in public portal

@TomasKulhanek
Copy link
Member Author

TomasKulhanek commented Sep 12, 2018

  • switch metadata service to provide fixed path
  • redirect, proxy /webdav and /public_webdav to the VF container

@TomasKulhanek
Copy link
Member Author

@TomasKulhanek TomasKulhanek self-assigned this Sep 14, 2018
@francoisruty
Copy link
Contributor

francoisruty commented Sep 14, 2018 via email

@TomasKulhanek
Copy link
Member Author

Fixed.

@TomasKulhanek
Copy link
Member Author

This issue seems to be again in place. Generated url allows browse root of all virtual folders. Check that apache config
RewriteMap davredir prg:/opt/virtualfolder/MetadataService/webdavhash2path
is in place and that the webdavhash2path decodes the path correctly.
Probably introduce fix that will prevent zero or error returned by webdavhash2path to redirect to root.

@TomasKulhanek TomasKulhanek reopened this Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants