[MCOL-4714] Columnstore cross_engine user can be seen by unprivileged user Created: 2021-05-11 Updated: 2021-05-13 Resolved: 2021-05-13 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | installation |
| Affects Version/s: | 5.5.2 |
| Fix Version/s: | 5.6.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Oli Sennhauser | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | packaging | ||
| Environment: |
Ubuntu 18.04, n.a. |
||
| Issue Links: |
|
||||||||
| Description |
|
An unprivileged user can see the cross_engine user's password: oli@ubuntu1804:~$ mcsGetConfig -v -a | grep Cross oli@ubuntu1804:~$ ll /etc/columnstore/Columnstore.xml oli@ubuntu1804:~$ grep Password /etc/columnstore/Columnstore.xml The reason for this seems to be the sticky bit on the directory columnstore: $ ll -d c* $ file columnstore and for others readable files: root@ubuntu1804:/etc/columnstore# ll After removing privileges on those files: root@ubuntu1804:/etc/columnstore# chmod o-rw * it looks a bit better. But logging in a non privileged user throws and error not seen before: root@ubuntu1804:/etc/columnstore# su - oli oli@ubuntu1804:~$ grep secret /etc/columnstore/Columnstore.xml oli@ubuntu1804:~$ ll /etc/columnstore/Columnstore.xml oli@ubuntu1804:~$ mcsGetConfig -v -a Possibly I would expect an error here??? |
| Comments |
| Comment by Oli Sennhauser [ 2021-05-11 ] |
|
Found first impact: MariaDB [test]> CREATE TABLE test ( |
| Comment by Oli Sennhauser [ 2021-05-11 ] |
|
With a: |