Joe文字编辑器使权限受到威胁

Joe文字编辑器使权限受到威胁

漏洞ID 1106236 漏洞类型 未知
发布时间 2001-02-28 更新时间 2005-05-02
图片[1]-Joe文字编辑器使权限受到威胁-安全小百科CVE编号 CVE-2001-0289
图片[2]-Joe文字编辑器使权限受到威胁-安全小百科CNNVD-ID CNNVD-200105-013
漏洞平台 Unix CVSS评分 4.6
|漏洞来源
https://www.exploit-db.com/exploits/20658
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200105-013
|漏洞详情
Joe文字编辑器2.8版本可以为.joerc配置文件搜索当前工作目录(CWD),本地用户可以通过放置特洛伊木马.joerc文件进入目录获取其他用户的权限,然后该漏洞等待用户去执行来自目录的joe。
|漏洞EXP
source: http://www.securityfocus.com/bid/2437/info

Joe is a text editor originally written by Joseph Allen. Joe offers a user-friendly interface, with key binding and configuration familiar to many users of Microsoft Word Processing tools.

A problem in the sourcing of the .joerc file could lead to arbitrary execution of commands. By design, joe searches for it's configuration (.joerc) file in three different places. These places are the Current Working Directory (CWD), $HOME/.joerc, and /usr/local/lib/joerc. By creating a custom crafted .joerc file in a world writable directory, a person editing a file in the world writable directory would execute arbitrary commands when starting joe.

Therefore, it is possible for a user with malicious motives to create custom crafted joerc files in world writable directories, and execute arbitrary commands as other users. This could be done through social engineering, and potentially lead to elevated privileges. 


Copying the /usr/local/lib/joerc file to a world writable directory, the following line can be added to create a malicious key binding:

:def spellfile filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty>/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp;cp /bin/zsh /tmp/suid; chmod 4755 /tmp/suid",rtn,retype

This will bind the creation of a SUID shell in the /tmp directory to the keys ^[l. This exploit will allow the attacker to assume the identity of the user of joe.
|参考资料

来源:MANDRAKE
名称:MDKSA-2001:026
链接:http://www.linux-mandrake.com/en/security/2001/MDKSA-2001-026.php3
来源:DEBIAN
名称:DSA-041
链接:http://www.debian.org/security/2001/dsa-041
来源:BUGTRAQ
名称:20010228Joe’sOwnEditorFileHandlingError
链接:http://archives.neohapsis.com/archives/bugtraq/2001-02/0490.html
来源:REDHAT
名称:RHSA-2001:024
链接:http://www.redhat.com/support/errata/RHSA-2001-024.html

相关推荐: MakeBid Auction Deluxe Plaintext Cookie Vulnerability

MakeBid Auction Deluxe Plaintext Cookie Vulnerability 漏洞ID 1102476 漏洞类型 Design Error 发布时间 2002-02-09 更新时间 2002-02-09 CVE编号 N/A CNN…

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