Skip to content

[FIX] Storage Folder Security - #691

Open
devhammed wants to merge 1 commit into
serversideup:mainfrom
devhammed:fix-storage-folder-security
Open

[FIX] Storage Folder Security#691
devhammed wants to merge 1 commit into
serversideup:mainfrom
devhammed:fix-storage-folder-security

Conversation

@devhammed

Copy link
Copy Markdown

This PR expands the storage folder PHP files regex pattern in Apache, Nginx, and Caddy configurations to block PHP file execution.

Currently, the regexes will block example.com/storage/evil.php, but malicious users can still access example.com/storage/evil.php/home , which will take advantage of PHP PATH_INFO support and execute their files.

… storage directories

Expanded the regex patterns in Apache, Nginx, and Caddy configurations to block PHP file execution more reliably by accounting for trailing slashes after `.php`.
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.

1 participant