Summary
Apache Roller's AtomPub endpoint parses submitted XML in a way that permits external entity references. An authenticated user, even without weblog permissions, may be able to read files accessible to the Roller process or cause the server to make HTTP requests to attacker-chosen destinations.
Affected context
The issue affects Apache Roller versions 4.0 through 6.1.6 when AtomPub requests reach the vulnerable XML parsing path. The entry is parsed before per-weblog authorization and before the AtomPub feature-enabled check, making the endpoint reachable to authenticated accounts on default installations.
Exploit preconditions
- Attack surface: The AtomPub endpoint, which accepts XML entry content
- Required access: An authenticated account; weblog permissions are not required
- Trigger point: Submission of an Atom entry that is parsed by the endpoint
- Why exploitation is possible: The parser permits external parameter entities and external DTD subsets, and parsing occurs before authorization and feature-enabled checks
Why this happens
The application parses attacker-controlled XML with external entity resolution enabled. When a parser processes external parameter entities or DTD subsets, it may retrieve external resources and include their contents during parsing.
This is CWE-611: Improper Restriction of XML External Entity Reference. The underlying insecure pattern is allowing untrusted XML to trigger external resource resolution before access controls or feature checks take effect.
Potential impact
- An attacker may read files that are accessible to the Roller process.
- The server could make outbound HTTP requests to attacker-chosen destinations.
- Sensitive information may be exposed through responses or other observable behavior.
- Outbound requests could provide a path to interact with internal services, depending on network access and deployment controls.
General mitigation guidance
Reduce risk by configuring XML parsers to disallow external entity and external DTD processing, or by using a parser mode that does not resolve external resources.
Common defensive patterns include:
- Validate XML against a strict, expected structure using safe parsing settings.
- Apply authentication, authorization, and feature-enabled checks before parsing request bodies where practical.
- Reject AtomPub requests early when the feature is disabled.
- Restrict the application's filesystem access and outbound network connectivity.
- Run the service with only the privileges it needs.
How teams detect issues like this
Review XML parsing code and configuration for external entity resolution, external DTD loading, and parsing of request bodies before authorization checks. Static analysis and code review can flag insecure parser settings and paths where feature or permission checks occur after parsing.
Operational monitoring may look for unexpected outbound requests from the Roller process and unusual access to sensitive files. Policy checks can require external XML resource resolution to be disabled.

