Skip to content

Security Improvement: Block PATH_INFO bypass of storage PHP execution rule - #691

Merged
jaydrogers merged 3 commits into
serversideup:release/webserver-improvements-and-fixesfrom
devhammed:fix-storage-folder-security
Sep 10, 2026
Merged

Security Improvement: Block PATH_INFO bypass of storage PHP execution rule#691
jaydrogers merged 3 commits into
serversideup:release/webserver-improvements-and-fixesfrom
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`.
@jaydrogers
jaydrogers changed the base branch from main to release/webserver-improvements-and-fixes September 10, 2026 15:13
@jaydrogers jaydrogers changed the title [FIX] Storage Folder Security Security Improvement: Block PATH_INFO bypass of storage PHP execution rule Sep 10, 2026
@jaydrogers
jaydrogers merged commit c628f94 into serversideup:release/webserver-improvements-and-fixes Sep 10, 2026
79 checks passed
@jaydrogers

Copy link
Copy Markdown
Member

Thanks for the improvement here! This will be included in this release:

@devhammed
devhammed deleted the fix-storage-folder-security branch September 10, 2026 18:01
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