linux - ubuntu mongodb apt安装后 利用mongodb权限登录问题
大家讲道理
大家讲道理 2017-05-02 09:26:31
0
1
976

昨天半夜接到阿里云短信通知,说服务器有异地的登录异常

今早来公司问了一圈没人登录,然后去看ubuntu系统日志

发现有两条登录,一条来自罗马尼亚,一条来自上海,使用的用户名都是mongodb
本机使用apt-get 安装过一个mongo版本,此mongodb用户就是这个生成的,后来因为版本过低废弃没用,但是没有卸载。
后又手动安装一个版本,使用root权限启动运行。

说明:
系统 ubuntu 14.04
未使用mongodb用户运行任何服务
防火墙一直处于开启状态 只允许访问22端口和80端口,mongo端口等不对外开放。
查看/etc/passwd 发现mongodb106:65534::/home/mongodb:/bin/bash 运行命令为bash,现在已经禁止此用户登录。
查看mongodb用户组发现mongodb竟然属于root用户组。。。

请问下大神,这个mongodb用户默认生成的用户名密码都是一样的么?还是他们是撞出来的密码?使用这个用户登陆后对服务器可造成哪些伤害?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
漂亮男人

After the default installation of MongoDB ubuntu, it looks like this:

mongodb:X:121:65534::/home/mongodb:/bin/false

The user mongodb is generated, but cannot log in to the operating system.

From your description, there are two possibilities:

1. The user mongodb may have been compromised and modified to be able to log in. Check all relevant logs, but they may not have been deleted.

2. It may just be some scanning tools that scan your operating system.

If it’s the first situation, the consequences will depend on whether the other party has malicious intent. Take some remedial measures quickly, install the latest security patches, check security-related configurations, and back up/encrypt key business data.

For reference.

Love MongoDB! Have fun!


MongoDB Online Lecture Series 19- MongoDB 10 steps to build a single view

Everyone come tomorrow, the 19th, please click: >---<

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!