[UNIX] AHG EZshopper loadpage.cgi Directory Traversal (.|./ Attack)
From: SecuriTeam (support_at_securiteam.com)
Date: 12/01/04
- Previous message: SecuriTeam: "[EXPL] Aspell word-list-compress Command Line Stack Overflow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 1 Dec 2004 18:34:16 +0200
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
- - - - - - - - -
AHG EZshopper loadpage.cgi Directory Traversal (.|./ Attack)
------------------------------------------------------------------------
SUMMARY
AHG's <http://www.ahg.com/ezshopper3/index.htm> EZshopperA directory
traversal vulnerability in the EZshopper product allows a remote attacker
to disclose sensitive files stored outside the bound HTML root directory.
DETAILS
The EZshopper product makes an effort to prevent attackers from exploiting
directory traversal vulnerabilities in the loadpage.cgi, however this
prevention mechanism lacks the ability to prevent the attack from
happening when the ".|./" is used. This occurs as the URL is first
sanitized of its ".." combinations and then of its "|" characters.
Vulnerable code:
if ($data{'file'}=~/\.\./)
{
print "Content-type: text/html\n\n";
print "Invalid path";
exit;
}
$data{'user_id'} =~ s/[\.\|<>]+//g;
$data{'file'}=~s/[\|;><]+//g;
if ($data{'file'} !~ /\.s?html?$/)
{
print "Content-type: text/html\n\n";
print ".";
exit;
}
$file="$root/$data{'file'}";
As can be seen, the program first filters out ".." and then "|", which
causes the vulnerability.
Example:
The following example illustrates the issue:
http://targethost/cgi-bin/loadpage.cgi?user_id=id&file=.|./.|./.|./.|./.|./etc/passwd%00.html
ADDITIONAL INFORMATION
The information has been provided by <mailto:zero-x@linuxmail.org> Zero_X
www.lobnan.de Team.
========================================
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.
- Previous message: SecuriTeam: "[EXPL] Aspell word-list-compress Command Line Stack Overflow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|