Summary
FineReport 8.0 has a path traversal flaw in the ReportServer endpoint that may let unauthenticated attackers read files outside the intended resource directory. If the endpoint is reachable and file paths are not properly constrained, sensitive files—including those containing administrative credentials—could be exposed.
Affected context
The issue is associated with FineReport 8.0's /WebReport/ReportServer endpoint when it handles chart geo-JSON requests using the resourcepath parameter. Risk depends on the endpoint being accessible and the application failing to confine requested paths to an approved directory.
Exploit preconditions
- Attack surface: The
/WebReport/ReportServerendpoint must be reachable by the attacker. - Required access: The described issue does not require authentication.
- Trigger point: Processing a chart geo-JSON request that uses the
resourcepathparameter. - Why exploitation is possible: Path values may be accepted without sufficient validation or confinement to the intended resource directory.
Why this happens
The underlying issue is improper limitation of a path to a restricted directory, corresponding to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). When a program uses attacker-influenced path input without reliably resolving and checking the resulting location, it may access files outside the intended directory.
Potential impact
- Attackers may read files outside the intended resource directory.
- Sensitive configuration or privilege files could be disclosed.
- Exposed credentials may enable further unauthorized access.
- Information obtained from files could support additional attacks.
General mitigation guidance
Defensive patterns focus on minimizing trust in user-supplied paths and enforcing directory boundaries.
- Prefer mapping approved resource identifiers to fixed, server-controlled file paths.
- Canonicalize paths and verify that resolved locations remain within an explicitly allowed directory.
- Reject unexpected path formats and avoid relying on string checks alone.
- Limit the sensitivity of files accessible to the application and apply least-privilege filesystem permissions.
- Require authentication and authorization for sensitive operations where appropriate.
How teams detect issues like this
- Use static analysis to identify file access APIs that consume request parameters or other untrusted path values.
- Review path normalization, canonicalization, and directory-boundary checks around resource loading.
- Apply code review policies requiring server-controlled resource mappings for file access.
- Monitor requests to file-serving endpoints for unusual path values and review access to sensitive files.
- Automated security review tools may help flag potentially unsafe path handling.

