Commit 2f57eaf
committed
This PR was merged into the 7.2 branch.
Discussion
----------
[Runtime] Negate `register_argc_argv` when `On`
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
The `register_argc_argv` ini setting is a terrible idea from the past that can have dramatic consequences:
https://symfony.com/blog/cve-2024-50340-ability-to-change-environment-from-query
While Symfony itself will ignore argv injected via GET, apps are still at risk.
With this PR, I propose to harden all Symfony apps by always emptying argv/argc, so that their value cannot be hijacked.
There are no legitimate use case for this setting anyway.
Linking to php/php-src#12344 for cross-reference.
Commits
-------
917b064 [Runtime] Negate register_argc_argv when its On
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
0 commit comments