Commit 88bce0a
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 88bce0a
2 files changed
Lines changed: 9 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: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
| |||
0 commit comments