Re: Question on IIS servers and reverse lookup ... found answer

From: Maxime Ducharme (mducharme_at_cybergeneration.com)
Date: 03/14/05

  • Next message: Danny: "Limitlogin v1.0 released from MS"
    To: "Robert Schwartz" <robert.schwartz@ucdmc.ucdavis.edu>, <focus-ms@securityfocus.com>
    Date: Mon, 14 Mar 2005 09:45:09 -0500
    
    

    Hello again

    Found the culprit, another port was opened for
    FTP.

    I found each IPs blocked by our firewall in FTP's
    log file, these are all anonymous FTP scanners
    without reverse DNS configured (DNS server times out,
    no reply).

    Thanks all for reply

    Have a nice day

    Maxime Ducharme
    Programmeur / Spécialiste en sécurité réseau

    ----- Original Message -----
    From: "Robert Schwartz" <robert.schwartz@ucdmc.ucdavis.edu>
    To: <postmaster>
    Cc: <focus-ms@securityfocus.com>; <mducharme@cybergeneration.com>
    Sent: Friday, March 11, 2005 11:00 AM
    Subject: Re: Question on IIS servers and reverse lookup

    Have you tried disabling netbios over TCP/IP? Is integrated or journaled
    authentication checked at all (even if anonymous is also checked) on that
    web server's security tab? If so is there a DNS lookup for it? Was that
    client 211.40.x.y in your http access log? If not maybe you should remove
    netbios over TCP/IP on the interface your web server uses to talk to the
    public Internet? There's a huge list of steps to take to secure an IIS
    server depending on the version. Google for some checklists for securing
    IIS and follow them.

                 "Miroslaw Slawek
                 Chorazy"
                 <mchorazy@depaul. To:
                 edu> <mducharme@cybergeneration.com>,
                                           <focus-ms@securityfocus.com>
                 03/10/2005 11:52 cc:
                 AM
                                                                      Subject:
                                           Re: Question on IIS servers and
                                           reverse lookup

    In addition to that I would say setup listening devices (that record to
    logs) in addition to the low-level packet capture.
    I would use tools like PSInternals.com TDImon and TCPVIEW Pro, Regmon

    They ought to give you more hints about what the system activity is as the
    packet is being sent to that UDP:137 port.

    slawek

    >>> "Maxime Ducharme" <mducharme@cybergeneration.com> 3/10/2005 12:23 >>>

    good point

    Audit is activated and I do not see failed or successful
    login at this time range.

    we do not run protected directories on IIS, these
    are simple web sites with some ASP & ASP.NET code.

    thx for the reply slawek

    any other ideas ?

    Maxime Ducharme
    Programmeur / Spécialiste en sécurité réseau

    ----- Original Message -----
    From: "Miroslaw Slawek Chorazy" <mchorazy@depaul.edu>
    To: <mducharme@cybergeneration.com>; <focus-ms@securityfocus.com>
    Sent: Thursday, March 10, 2005 11:58 AM
    Subject: Re: Question on IIS servers and reverse lookup

    Do you have Security Audit turned on and see Failure Events of the
    Logon/Logoff type timestamped at the same time when IIS tries to send the
    NetBIOS Name Resolution (UDP:137) packet?

    Maybe these are authentication attempts against your IIS Server coming from
    the Internet and the IIS Server is sending a packet to destination asking
    for Domain Name?

    slawek

    >>> "Maxime Ducharme" <mducharme@cybergeneration.com> 3/9/2005 16:41 >>>

    Hi to the list

    We are running a new iptables firewall with
    restrictives policies.

    I just noticed that sometimes (between 1 an 4 packets per
    weeks), our IIS 5.0 server try to send NetBIOS name
    query on foreign IPs.

    Here is a hex dump of that packet :

    11:44:56.495348 x.x.x.x.netbios-ns > 211.40.x.y.netbios-ns: NBT UDP
    PACKET(137): QUERY; REQUEST; UNICAST
    0x0000 4500 004e b2bf 0000 8011 ff8f XXXX XXXX E..N.........hR.
    0x0010 d328 913c 0089 0089 003a 6ff0 c7ee 0000 .(.<.....:o.....
    0x0020 0001 0000 0000 0000 2043 4b41 4141 4141 .........CKAAAAA
    0x0030 4141 4141 4141 4141 4141 4141 4141 4141 AAAAAAAAAAAAAAAA
    0x0040 4141 4141 4141 4141 4100 0021 0001 AAAAAAAAA..!..

    x.x.x.x is our server (i replaced hex dump with XXXX XXXX too)

    Source : our server
    Proto : UDP
    Source port : 137
    Dest : foreign server
    Dest port : 137

    I'd like to identify the source of these packets.

    One thing that comes in mind is :
    Would it be related to the option in IIS "reverse
    lookup host" to log hostnames in the log file ?

    I remember that nslookup() function of NT kernel
    uses netbios if DNS doesnt reply anything
    (correct me if i'm wrong).

    There is not other inbound port than 80 opened.
    Opened outbound ports are packets related to a already
    opened connection on port 80 and DNS queries to our
    servers. The server itself cannot open a connection
    on Internet.

    Since this server is hosting ASP & ASP.NET services,
    I agree it would be possible to get access via
    some crafted URLs or webapp attacks, but we didnt
    see anything else than these packets.

    Someone may enlighten me ?

    Thanks in advance

    Maxime Ducharme
    Programmeur / Spécialiste en sécurité réseau

    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------

    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------

    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------

    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------


  • Next message: Danny: "Limitlogin v1.0 released from MS"

    Relevant Pages

    • Re: HttpHandler not working
      ... !>have anything to do with the non default port that I am using?? ... The 404 Page not found error from IIS is typical error message for permission problems. ... But when I run it from our web app server (Windows Server 2003-R2, ... and automatically has read rights to the datafeed directory in your development box.. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Can I run an Internet web server from a Win2K computer?
      ... You can deffinately run an internet website from IIS on Windows 2000 Pro., ... Be aware though, that there can be no more than 10 simultaneous connections, but for your homegrown website, I would think that this is not a problem. ... You will have to set up your broadband router to forward incoming HTTP connections on port 80 to the computer hosting the website ... I'm trying to use the web server that comes with Windows 2000 ...
      (microsoft.public.win2000.general)
    • Re: ISA2004 SP2: EventID 14148
      ... Please do not send email directly to this alias. ... is that it does work on Small Business Server ... IIS 6.0 and host headers. ... The Web Proxy filter failed to bind its socket to 218.188.188.188 port ...
      (microsoft.public.isa.configuration)
    • Re: Am I hacked? IIS dying, telnet localhost 443 gives: Hallo, Willkommen auf Compactzone Stro!
      ... miscreant has remote access to the box with admin rights. ... I have a server running IIS and I ... When I try to telnet the server using port 443 I get the same ...
      (microsoft.public.inetserver.iis.security)
    • Re: Regarding dhcp client problem
      ... I have captured the packet information from the device. ... win2k dhcp server sends ... But the dhcp client in the device is not receiving the offer at ... User Datagram Protocol, Src Port: bootpc, Dst Port: bootps ...
      (comp.arch.embedded)