Commit 7493c1a
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 6a28840 commit 7493c1a
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 | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
454 | 467 | | |
455 | 468 | | |
456 | 469 | | |
0 commit comments