[UNIX] Multiple Security Vulnerabilities in CARE 2002

From: support@securiteam.com
Date: 07/12/02


From: support@securiteam.com
To: list@securiteam.com
Date: Fri, 12 Jul 2002 20:23:05 +0200 (CEST)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Multiple Security Vulnerabilities in CARE 2002
------------------------------------------------------------------------

SUMMARY

 
<http://www.care2x.com/modul.php?thispage=headlines&m_titel=NEWS&m_item=Headlines&lang=en> CARE 2002 is a smart software for hospitals and health care organizations. It is designed to integrate the different information systems existing in these organizations into one single efficient system. Multiple security vulnerabilities have been found in the product.

DETAILS

Vulnerable systems:
 * CARE 2002 version 1.0.0.1 and prior

Immune systems:
 * CARE 2002 version 1.0.0.2

Vulnerability #1 - Include and NULL problem
There are several include statements which use variables passed by the
user. Therefore, if register_globals is on and magic_quotes_gpc is off you
are able to read any file on the webserver:
/main/cafenews.php:
[...]
include("../language/".$lang."/lang_".$lang."_newsdummy.php");
[...]

If $lang contains NULL (a.k.a \0 or %00) the include statement ignores
everything after the NULL and includes the file. Here is some metacode
explaining the behavior:

Foobar.php looks like this:
<?php
include("../".$input."blubb");
?>

Calling the file with the following parameter:
foobar.php?input=bla%00bla

Results in (with enabled magic_quotes_gcp):
<br />
<b>Warning</b>: Failed opening '../bla\0blablubb' for inclusion
(include_path='.:/usr/local/lib/php') in
<b>/home/user/public_html/foobar.php</b> on
line
<b>2</b><br />

This is not exploitable, but if magic_quotes_gcp is turned off (as it is
recommended, for performance reasons):
<br />
<b>Warning</b>: Failed opening '../bla' for inclusion
(include_path='.:/usr/local/lib/php') in
<b>/home/user/public_html/foobar.php</b> on line
<b>2</b><br />

Everything after NULL (%00) is ignored. Therefore we can take a look at
the list of all available users:
foobar.php?input=../../../etc/passwd%00

You can open every world readable file you want.

Vulnerability #2 - Missing addslashes()
None of the data passed (there are just a few exceptions) to the MySQL is
checked for control characters like ', " et al. Therefore, anyone is able
to commit injected SQL queries. The problem exists, when magic_quotes_gpc
is turned off.

Solution:
The authors will release a new version 1.0.0.2 that will be immune to
these issues.

ADDITIONAL INFORMATION

The information has been provided by <mailto:avart@gmx.de> avart.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [EXPL] Apache Multiple Space Header DoS (Multi-Threaded Exploit)
    ... The exploit code below is another version of the Apache 2.0.52 DoS ... vulnerability published previously here: ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NT] JBoot Password Bypassing Vulnerability
    ... housewarming rates on automated network vulnerability ... Place any Windows Startup Floppy ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [EXPL] Suid Application Execution May Give Local Root (Exploit Code)
    ... It is possible for a local user under the FreeBSD operating system to ... For more information about the vulnerability please see: ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NT] Texis Sensitive Information Leak
    ... housewarming rates on automated network vulnerability ... The Texis program executes files written in Texis Web Script (a.k.a. ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NT] GiantRat Mailer Exposes Plain Text POP Password
    ... A vulnerability in the product allows local attackers to gain ... effective 03/13/2003 that scrambles the password in the .ini file. ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)