[NEWS] Directory Traversal Vulnerability in Phpimglist

From: support@securiteam.com
Date: 03/16/02


From: support@securiteam.com
To: list@securiteam.com
Date: Sat, 16 Mar 2002 12:04:39 +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.
- - - - - - - - -

  Directory Traversal Vulnerability in Phpimglist
------------------------------------------------------------------------

SUMMARY

Phpimglist creates a gallery images from a certain directory.
This script is vulnerable to the trivial directory traversal attack which
enables users to view images in arbitrary directories on the disk.

DETAILS

Vulnerable systems:
phpimglist versions prior to 1.2.2

Immune systems:
phpimglist 1.2.2

There is a vulnerability in phpimglist which allows a user to traverse
through directories outside the web root. It only shows directories and
image files although there might be a way around this.

Exploit:
http://www.example.com/images/?cwd=../../../../
http://www.example.com/images/?cwd=/

Patch:
Around line 76, there is a block like:

if (!$cwd) { $cwd = $SET...... else {
      $cwd = .....
}

Replace this block with the following block:

if (!$cwd) { $cwd = $SETTINGS["rootdir"]; } else {
         $cwd = ereg_replace("\.+","",$cwd);
         $cwd = ereg_replace("^/+","",$cwd);
}

This appears to fix the problem.

Solution:
The author has quickly released a new version that addresses this problem.
See:
 <http://www.liquidpulse.net/s.lp?id=17>
http://www.liquidpulse.net/s.lp?id=17

ADDITIONAL INFORMATION

The information has been provided by <mailto:geniusj@ods.org> Jason
DiCioccio.

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

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

  • [UNIX] DSH HOME Environment Buffer Overflow
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Get Thawte's New Step-by-Step SSL Guide for MSIIS ... This vulnerability will allow attackers to cause the product crash. ... 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] RSA ClearTrust Cross Site Scripting Issues
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The RSA ClearTrust is a Web access ... A cross-site scripting vulnerability in the product allows an attacker to ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [UNIX] Owl Intranet Engine Security Bypassing
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Owl is a multi user document repository ... A vulnerability in the product allows remote attackers to ... 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] Zeroo Webserver Remote Directory Traversal Exploit
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Vulnerability> Zeroo Folder Traversal Vulnerability, ... 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] Remote Heap malloc/free and Multiple Overflow Vulnerability in WSMP3 (Exploit)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WsMp3 versions ... # Remote Heap malloc/free & multiple Overflow vulnerability in WSMP3. ... to $Host \n"; ...
    (Securiteam)