[NT] SPIDynamics WebInspect Cross-Application Scripting (XAS)

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

  • Next message: SecuriTeam: "[UNIX] SAP Internet Graphics Server Directory Traversal"
    To: list@securiteam.com
    Date: 8 Aug 2005 15:34:31 +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

    - - - - - - - - -

      SPIDynamics WebInspect Cross-Application Scripting (XAS)
    ------------------------------------------------------------------------

    SUMMARY

    SPIDynamics WebInspect is "powerful security assessment tool for Web
    application".SPIDynamics WebInspect has been found to be vulnerable to XAS
    that could lead to remote code execution.

    DETAILS

    As many applications WebInspect uses external programs and Windows
    components for different purposes. It is very common to use COM object of
    Internet Explorer for render reports and displays data. WebInspect in not
    an exception.

    When reports is generated, some parts of scanned site (for example URLs)
    are included into HTML file (file://C:\Program
    Files\SPIDynamics\WebInspect\Working\vulnerability.htm), which opens in
    IE. Because WebInspect doesn't properly normalize displayed data, part of
    URL or other data can be parsed by IE as DHTML, for example JavaScript,
    and leads to code execution on the computer where scanner is installed.

    Analysis:
    Successful exploitation allows remote attackers to execute arbitrary
    script code on the host, where scanner is installed with privileges of
    user who launch the scanner. Victim should scan site and openreport.

    Typically scanner runs on administrator's or security auditor's box with a
    lot of interesting data. It possibly runs under high-privileged account.

    Attacker should create specially crafted site with vulnerability to be
    displayed in report. "Vulnerable" URL should include script code. Example
    of such report is a "Hidden Form Value Vulnerability ID: 4727".

    By default script is executed in Internet Security Zone of IE (not sure).
    But with little effort attacker can use predictable resource location to
    bypass restrictions of Internet Zone and execute script in "My Computer"
    security zone.

    Example:
     < script>window.open('file://C:\\Program
    Files\\SPIDynamics\\WebInspect\\Working\\vulnerability.htm')</script>

    Attacker can use social engineering to install full featured application,
    for example new version of "SPIDynamics Reported ActiveX".

    Proof of Concept:
    Following ASP file can be used to reproduce vulnerability:
    <*****************iisstart.asp***********************>

    < HTML>< HEAD>< BODY>
    <%
    if request.querystring<>"" then
    response.write request.querystring
    end if
    %>
    < form action="script>/<script>window.open(%27file://C:\\Program
    Files\\SPIDynamics\\WebInspect\\Working\\vulnerability.htm%27)</script>"
    method=get> Please login:< br>
    < input type=submit value="Login"><br> < input type=hidden name='hidden'
    value="Login">< br> </form>
    < /BODY>< /HTML>

    </*****************iisstart.asp***********************>

    You should change default error page to iisstart.asp.

    Disclosure Timeline:
    04/15/2005 - Initial vendor notification
    04/15/2005 - Initial vendor response

    Workaround:
    Disable Active Scripting in My Computer Zone:
    <http://support.microsoft.com/default.aspx?scid=kb;en;833633>
    http://support.microsoft.com/default.aspx?scid=kb;en;833633.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:QQLan@yandex.ru> QQLan.
    The original article can be found at:
    <http://www.security.nnov.ru/articles/xas/>
    http://www.security.nnov.ru/articles/xas/

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

    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: "[UNIX] SAP Internet Graphics Server Directory Traversal"

    Relevant Pages

    • Re: Security scanning tools
      ... We also run ISS Internet Scanner, ... > compared the results to the regular nessus scan. ... > it reports no patches to be applied. ... > correctly reports security ...
      (Security-Basics)
    • SUMMARY WAS: OT? Philosophical Question on SA responsibilities
      ... helpful for managers interested in hiring new administrators. ... Would you go thru the 14,600 messages in root and admin ... If I was a new SA I would if encountering a security hole, ... I can see some use for the passwd -s part of the crontab script, ...
      (SunManagers)
    • Re: Clarification-Win2k Netstat sockets interpretation
      ... snip.. ... Before I could manually download every security upate and servicepack from MS.com but now...they send you a bit of Cop-code that fails to run unless ALL defences are down ... Are you sure the script from ntsvcfg is benign in addition to being useful? ... You are absolutely correct there HAL, er ah, Sebastian. ...
      (alt.computer.security)
    • [NT] Flaw in Windows Script Engine Could Allow Code Execution
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The Windows Script Engine provides Windows operating systems with the ... blocked by Outlook Express 6.0 and Outlook 2002 in their default ...
      (Securiteam)
    • Re: BUG with RES/SCRIPT/XP-SP2
      ... I consider JavaScript (known to security people as JavaVirus) as one of the Really Top ... to have a bad script cause damage to my machine. ... This security feature is called the "Local Machine Zone Lockdown". ... Tags, and the CDHtmlDialog class in this forum, and got no response. ...
      (microsoft.public.vc.mfc)