[NT] MetaCart e-Shop Multiple Vulnerabilities

From: SecuriTeam (support_at_securiteam.com)
Date: 05/17/05

  • Next message: SecuriTeam: "[NT] Multiple DotNetNuke Cross Site Scripting (XSS)"
    To: list@securiteam.com
    Date: 17 May 2005 10:40:13 +0200
    
    

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    The SecuriTeam alerts list - Free, Accurate, Independent.

    Get your security news from a reliable source.
    http://www.securiteam.com/mailinglist.html

    - - - - - - - - -

      MetaCart e-Shop Multiple Vulnerabilities
    ------------------------------------------------------------------------

    SUMMARY

     <http://www.metalinks.com> MetaCart e-Shop is a "shopping cart
    application for small businesses and support MSSQL, MS Access and MySQL".
    The MetaCart e-Shop product has been found to contain multiple
    vulnerabilities ranging from cross site scripting to SQL injection
    attacks.

    DETAILS

    Cross-Site Scripting (XSS)
    By issuing a URL such as the following:
    http://[url]/mcartlite/productsByCategory.asp?intCatalogID=1
    &strCatalog_NAME=<script>alert('test')</script>
    An attacker can cause the remote host to include arbitrary HTML and/or
    JavaScript.

    Vulnerable code in productsByCategory.asp:
    strCatalog_name = Request.QueryString("strCatalog_NAME")
    ..
    ..
    strParam = Response.Write (rsCatalog("catalogID"))
    &strCatalog_NAME=Response.Write
    (Server.URLEncode(rsCatalog("catalogName"))) &rsCatalog("catalogName")

    SQL Injection
    By issuing any of the following URLs:
    http://[url]/mcartlite/productsByCategory.asp?strSubCatalogID=2'(Sql
    Injection)
    http://[url]/mcartlite/product.asp?intProdID=1'(SQL Injection)
    An attacker can cause the remote host to include arbitrary SQL statements
    into the product's existing SQL statements.

    Vulnerable code in productsByCategory.asp:
    intCatalogID = Request.QueryString("intCatalogID")
    ..
    ..
    ' Build SQL String using the parameters
    strSQL = "SELECT productID,productName,productPrice FROM products WHERE
    catalogID = '"&strParam&"'"

    Vulnerable code in product.asp:
    intProdID = Request.QueryString("intProdID")
    ..
    ..
    Set rsProdInfo = Conn.Execute("SELECT * FROM " & _
    "products where productID="&intProdID)
    if rsProdInfo.EOF then
    Response.Write "Product Number " & intProdID & _
    " does not exist."

    Solution:
    For productsByCategory.asp do the following:
     * Find:
    intCatalogID = Request.QueryString("intCatalogID")
    After it add:
    intCatalogID = Replace(intCatalogID,"'","")

     * Find:
    strCatalog_name = Request.QueryString("strCatalog_NAME")
    After it add:
    strCatalog_name = Replace(strCatalog_NAME,"<","")

    For products.asp do the following:
     * Find:
    intProdID = Request.QueryString("intProdID")
    After it add:
    intProdID = Replace(intProdID,"'","")

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:the_day@echo.or.id> dedi
    dwianto.
    The original article can be found at:
    <http://echo.or.id/adv/adv13-theday-2005.txt>
    http://echo.or.id/adv/adv13-theday-2005.txt

    ========================================

    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

    ====================
    ====================

    DISCLAIMER:
    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.


  • Next message: SecuriTeam: "[NT] Multiple DotNetNuke Cross Site Scripting (XSS)"

    Relevant Pages

    • [REVS] Lateral SQL Injection: a New Class of Vulnerability in Oracle
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Lateral SQL Injection: a New Class of Vulnerability in Oracle ... How can an attacker exploit a PL/SQL procedure that doesn't even take user ... is then dynamically executed via the EXECUTE IMMEDIATE statement. ...
      (Securiteam)
    • [UNIX] Multiple Vulnerabilities MetaDot Portal Server
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... SQL Injection: ... query he can cause an error message to execute script into an unsuspecting ... users browser thus causing a Cross Site Scripting attack. ...
      (Securiteam)
    • [UNIX] Phorum SQL Injection (userlogin.php)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... An SQL injection vulnerability exists in the 'userlogin.php' script. ... the MD5 hash of the user one character at a time. ...
      (Securiteam)
    • [UNIX] Joomla BSQ Sitestats Component Multiple Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Secunia Research has discovered some vulnerabilities in the BSQ ... SQL query. ... Successful exploitation requires that "register_globals" is enabled. ...
      (Securiteam)
    • [NEWS] TorrentTrader Multiple SQL Injection Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... TorrentTrader Multiple SQL Injection Vulnerabilities ...
      (Securiteam)