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

Hide markdown, composer, npm and web.config files everywhere #86

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

elaman
Copy link
Contributor

@elaman elaman commented Jul 18, 2023

Motivation

Current NGINX_DRUPAL_NOT_FOUND_REGEX default value hides composer and npm files. However only when they are in the base path. But http://example.com/core/composer.json or http://example.com/core/package.json aren't hidden.

The other things that needs hiding are markdown (http://example.com/README.md) and web.config files (http://example.com/web.config, core/assets/scaffold/files/web.config).

The issue was found while running automated a security audit service.

Solution

Modify regex to hide markdown, composer, npm and web.config files no matter where they are.

- All MD files
- web.config file
- Composer and npm packages no matter the depth
@csandanov csandanov merged commit 389ceb5 into wodby:master Jul 24, 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

Successfully merging this pull request may close these issues.

2 participants