Commit 3c17ed4
Add #[Locked] attributes to prevent client-side property tampering (#549)
This hardens the Modal component against Livewire hydration attacks
(CVE-2025-54068). While the vulnerability was fixed in Livewire 3.6.4,
adding #[Locked] to $activeComponent and $components provides
defense-in-depth by preventing any client-side manipulation of these
properties via the updates mechanism.
The test was updated to use proper server-side methods instead of
directly setting properties, which is exactly what #[Locked] prevents.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent f97ca6b commit 3c17ed4
2 files changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
| |||
0 commit comments