[NEWS] CwpApi's GetRelativePath() Returns Invalid Paths

From: support@securiteam.com
Date: 01/29/02


From: support@securiteam.com
To: list@securiteam.com
Date: Tue, 29 Jan 2002 22:07:23 +0100 (CET)

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.
- - - - - - - - -

  CwpApi's GetRelativePath() Returns Invalid Paths
------------------------------------------------------------------------

SUMMARY

The <http://sourceforge.net/projects/cwpapi/> Comprehensive Web
Programming API is an interface for programmers who wish to write a secure
web program. An updated CwpApi release is available which fixes a minor
security bug in GetRelativePath() that allows a file outside the HTTP
ServerRoot to be read.

DETAILS

Vulnerable systems:
CwpApi version 1.1.0 and prior

Immune systems:
CwpApi version 1.1.1

Versions of CwpApi before 1.1.1 can return a path via GetRelativePath()
that is outside the HTTP server root. This happens because the code
checked only to see if the server root was included in the path, not
whether the actual directory fell under the server root. For example: the
path /etc/var/www/myfile.file would be considered valid if the server root
directory is /var/www.

How the update works:
If the directory is not below the server root, the directory is forced
beneath the server root. For example, /etc/var/www/myfile.file will become
/var/www/etc/var/www/myfile.file.

Solution:
Upgrade to the latest version:
 
<http://sourceforge.net/project/showfiles.php?group_id=39378&release_id=69915> http://sourceforge.net/project/showfiles.php?group_id=39378&release_id=69915

ADDITIONAL INFORMATION

The information has been provided by <mailto:support@acdinc.net> ACD
Incorporated Support.

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

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