SECURITY.NNOV: multiple vulnerabilities in JanaServer

From: 3APA3A (3APA3A@SECURITY.NNOV.RU)
Date: 07/26/02


Date: Fri, 26 Jul 2002 12:12:45 +0400
From: 3APA3A <3APA3A@SECURITY.NNOV.RU>
To: bugtraq@securityfocus.com

Title: Multiple vulnerabilities in JanaServer
Author: ZARAZA <3APA3A@security.nnov.ru>
Date: July, 22 2002
Affected: JanaServer 2.2.1 and prior
                        JanaServer 1.46 and prior
Vendor: Thomas Hauck <hilfe@janaserver.de>
Risk: High (critical if some services, for example
                        HTTP, are available from public interface)
Remote: yes
Exploitable: yes
Vendor notified: July, 18 2002
Product URL: http://www.janaserver.com
SECURITY.NNOV URL: http://www.security.nnov.ru
Advanced info: http://www.security.nnov.ru/search/news.asp?binid=2171

I. Introduction:

Janaserver is Internet gateway software for Windows platform can act as
HTTP/FTP/NEWS/SNTP server, SOCKS4/SOCKS5/HTTP/FTP/TELNET/Real Audio
proxy, E-mail gateway and port mapper. JanaServer up to 1.46 was
freeware, JanaServer 2.0 and above is shareware, it's intensively used
in SOHO networks. Under NT platforms it runs as a service with system
privileges.

II. Details:

8 vulnerabilities were identified:

1. HTTP server buffer overflow.

GET / HTTP/[buffer].0

causes overflow in logging component

2. HTTP proxy buffer overflow

Same overflow in HTTP proxy server running on TCP/3128.

3. Socks5 Username/Password/Hostname signed/unsigned buffer overflow

Username, password or hostname in SOCKS5 request longer than 127
characters cause buffer overflow because of invalid usage of signed
variable.

4. POP3 gateway buffer overflow.

oversized reply of POP3 server

+OK [buffer]

causes buffer overflow in logging component.

5. SMTP gateway buffer overflow

same overflow in SMTP server response:

nnn [buffer]

6. FTP server PASV system-wide DoS

On FTP PASV command server allocates TCP port without closing previously
allocated port. In makes it possible to consume all TCP ports available
in system.

7. POP3 username/password bruteforce

POP3 gateway gives different diagnostics for valid and invalid username
and allows unlimited number of authentication attempts. It makes it
easy to bruteforce username/password.

8. POP3 array index overrun (JanaServer <= 1.46)

During mailbox commands there is no check message index is valid. For
example

RETR 1000000
or
DELE 1000000

will cause server to crash. JanaServer 2.2.1 is not vulnerable.

III. Workarounds:

1. Disable HTTP logging
2. Disable HTTP proxy logging
3. Disable socks proxy
4,5. Edit Texte.dat file, replace all occurrences of "%s" to "%.255s" in
lines numbered from 300 to 455.
6. Disable FTP server
7,8 Disable mail gateway

IV. Vendor and solution:

Vendor was informed on July, 18 2002. Vendor claims all bugs are fixed.
No reply from vendor since July, 19 2002. There is no information about
fixed version available on product's site.

-- 
http://www.security.nnov.ru
         /\_/\
        { , . }     |\
+--oQQo->{ ^ }<-----+ \
|  ZARAZA  U  3APA3A   }
+-------------o66o--+ /
                    |/
You know my name - look up my number (The Beatles)



Relevant Pages

  • Re: using my ISA for some routing
    ... Currently my user's default gateway is my WAN router and for access to the ... itnernet they're using my ISA 2006 server as a proxy server by specifying ... in Internet Explorers proxy settings. ...
    (microsoft.public.isa.configuration)
  • Re: Find my default Gateway
    ... proxy server ... >Support to see the Default Gateway address. ... >computers are connecting to the Internet through a proxy ...
    (microsoft.public.windowsxp.network_web)
  • Re: IC lost after changing to a 100Meg Network ~ Switcher problem?
    ... I'll check/remove the 1.1's default gateway setting.... ... As for the proxy server... ... Network traffic ...
    (microsoft.public.windowsxp.network_web)
  • Re: Open source firewalls
    ... A proxy _can_ avoid a buffer overflow by noticing the ... it on to the real server! ... A firewall proxy is written for security, ... A library that controls any buffer overflow doesn't exist at all. ...
    (Linux-Kernel)
  • Re: problems with "transparent" proxy
    ... > I'm trying to configure my server to act as a proxy for content filtering ... I tried to configure DHCP on the server ... Hmm, I use squid as transparent proxy, and privoxy in series on the same box ... which also acts as gateway. ...
    (alt.linux)

Loading