So we got a root alert mail today from csf/lfd. But we god a hard and long password for root.
We are looking at the logs and found this in the access log.
so the http 200 code worries me.
Checking the session log and finding this:
So checking those session keys in /var/cpanel/sessions/raw and they match.
Looks to me this one got in and used the list accounts option. I did not see any other action untill now and we changed the root pass ofcourse.
But how did this one get in?
Nothing to be found in /var/log/messages and not in /var/log/secure for this ip.
Nothing in the /usr/local/cpanel/logs/login.log either so that is odd.
We are looking at the logs and found this in the access log.
Code:
[03/28/2021:07:27:55 -0000] "GET / HTTP/1.1" 200 0 "-" "Mozilla/5.0" "-" "-" 2087
[03/28/2021:07:27:55 -0000] "GET / HTTP/1.1" 200 0 "-" "Mozilla/5.0" "-" "-" 2087
[03/28/2021:07:28:02 -0000] "POST /login/ HTTP/1.1" 307 0 "https://www.serverdomain.com:2087/" "Mozilla/5.0" "-" "-" 2087
[03/28/2021:07:28:05 -0000] "POST /login/ HTTP/1.1" 307 0 "https://serverdomain.com:2087/" "Mozilla/5.0" "-" "-" 2087
[03/28/2021:07:28:27 -0000] "GET /cpsess6056748524/json-api/listaccts?api.version=1 HTTP/1.1" 200 0 "-" "Mozilla/5.0" "s" "-" 2087
[03/28/2021:07:28:30 -0000] "GET /cpsess8188774263/json-api/listaccts?api.version=1 HTTP/1.1" 200 0 "-" "Mozilla/5.0" "s" "-" 2087
Checking the session log and finding this:
Code:
[2021-03-28 09:28:03 +0200] info [whostmgrd] 31.xx.xx.xx NEW root:3_Nbyd_W6BGvujLW address=31.xx.xx.xx,app=whostmgrd,creator=root,method=handle_form_login,path=form,possessed=0
[2021-03-28 09:28:05 +0200] info [whostmgrd] 31.xx.xx.xx NEW root:KLXRp89PA5ITPQne address=31.xx.xx.xx,app=whostmgrd,creator=root,method=handle_form_login,path=form,possessed=0
Looks to me this one got in and used the list accounts option. I did not see any other action untill now and we changed the root pass ofcourse.
But how did this one get in?
Nothing to be found in /var/log/messages and not in /var/log/secure for this ip.
Nothing in the /usr/local/cpanel/logs/login.log either so that is odd.