-
Notifications
You must be signed in to change notification settings - Fork 720
Update CraftValetDriver for compatbility with craftcms/security-patches #1516
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
Conversation
When applying https://github.com/craftcms/security-patches to a Craft project, the fix for [CVE-2024-56145](GHSA-2p6p-9rc9-62j9) breaks sites served by Valet (and Herd). This fix allows these sites to work when using Valet (and Herd).
@adrum Not sure if you have the details, but can you explain how |
@mattstauffer Of course! When utilizing the security patches plugin, they are just throwing a 400 anytime it's set: https://github.com/craftcms/security-patches/blob/main/src/Extension.php#L45 |
Here's the proper fix they applied: craftcms/cms@3.9.13...3.9.14 I think the https://github.com/craftcms/security-patches package is a quick solution that blocks the vulnerability in a "big hammer" way. |
Ahh, that's so helpful. So if you have this security patches thing set, then it forces this error every time. And future versions don't even do anything with I'm going to merge, but could you do me a sanity check and grep through the codebase to make sure there aren't any other references to Thanks so much! |
@mattstauffer I didn't see any references, aside from vendor dependencies. All of them were CLI or mocking related:
|
@adrum brilliant. Thank you! |
…tches to Craft. Craft errors when the `$_SERVER['argv']` variable is set, so we just need to `unset` it if it's set. More info on the Valet for Mac PR laravel#1516
When applying https://github.com/craftcms/security-patches to a Craft project, the fix for CVE-2024-56145 breaks sites served by Valet (and Herd).
This fix allows these sites to work when using Valet (and Herd).