# CVE-2025-67173: Cross-Site Request Forgery (CSRF) in RiteCMS version v3.1.0
RiteCMS is an ultrafast, lightweight, and easy-to-use CMS (Content Management System) based on PHP and SQLite.
A Cross-Site Request Forgery (CSRF) in the page creation/editing function of RiteCMS v3.1.0 allows attackers to arbitrarily create pages via a crafted POST request.
A CSRF vulnerability (CVE-2025-67173) can be leveraged to achieve RCE (CVE-2025-67172), forming an attack chain.
Other CSRF vector can be used to achieve LFI (CVE-2025-67174) - lack of CSRF protection mechanisms.
Discovered by Michal Biesiada, Dec 2025.
**Proof of Concept**
Screenshots
Attack Vectors:
- Remote. Authenticated user (admin or user/editor) visits an attacker-controlled webpage or clicks a crafted link.
The attacker page auto-submits a POST to `http:///admin.php?mode=edit&id=` (the page-create/update endpoint) with parameters required by the CMS.
Because the application does not validate a per-request CSRF token, the action is executed with the victim's session.
An attacker-controlled page can create a persistent site page which can contain malicious payloads that, when rendered or processed by the server, lead to Remote Code Execution (RCE).
Thus the exploit is a chained attack: CSRF (initial vector) - persistent content injection - RCE. Other CSRF vector can be used to achieve LFI.
Affected Component:
- The application does not validate a per-request CSRF token, lack of CSRF protection mechanisms.
Example:
- Add New Page / Page editing functionality (`admin.php?mode=edit&id=`).
- Component: page creation/update handler accepting POST requests without CSRF token validation; content persisted as page body.
Impact:
- CSRF forming an attack chain.
Example:
- Persistent content injection / chained RCE. Persistence / Webshell installation. Different results for different vectors (ie. LFI possible).
CWE-ID:
- CWE-352: Cross-Site Request Forgery (CSRF)
References:
- https://github.com/handylulu/RiteCMS/
- https://github.com/mbiesiad/vulnerability-research/tree/main/CVE-2025-67172
- https://www.cve.org/CVERecord?id=CVE-2025-67173
- https://nvd.nist.gov/vuln/detail/CVE-2025-67173
## Disclaimer
For educational and defensive purposes only.