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 SweetRice CMS

Advisory ID:HTB22667
Product:SweetRice CMS
Vendor:basic-cms.org
Vulnerable Versions:0.6.7 and probably prior
Tested Version:0.6.7
Advisory Publication:October 21, 2010 [without technical details]
Vendor Notification:October 21, 2010
Public Disclosure:November 4, 2010
Latest Update:November 9, 2010
Vulnerability Type:Cross-Site Scripting [CWE-79]
SQL Injection [CWE-89]
Improper Authentication [CWE-287]
Risk Level:High
CVSSv2 Base Scores:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
7.5 (AV:N/AC:L/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 SweetRice CMS which could be exploited to perform cross-site scripting and SQL injection attacks and change administrator`s password.

1) Cross-site scripting (XSS) vulnerability in SweetRice CMS
The vulnerability exists due to input sanitation error in the "top_height" cookie in as/index.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.
Exploitation examples:
GET /as/index.php HTTP/1.1
Cookie: top_height=')%3B"><script>alert('XSS')%3B</script>;


2) SQL injection vulnerabilities in SweetRice CMS
The vulnerability exists due to input sanitation errors in the "file_name" (when action is set to attachment), "post"(when action is set to show_comment) and "sys-name" (when action is set to view or when action is set to rssfeed and type is set to entry) parameters index.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:
http://[host]/index.php?action=attachment&file_name=%27
http://[host]/index .php?action=show_comment &post=%27
http://[host]/index.php?action=rssfeed&type=entry&sys-name=%27
h ttp://[host]/index.php?action=view&sys-name=%27


3) Security bypass vulnerability in SweetRice CMS
The vulnerability exists due to insufficient verification of the user`s identity in password reset functionality. A remote attacker with knowledge of administrator`s email address can reset his password and gain full access to the website.
Exploitation example:
<form action="http://[host]/as/index.php?type=password&mod=resetok" method="post">
<input name="p1" type="hidden" value="123">
<input name="p2" type="hidden" value="123">
<input name="email" type="hidden" value="[admin_email]">
<input value="Login" name="login" type="submit">
</form>

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 version 0.6.7.1 [2010.10,25]


References:
[1] High-Tech Bridge Advisory HTB22667 - https://www.immuniweb.com/advisory/HTB22667 - Multiple Vulnerabilities in SweetRice CMS
[2] SweetRice CMS - www.basic-cms.org - SweeRice is a simple website management system,it is not just free and open source, it provides popular functions such as SEO.
[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