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

Configuration files composer.lock and package-lock.json exposed to the Internet #856

Closed
llucasti opened this issue Sep 5, 2023 · 1 comment

Comments

@llucasti
Copy link

llucasti commented Sep 5, 2023

Hi!

We've had a vulnerability scan done on a Nextcloud instance and it reported the following as a Medium vulnerability.
Is there something that can be done in the app code to avoid exposing these files? Or is it a Nextcloud issue?

Description
One or more configuration files were found. These files may expose sensitive
information that could help a malicious user to prepare more advanced attacks. It's recommended to remove or restrict
access to this type of files from production systems.

Impact
These files may disclose sensitive information. This information can be used to launch further attacks.

Recommendation
Remove or restrict access to all configuration files acessible from internet.

Details
Development configuration files:
https://nextcloud-url/apps/terms_of_service/composer.lock
composer.lock => Composer lock file. Composer is a dependency manager for PHP.
https://nextcloud-url/apps/terms_of_service/package-lock.json
package-lock.json => npm file. This file keeps track of the exact version of every pa

@GretaD
Copy link
Collaborator

GretaD commented Oct 26, 2023

Hello,
Thank you for your report, but this is not a security issue because version disclosure of the app can be done via other ways (comparing Js files, etc) and then checking the public repo.

@GretaD GretaD closed this as completed Oct 26, 2023
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

2 participants