Commit 02f04fe
authored
fix(security): sanitize $_GET input before nonce construction in wp_ajax_fetch_list()
Raw $_GET['list_args']['class'] and $_GET['list_args']['screen']['id'] were used
directly to build the nonce action string and passed to _get_list_table() without
any sanitization or existence checks. An attacker controlling list_args[class]
could influence the nonce key being verified, undermining the referer check.
Apply sanitize_key() and isset() guards to both values before use, ensuring the
nonce action string and _get_list_table() arguments are constructed from clean input.1 parent e12ddb3 commit 02f04fe
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments