Skip to content

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

Merged
csandanov merged 2 commits intowodby:masterfrom
elaman:master
Jul 24, 2023
Merged

Hide markdown, composer, npm and web.config files everywhere#86
csandanov merged 2 commits intowodby:masterfrom
elaman:master

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.

elaman added 2 commits July 18, 2023 19:09
- 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

Comments