Summary
The Thelia Page Module before 2.0.4 has back-office delete routes that lack CSRF protections and permission checks. If a logged-in administrator is induced to visit a crafted request, an attacker may cause page tags, documents, images, and related files or variants to be deleted.
Affected context
The issue concerns delete routes in the Thelia Page Module's back office. It may affect deployments where those routes can be triggered through GET requests without verifying a CSRF token or checking the user's authorization for the requested deletion. The described impact includes TheliaLibrary images, their files and variants, and content associated with pages, products, and categories.
Exploit preconditions
- Attack surface: Thelia back-office delete routes.
- Required access: The victim must be authenticated as an administrator or another user with access to the affected back office.
- Trigger point: The victim's browser makes a crafted GET request to a delete route.
- Why exploitation is possible: The routes lack CSRF token validation and permission checks, allowing a request initiated by an attacker to perform deletions in the victim's authenticated session. Sequential identifiers may allow requests to target multiple items.
Why this happens
The underlying issue is that state-changing delete actions can be initiated without adequate request-origin verification or authorization checks. This maps to CWE-352: Cross-Site Request Forgery (CSRF): an application accepts a request from an authenticated user's browser without confirming that the user intentionally initiated it. Missing permission checks can further weaken access control around the deletion operation.
Potential impact
- An attacker could cause unauthorized deletion of page tags, documents, and images.
- TheliaLibrary image files and variants may be removed.
- Content associated with pages, products, or categories may be affected.
- Administrators may need to restore deleted content or media from backups.
General mitigation guidance
Common defensive patterns for state-changing operations include:
- Require unpredictable, session-bound CSRF tokens and validate them on every state-changing request.
- Use non-GET methods for actions that change or delete data, while still applying CSRF protections.
- Enforce server-side authorization checks for each requested object and operation.
- Limit bulk or sequential deletion behavior and require explicit confirmation for broad changes.
- Apply least privilege to back-office accounts and reduce exposure of administrative functions.
- Treat browser-origin signals as defense in depth rather than as a replacement for CSRF tokens and authorization.
How teams detect issues like this
Review back-office routes for state-changing behavior exposed through GET requests, missing CSRF validation, or authorization checks that are absent or performed only in the interface. Static analysis and code review can identify delete handlers that do not validate request tokens or object-level permissions. Automated policy checks can flag state-changing routes that accept GET requests, while application tests can verify that requests without valid tokens or sufficient permissions are rejected.

