-
Notifications
You must be signed in to change notification settings - Fork 93
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
possible cache escape #1566
Comments
@jukzi have you a concrete sample where there could be have a problem? |
tries to access c:/secret - why?? The problem requires to be investigated. Do you think you could be interested to contribute with your issue?
It should work since long time. After chaning the preference if you type a space in the XML, you should see: |
It doesn't matter what the dialog box says when it still tries to read arbitrary files from filesystem. |
We are busy and I fear that we will have not time to do that for now. I know that we have several tests about this check. If you feel to fix it in lemminx (+test) it should be really nice. |
Ho the problem comes from when you use |
I see the problem only for "file://localhost:". http/https or any host other then localhost does not show the effect. |
Ok I understand more, if it starts with file we consider that it not a remote file and we try to download something. Any contribution are welcome! If you are interested to work on this issue and you need some help, please ask me. |
https://github.com/eclipse/lemminx/blame/2b0fe29f52c111be3d5c1dccdf9d08340c63be31/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/uriresolver/CacheResourcesManager.java#L316
checking for ".." only does not prevent against more (tripple) dots on for example win95
https://cwe.mitre.org/data/definitions/32.html
The text was updated successfully, but these errors were encountered: