Ultimate PHP Board Cross-Site Scripting and User Credentials Exposure
Secunia Advisory: SA15732
Release Date: 2005-06-17
Last Update: 2006-06-28
Popularity: 6,944 views

Critical:
Moderately critical
Impact: Cross Site Scripting
Exposure of sensitive information
Where: From remote
Solution Status: Partial Fix

Software:Ultimate PHP Board (UPB) 1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-2003
CVE-2005-2004
CVE-2005-2005


Description:
Alberto Trivero has reported some vulnerabilities and a security issue in Ultimate PHP Board, which can be exploited by malicious people to conduct cross-site scripting attacks and disclose sensitive information.

1) Some input isn't properly sanitised before being returned to users. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of a vulnerable site.

Examples:
http://[host]/login.php?ref=[code]
http://[host]/viewtopic.php?id=[code]
http://[host]/viewtopic.php?id=1&t_id=1&page=[code]
http://[host]/profile.php?action=get&id=[code]
http://[host]/newpost.php?id=1&t=1&t_id=[code]
http://[host]/newpost.php?id=[code]
http://[host]/email.php?id=[code]
http://[host]/icq.php?action=get&id=[code]
http://[host]/upb/aol.php?action=get&id=[code]
http://[host]/upb/getpass.php?ref=[code]
http://[host]/search.php?step=3&sText=[code]

2) User credentials are stored in the "db" database directory inside the web root, which may allow disclosure of the usernames and encrypted passwords.

NOTE: This does not affect installations with enabled support for ".htaccess" files. The encrypted passwords can easily be decrypted due to a weak encryption method.

It is also possible to disclose the full path to certain scripts by accessing them with some invalid input.

The vulnerabilities and the security issue have been reported in version 1.9.6 GOLD and prior.

Solution:
A patch is available for the cross-site scripting vulnerabilities:
http://www.myupb.com/forum/viewtopic.php?id=26&t_id=118

Ensure that access is restricted to the "db" directory.

Provided and/or discovered by:
Alberto Trivero

Additional information provided by mbrooks.

Changelog:
2005-06-21: Updated "Solution" section.
2005-06-24: Added CVE references.
2006-06-21: Added additional information provided by mbrooks.
2006-06-28: Added link to "Original Advisory".

Original Advisory:
http://www.kliconsulting.com/users/mbrooks/UPBadvisory.rtf


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 66 views
2. Cisco ASA and PIX Security Appliances Multiple Vulnerabilities // 47 views
3. HP OpenView Select Identity Connectors Information Disclosure // 45 views
4. Drupal Content Construction Kit Script Insertion Vulnerabilities // 40 views
5. Microsoft Office Two Code Execution Vulnerabilities // 39 views
6. Sun Java JDK / JRE Multiple Vulnerabilities // 37 views
7. CS-Cart "cs_cookies" SQL Injection Vulnerability // 29 views
8. Opera Multiple Vulnerabilities // 29 views
9. Zeroboard Multiple Vulnerabilities // 28 views
10. VLC Media Player Multiple Vulnerabilities // 28 views