CertainAudit CertainKey Scan Report
ABC Inc. - 26 Oct 2004

CertainKey Scan Report - ABC Inc. - 26 Oct 2004
This report gives details on hosts that were tested and issues that were found. Please follow the recommended steps and procedures to eradicate these threats.

Scan Details
Hosts which were alive and responding during test 2
Number of security holes found 1
Number of security warnings found 20


Host List
Host(s) Possible Issue
www.abc-inc.ca Security hole(s) found
mail.abc-inc.ca Security warning(s) found

[ return to top ]


Analysis of Host
Address of Host Port/Service Issue regarding Port
www.abc-inc.ca ssh (22/tcp) Security hole found
www.abc-inc.ca www (80/tcp) Security warning(s) found
www.abc-inc.ca general/tcp Security warning(s) found
www.abc-inc.ca general/udp Security notes found


Security Issues and Fixes: www.abc-inc.ca
Type Port Issue and Fix
Vulnerability ssh (22/tcp)
You are running a version of OpenSSH which is older than 3.7.1

Versions older than 3.7.1 are vulnerable to a flaw in the buffer management
functions which might allow an attacker to execute arbitrary commands on this
host.

An exploit for this issue is rumored to exist.


Note that several distribution patched this hole without changing
the version number of OpenSSH. Since CertainKey solely relied on the
banner of the remote SSH server to perform this check, this might
be a false positive.

If you are running a RedHat host, make sure that the command :
rpm -q openssh-server

Returns :
openssh-server-3.1p1-13 (RedHat 7.x)
openssh-server-3.4p1-7 (RedHat 8.0)
openssh-server-3.5p1-11 (RedHat 9)

Solution : Upgrade to OpenSSH 3.7.1
See also : http://marc.theaimsgroup.com/?l=openbsd-misc&m=106375452423794&w=2
http://marc.theaimsgroup.com/?l=openbsd-misc&m=106375456923804&w=2
Risk factor : High
Warning ssh (22/tcp)
You are running OpenSSH-portable 3.6.1p1 or older.

If PAM support is enabled, an attacker may use a flaw in this version
to determine the existence or a given login name by comparing the times
the remote sshd daemon takes to refuse a bad password for a non-existent
login compared to the time it takes to refuse a bad password for a
valid login.

An attacker may use this flaw to set up a brute force attack against
the remote host.

*** CertainKey did not check whether the remote SSH daemon is actually
*** using PAM or not, so this might be a false positive

Solution : Upgrade to OpenSSH-portable 3.6.1p2 or newer
Risk Factor : Low
Warning ssh (22/tcp)
You are running OpenSSH-portable 3.6.1 or older.

There is a flaw in this version which may allow an attacker to
bypass the access controls set by the administrator of this server.

OpenSSH features a mechanism which can restrict the list of
hosts a given user can log from by specifying a pattern
in the user key file (ie: *.mynetwork.com would let a user
connect only from the local network).

However there is a flaw in the way OpenSSH does reverse DNS lookups.
If an attacker configures his DNS server to send a numeric IP address
when a reverse lookup is performed, he may be able to circumvent
this mechanism.

Solution : Upgrade to OpenSSH 3.6.2 when it comes out
Risk Factor : Low
Warning ssh (22/tcp)
The remote SSH daemon supports connections made
using the version 1.33 and/or 1.5 of the SSH protocol.

These protocols are not completely cryptographically
safe so they should not be used.

Solution :
If you use OpenSSH, set the option 'Protocol' to '2'
If you use SSH.com's set the option 'Ssh1Compatibility' to 'no'

Risk factor : Low
Informational ssh (22/tcp) An ssh server is running on this port
Informational ssh (22/tcp) Remote SSH version : SSH-1.99-OpenSSH_3.5p1

Informational ssh (22/tcp) The remote SSH daemon supports the following versions of the
SSH protocol :

. 1.33
. 1.5
. 1.99
. 2.0


SSHv1 host key fingerprint : 9a:41:14:2a:93:18:c9:65:1c:42:4a:b2:6a:61:e0:5e
SSHv2 host key fingerprint : 30:62:0c:0b:09:f1:6c:70:fc:12:14:40:1d:ba:11:85

Warning www (80/tcp)
The target is running version of the Mailman mailing list software that
allows a list subscriber to retrieve the mailman password of any other
subscriber by means of a specially crafted mail message to the server.
That is, a message sent to $listname-request@target containing the
lines:

password address=$victim
password address=$subscriber

will return the password of both $victim and $subscriber for the list
$listname.

Note: CertainKey has determined the vulnerability exists only by looking at
the version number of Mailman installed on the target.

Additional information on the vulnerability can be found at:

- http://mail.python.org/pipermail/mailman-announce/2004-May/000072.html

Solution : Upgrade to Mailman version 2.1.5 or newer.
Risk factor : Medium
Warning www (80/tcp)
It is possible to obtain the listing of the content of the
remote web server root by sending the request :

GET // HTTP/1.0

This vulnerability usually affects the default Apache
configuration which is shipped with Red Hat Linux, although
it might affect other Linux distributions or other web server.

An attacker may exploit this flaw the browse the content
of the remote web root and possibly find hidden links into it.

Solution : Use index files instead of default welcome pages
Risk Factor : Medium
Warning www (80/tcp) The remote web server appears to be running a version of
Apache that is less that 2.0.49 or 1.3.31.

These versions are vulnerable to a denial of service attack where a remote
attacker can block new connections to the server by connecting to a listening
socket on a rarely accessed port.

Solution: Upgrade to Apache 2.0.49 or 1.3.31.
Warning www (80/tcp)
The remote web server seems to have its default welcome page set.
It probably means that this server is not used at all.

Solution : Disable this service, as you do not use it
Risk factor : Low
Warning www (80/tcp)
The remote host appears to be running a version of Apache 2.x which is older
than 2.0.48.

This version is vulnerable to a bug which may allow a rogue CGI to disable
the httpd service by issuing over 4K of data to stderr.

To exploit this flaw, an attacker would need the ability to upload a rogue
CGI script to this server and to have it executed by the Apache daemon (httpd).

Solution : Upgrade to version 2.0.48 when it is available
See also : http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22030
Risk factor : Low
Warning www (80/tcp)
The remote host appears to be running a version of
Apache 2.x which is older than 2.0.43

This version allows an attacker to view the source code
of CGI scripts via a POST request made to a directory
with both WebDAV and CGI enabled.

*** Note that CertainKey solely relied on the version number
*** of the remote server to issue this warning. This might
*** be a false positive

Solution : Upgrade to version 2.0.43
See also : http://www.apache.org/dist/httpd/CHANGES_2.0
Risk factor : Medium
Warning www (80/tcp)
The target host is running an Apache web server which allows for the
injection of arbitrary escape sequences into its error logs. An
attacker might use this vulnerability in an attempt to exploit similar
vulnerabilities in terminal emulators.

Note: CertainKey has determined the vulnerability exists only by looking at
the Server header returned by the web server running on the target.

Solution : Upgrade to Apache version 1.3.31 or 2.0.49 or newer.
Risk factor : Low
Warning www (80/tcp)
Your webserver supports the TRACE and/or TRACK methods. TRACE and TRACK
are HTTP methods which are used to debug web server connections.

It has been shown that servers supporting this method are subject
to cross-site-scripting attacks, dubbed XST for
"Cross-Site-Tracing", when used in conjunction with
various weaknesses in browsers.

An attacker may use this flaw to trick your
legitimate web users to give him their
credentials.

Solution: Disable these methods.


If you are using Apache, add the following lines for each virtual
host in your configuration file :

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]

If you are using Microsoft IIS, use the URLScan tool to deny HTTP TRACE
requests or to permit only the methods needed to meet site requirements
and policy.

If you are using Sun ONE Web Server releases 6.0 SP2 and later, add the
following to the default object section in obj.conf:
<Client method="TRACE">
AuthTrans fn="set-variable"
remove-headers="transfer-encoding"
set-headers="content-length: -1"
error="501"
</Client>

If you are using Sun ONE Web Server releases 6.0 SP2 or below, compile
the NSAPI plugin located at:
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F50603


See http://www.whitehatsec.com/press_releases/WH-PR-20030120.pdf
http://archives.neohapsis.com/archives/vulnwatch/2003-q1/0035.html
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F50603
http://www.kb.cert.org/vuls/id/867593

Risk factor : Medium
Warning www (80/tcp)
The remote host appears to be running a version of
Apache 2.x which is older than 2.0.47

This version is vulnerable to various flaws which may allow
an attacker to disable this service remotely and/or locally.

Solution : Upgrade to version 2.0.47
See also : http://www.apache.org/dist/httpd/CHANGES_2.0
Risk factor : Medium
Warning www (80/tcp)
The remote host appears to be running a version of
Apache 2.x which is older than 2.0.46

This version is vulnerable to various flaws :

- There is a denial of service vulnerability which may allow
an attacker to disable basic authentication on this host

- There is a denial of service vulnerability in the mod_dav module
which may allow an attacker to crash this service remotely

Solution : Upgrade to version 2.0.46
See also : http://www.apache.org/dist/httpd/CHANGES_2.0
Risk factor : Medium
Informational www (80/tcp) A web server is running on this port
Informational www (80/tcp) The following directories were discovered:
/cgi-bin, /error, /icons, /mailman, /manual, /usage

While this is not, in and of itself, a bug, you should manually inspect
these directories to ensure that they are in compliance with company
security standards

The following directories require authentication:
/bugzilla, /download
Informational www (80/tcp) The remote web server type is :

Apache/2.0.40 (Red Hat Linux)


Solution : You can set the directive 'ServerTokens Prod' to limit
the information emanating from the server in its response headers.
Informational www (80/tcp)
The remote host is running SquirrelMail 1.2.11 under /webmail.

SquirrelMail is a PHP-based webmail package that provides access to mail
accounts via POP3 or IMAP; see <http://www.squirrelmail.org/> for more
information.

Risk factor : None
Warning general/tcp
The remote host might be vulnerable to a sequence number approximation
bug, which may allow an attacker to send spoofed RST packets to the remote
host and close established connections.

This may cause problems for some dedicated services (BGP, a VPN over
TCP, etc...).

Solution : See http://www.securityfocus.com/bid/10183/solution/
Risk factor : Medium
Warning general/tcp
The remote host does not discard TCP SYN packets which
have the FIN flag set.

Depending on the kind of firewall you are using, an
attacker may use this flaw to bypass its rules.

See also : http://archives.neohapsis.com/archives/bugtraq/2002-10/0266.html
http://www.kb.cert.org/vuls/id/464113

Solution : Contact your vendor for a patch
Risk factor : Medium
Informational general/tcp 66.11.174.128 resolves as www.abc-inc.ca.
Informational general/udp For your information, here is the traceroute to 66.11.174.128 :
134.117.69.104
134.117.69.1
134.117.7.3
134.117.219.248
134.117.6.5
66.97.23.141
66.97.16.74
66.97.16.90
66.97.16.125
198.32.245.25
66.11.167.162
66.11.174.128

[ return to top ]


Analysis of Host
Address of Host Port/Service Issue regarding Port
mail.abc-inc.ca ssh (22/tcp) Security notes found
mail.abc-inc.ca smtp (25/tcp) Security notes found
mail.abc-inc.ca www (80/tcp) Security warning(s) found
mail.abc-inc.ca imaps (993/tcp) Security warning(s) found
mail.abc-inc.ca general/tcp Security warning(s) found
mail.abc-inc.ca general/udp Security notes found


Security Issues and Fixes: mail.abc-inc.ca
Type Port Issue and Fix
Informational ssh (22/tcp) An ssh server is running on this port
Informational ssh (22/tcp) Remote SSH version : SSH-2.0-OpenSSH_3.8.1p1

Informational ssh (22/tcp) The remote SSH daemon supports the following versions of the
SSH protocol :

. 1.99
. 2.0


SSHv2 host key fingerprint : ff:17:a1:c0:43:5b:da:74:54:54:93:36:33:4f:79:34

Informational smtp (25/tcp) An unknown service is running on this port.
It is usually reserved for SMTP
Informational smtp (25/tcp) Remote SMTP server banner :
220 mail.abc-inc.ca ESMTP Exim 4.42 Wed, 27 Oct 2004 02:18:37 -0400



This is probably: Exim version 4.42
Informational smtp (25/tcp) This server could be fingerprinted as being Exim 2.12,3.12,3.22,3.33,3.35,4.01,4.12
Informational smtp (25/tcp) An unknown service runs on this port.
It is sometimes opened by this/these Trojan horse(s):
Ajan
Antigen
Barok
BSE
Email Password Sender - EPS
EPS II
Gip
Gris
Happy99
Hpteam mail
I love you
Kuang2
Magic Horse
MBT (Mail Bombing Trojan)
Moscow Email trojan
Naebi
NewApt worm
ProMail trojan
Shtirlitz
Stealth
Stukach
Tapiras
Terminator
WinPC
WinSpy

Here is the service banner:
554 SMTP synchronization error


Unless you know for sure what is behind it, you'd better
check your system

*** Anyway, don't panic, CertainKey only found an open port. It may
*** have been dynamically allocated to some service (RPC...)

Solution: if a trojan horse is running, run a good antivirus scanner
Risk factor : Low
Informational smtp (25/tcp) An unknown server is running on this port.
If you know what it is, please send this banner to the CertainKey team:
00: 35 35 34 20 53 4d 54 50 20 73 79 6e 63 68 72 6f 554 SMTP synchro
10: 6e 69 7a 61 74 69 6f 6e 20 65 72 72 6f 72 0d 0a nization error..
20:


Warning www (80/tcp)
Your webserver supports the TRACE and/or TRACK methods. TRACE and TRACK
are HTTP methods which are used to debug web server connections.

It has been shown that servers supporting this method are subject
to cross-site-scripting attacks, dubbed XST for
"Cross-Site-Tracing", when used in conjunction with
various weaknesses in browsers.

An attacker may use this flaw to trick your
legitimate web users to give him their
credentials.

Solution: Disable these methods.


If you are using Apache, add the following lines for each virtual
host in your configuration file :

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]

If you are using Microsoft IIS, use the URLScan tool to deny HTTP TRACE
requests or to permit only the methods needed to meet site requirements
and policy.

If you are using Sun ONE Web Server releases 6.0 SP2 and later, add the
following to the default object section in obj.conf:
<Client method="TRACE">
AuthTrans fn="set-variable"
remove-headers="transfer-encoding"
set-headers="content-length: -1"
error="501"
</Client>

If you are using Sun ONE Web Server releases 6.0 SP2 or below, compile
the NSAPI plugin located at:
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F50603


See http://www.whitehatsec.com/press_releases/WH-PR-20030120.pdf
http://archives.neohapsis.com/archives/vulnwatch/2003-q1/0035.html
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F50603
http://www.kb.cert.org/vuls/id/867593

Risk factor : Medium
Warning www (80/tcp)
Some Web Servers use a file called /robot(s).txt to make search engines and
any other indexing tools visit their WebPages more frequently and
more efficiently.

By connecting to the server and requesting the /robot(s).txt file, an
attacker may gain additional information about the system they are
attacking.

Such information as, restricted directories, hidden directories, cgi script
directories and etc. Take special care not to tell the robots not to index
sensitive directories, since this tells attackers exactly which of your
directories are sensitive.

The file 'robots.txt' contains the following:
User-agent: *
Disallow: /


Risk factor : Medium
Informational www (80/tcp) A web server is running on this port
Informational www (80/tcp) The following directories were discovered:
/bak, /cgi-bin, /files, /ftp, /home, /icons, /images, /info, /search, /ssl, /stats, /temp, /usr, /mp3, /webmail

While this is not, in and of itself, a bug, you should manually inspect
these directories to ensure that they are in compliance with company
security standards

Informational www (80/tcp) The remote web server type is :

Apache

and the 'ServerTokens' directive is ProductOnly
Apache does not permit to hide the server type.

Informational www (80/tcp) An information leak occurs on Apache based web servers
whenever the UserDir module is enabled. The vulnerability allows an external
attacker to enumerate existing accounts by requesting access to their home
directory and monitoring the response.


Solution:
1) Disable this feature by changing 'UserDir public_html' (or whatever) to
'UserDir disabled'.

Or

2) Use a RedirectMatch rewrite rule under Apache -- this works even if there
is no such entry in the password file, e.g.:
RedirectMatch ^/~(.*)$ http://my-target-webserver.somewhere.org/$1

Or

3) Add into httpd.conf:
ErrorDocument 404 http://localhost/sample.html
ErrorDocument 403 http://localhost/sample.html
(NOTE: You need to use a FQDN inside the URL for it to work properly).

Additional Information:
http://www.securiteam.com/unixfocus/5WP0C1F5FI.html


Risk factor : Low
Warning imaps (993/tcp)
The remote host is running Remote PC Access Server.

This service could be used by an attacker to partially take control of the remote
system if they obtain the credentials necessary to log in (through a brute force
attack or by sniffing the network, as this protocol transmits usernames and
passwords in plain text).

An attacker may use it to steal your password or prevent your system from working
properly.


Solution : Disable this service if you do not use it.
Risk factor : Medium
Informational imaps (993/tcp) A SSLv2 server answered on this port

Informational imaps (993/tcp) An unknown service is running on this port through SSL.
It is usually reserved for IMAPS
Informational imaps (993/tcp) Here is the SSLv2 server certificate:
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 0 (0x0)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=CA, ST=ON, L=Ottawa, O=J-L and Caitlin, OU=mail.abc-inc.ca, CN=mail.abc-inc.ca/emailAddress=jlcooke@mail.abc-inc.ca
Validity
Not Before: Sep 21 01:51:30 2004 GMT
Not After : Oct 21 01:51:30 2004 GMT
Subject: C=CA, ST=ON, L=Ottawa, O=J-L and Caitlin, OU=mail.abc-inc.ca, CN=mail.abc-inc.ca/emailAddress=jlcooke@mail.abc-inc.ca
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (2048 bit)
Modulus (2048 bit):
00:be:ed:d7:47:8b:b2:fe:2a:6c:06:50:1e:67:ae:
66:cd:e7:a0:72:74:e1:3d:5c:d2:ca:aa:09:68:53:
4c:06:f8:b1:18:ca:ee:95:42:c5:1c:94:ba:d8:88:
c2:a3:a1:42:e5:f3:24:d2:4e:f6:b3:20:f1:47:29:
7d:5f:9c:c2:83:4c:aa:88:16:66:b9:4e:8f:22:ed:
22:1b:e7:26:e4:20:71:f7:52:0b:aa:4a:27:ee:cc:
d8:63:94:47:cf:d1:94:20:1d:54:5f:ed:50:b5:66:
88:14:65:d7:65:e5:96:ae:f1:10:e1:7a:41:26:00:
37:f8:a4:5a:46:e6:12:cc:6c:24:2e:b7:81:e6:4e:
64:54:fa:89:1c:c4:e8:9d:54:a7:ee:1d:ad:f5:8c:
16:c5:f1:2a:5c:01:88:1b:45:a8:b3:07:3a:16:6c:
20:ce:6b:85:6f:8a:cc:a6:f4:8a:a4:f9:41:df:52:
4f:df:4e:c6:e3:01:52:5c:b7:33:10:2a:9a:24:d3:
0d:af:33:18:57:fc:89:7a:06:28:81:95:97:c8:26:
2b:e0:de:eb:b9:e7:7f:5d:b5:28:a1:d1:09:f4:67:
94:33:ef:56:c6:2c:46:ea:1c:70:68:fa:16:6e:46:
4b:bf:fd:6f:51:86:c5:6e:d2:fb:e4:7a:5f:9b:50:
33:b3
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
A5:41:AB:A6:28:5F:57:8C:79:64:60:C2:8B:BA:FA:FC:67:AA:CC:FB
X509v3 Authority Key Identifier:
keyid:A5:41:AB:A6:28:5F:57:8C:79:64:60:C2:8B:BA:FA:FC:67:AA:CC:FB
DirName:/C=CA/ST=ON/L=Ottawa/O=J-L and Caitlin/OU=mail.abc-inc.ca/CN=mail.abc-inc.ca/emailAddress=jlcooke@mail.abc-inc.ca
serial:00

X509v3 Basic Constraints:
CA:TRUE
Signature Algorithm: sha1WithRSAEncryption
65:e5:9b:27:7c:bd:6f:7a:6b:e4:93:e4:74:e2:05:bd:a2:99:
2d:46:d7:20:4f:3b:c2:a2:97:f8:53:5d:35:6a:c1:68:60:05:
2d:04:8c:e8:ad:5b:81:2c:86:6d:1e:36:3e:4f:38:8f:b4:3e:
7b:f0:e4:db:f4:43:e0:56:6f:2c:fe:09:07:45:3d:5a:4c:d8:
25:d7:e3:68:14:e1:bf:37:12:65:35:d9:74:b1:73:2a:94:88:
58:40:7e:e8:a1:95:9d:61:f8:a9:d5:b7:8c:ca:5b:24:9e:8f:
6d:f0:64:6d:92:94:35:5a:62:65:38:32:6a:6b:68:b3:88:c4:
70:8c:83:ec:18:90:9c:8f:af:a3:4d:4b:a2:85:f4:fd:d5:50:
89:43:b0:e5:8e:f7:06:af:1b:f9:e6:ae:f1:9a:de:58:0d:e1:
0d:6b:d6:0c:5d:b7:d2:1f:c2:e2:6d:22:95:f6:45:b8:8e:22:
d8:d8:66:a9:b0:a7:58:ee:36:3e:d2:52:84:9e:d8:06:c5:13:
0a:df:4c:b9:00:bc:79:4c:76:f0:0d:8f:45:5b:1c:5d:1f:a0:
f3:d7:1d:12:cb:c5:76:b3:c7:65:47:b0:5b:1f:cd:0a:c6:38:
da:0c:70:21:3b:42:87:f8:4e:78:37:be:6d:1c:35:37:a4:c0:
15:0b:c7:f3
Here is the list of available SSLv2 ciphers:
RC4-MD5
EXP-RC4-MD5
RC2-CBC-MD5
EXP-RC2-CBC-MD5
DES-CBC-MD5
DES-CBC3-MD5
RC4-64-MD5
The SSLv2 server offers 5 strong ciphers, but also
0 medium strength and 2 weak "export class" ciphers.
The weak/medium ciphers may be chosen by an export-grade
or badly configured client software. They only offer a
limited protection against a brute force attack

Solution: disable those ciphers and upgrade your client
software if necessary.
See http://support.microsoft.com/default.aspx?scid=kb;en-us;216482
or http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslciphersuite
This SSLv2 server also accepts SSLv3 connections.
This SSLv2 server also accepts TLSv1 connections.

Warning general/tcp
The remote host might be vulnerable to a sequence number approximation
bug, which may allow an attacker to send spoofed RST packets to the remote
host and close established connections.

This may cause problems for some dedicated services (BGP, a VPN over
TCP, etc...).

Solution : See http://www.securityfocus.com/bid/10183/solution/
Risk factor : Medium
Warning general/tcp
The remote host does not discard TCP SYN packets which
have the FIN flag set.

Depending on the kind of firewall you are using, an
attacker may use this flaw to bypass its rules.

See also : http://archives.neohapsis.com/archives/bugtraq/2002-10/0266.html
http://www.kb.cert.org/vuls/id/464113

Solution : Contact your vendor for a patch
Risk factor : Medium
Informational general/tcp 66.11.173.232 resolves as mail.abc-inc.ca.

Security Scan Performed by CertainKey Inc.