Commit 3d419a0
committed
Security: registration privilege strip + Grav 2.0 nonce-key bridge
- GHSA-pxm6-mhxr-q4mj (critical, unauth): the registration form handler
now ignores client-supplied `groups` and `access` even if an admin
added them to user_registration.fields, preventing self-registration
as super-admin. Logs a warning on any attempted injection. Server-side
default_values, invitations and the user_registration.{groups,access}
config remain authoritative.
- IP pseudonymization (rate-limit keys, remember-me cookie salt) now
uses Security::getNonceKey() when running on Grav 2.0+, falling back
to the legacy security.salt config read on Grav 1.7. Tracks Grav 2.0's
GHSA-3f29-pqwf-v4j4 fix without breaking 1.7 compatibility.1 parent f00fad1 commit 3d419a0
3 files changed
Lines changed: 40 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | 10 | | |
3 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
352 | | - | |
353 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
| |||
581 | 587 | | |
582 | 588 | | |
583 | 589 | | |
584 | | - | |
| 590 | + | |
| 591 | + | |
585 | 592 | | |
586 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
587 | 597 | | |
588 | 598 | | |
589 | 599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1026 | 1033 | | |
1027 | 1034 | | |
1028 | 1035 | | |
| |||
1040 | 1047 | | |
1041 | 1048 | | |
1042 | 1049 | | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1043 | 1061 | | |
1044 | 1062 | | |
1045 | 1063 | | |
| |||
0 commit comments