[UNIX] AHG EZshopper loadpage.cgi Directory Traversal (.|./ Attack)

From: SecuriTeam (support_at_securiteam.com)
Date: 12/01/04

  • Next message: SecuriTeam: "[NT] Cumulative Security Update for Internet Explorer (889293, MS04-040)"
    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.


  • Next message: SecuriTeam: "[NT] Cumulative Security Update for Internet Explorer (889293, MS04-040)"

    Relevant Pages

    • [EXPL] Apache Tomcat Directory Traversal Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Apache Tomcat Directory Traversal Vulnerability ... 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] phpSysInfo Multiple Vulnerabilities (HTTP_ACCEPT_LANGUAGE, sensor_program, VERSION, charset)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Multiple vulnerabilities have been discovered in phpSysInfo allowing ... the attacker to additionally inject the $lng parameter. ... $sensor_program can *still* be used to inject active ...
      (Securiteam)
    • [NT] Directory Traversal In CProxy
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... directory traversal attack and thus gain access to arbitrary files located ... on the CProxy Server system. ... filtering allows a remote attacker to gain attack to arbitrary files on ...
      (Securiteam)
    • [UNIX] KDE URI handler vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A bug in KDE can be used by an attacker to create or truncate arbitrary ... The KDE URI handler does not perform adequate filtering ...
      (Securiteam)
    • [NT] PicoWebServer Unicode Stack 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 ... A buffer overflow vulnerability has been discovered in PicoWebServer, ... exploiting this vulnerability allows a remote attacker to run arbitrary ... an attacker can trigger a stack overflow and cause the ...
      (Securiteam)