Commit 9e08cf3
committed
Security: Fix checking of admin tokens in CWS
When the login endpoint of the CWS API was called with an admin token,
but no admin token was configured, login succeeded.
This allowed attackers to impersonate any CWS user in CMS instances with
no admin token configured.
Thanks to Samet Akıllı <ssametakilli@gmail.com> for reporting the issue.1 parent f26a257 commit 9e08cf3
2 files changed
Lines changed: 18 additions & 2 deletions
File tree
- cmstestsuite/unit_tests/server/contest
- cms/server/contest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
450 | 463 | | |
451 | 464 | | |
452 | 465 | | |
0 commit comments