Summary
Apache Roller administrative actions accepted GET requests without requiring a request token, creating a cross-site request forgery (CSRF) risk. If a logged-in administrator visits an attacker-controlled link, the attacker may cause an administrator account to be created.
Affected context
The issue affects Apache Roller versions 5.0.1 through 6.1.6 when administrative actions that change data can be triggered with GET requests. In this context, request-token checks applied only to POST requests, leaving GET-based actions without the same CSRF protection.
Exploit preconditions
- Attack surface: Administrative web actions in Apache Roller
- Required access: The attacker does not need a Roller account; a Roller administrator must be logged in
- Trigger point: The administrator opens an attacker-controlled link while authenticated
- Why exploitation is possible: A data-changing action can be submitted as a GET request without a valid request token
Why this happens
The application applies CSRF token validation to POST requests but permits administrative actions that change data to use GET requests. Because browsers can make cross-origin requests when a user follows a link, those actions may be triggered using the administrator's authenticated session without the administrator's intent. This maps to CWE-352: Cross-Site Request Forgery (CSRF).
Potential impact
- An attacker may cause an administrator account to be created
- The new account could enable unauthorized access to administrative functions
- An attacker could make further changes within the permissions of the created account
General mitigation guidance
Mitigation patterns include requiring POST for every action that changes application state and validating a session-bound CSRF token on those requests. Applications can also avoid state changes in response to GET requests, use appropriate cookie protections as a supplementary control, and limit administrative privileges to reduce the potential impact of a compromised session.
How teams detect issues like this
- Review routes and controllers for state-changing operations reachable through GET requests
- Use static analysis or code review checks to confirm that state-changing handlers enforce CSRF validation
- Test that requests without valid tokens are rejected, including requests initiated through cross-origin navigation
- Apply security policies that prohibit state changes through safe HTTP methods

