/

CVE-2019-25785

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in FineReport 8.0 ReportServer

CVE-2019-25785

Received

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized arbitrary file read and sensitive information disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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/ReportServer endpoint 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 resourcepath parameter.
  • 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.

Sources

SourceLink
github.comgithub.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/oa/%E5%B8%86%E8%BD%AFOA/%E5%B8%86%E8%BD%AF%E6%8A%A5%E8%A1%A8%20V8%20get_geo_json%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E%20CNVD-2018-04757.md
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/finereport/finereport-path-traversal.yaml
web.archive.orgweb.archive.org/web/20200506020241/http://foreversong.cn/archives/1378
vulncheck.comvulncheck.com/advisories/finereport-8.0-unauthenticated-file-read-via-reportserver-resourcepath

Frequently asked

questions

The described vulnerability may be reachable over the network through the ReportServer endpoint, and the description states that authentication is not required.

No authenticated access is described as necessary, but the endpoint must be reachable and the relevant request must be processed.

Use server-controlled resource identifiers where possible, and ensure resolved file paths remain within an explicitly allowed directory.

Treat request-derived paths as untrusted, enforce canonical path-boundary checks, restrict filesystem permissions, and review file access code with static analysis and code review.

Find out what's already
exploitable in your codebase.