/

CVE-2017-20284

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in Caucho Resin resin-doc

CVE-2017-20284

Awaiting Analysis

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Read

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

A path traversal vulnerability in the Caucho Resin documentation web application allows remote unauthenticated attackers to read arbitrary files from the underlying system. The issue becomes risky when the tutorial servlet accepts attacker-controlled file paths without sufficiently restricting them to the intended documentation directory.

Affected context

The vulnerability occurs in the Resin documentation web application, specifically the jndi-appconfig tutorial servlet. Deployments may be exposed when the documentation application is accessible over a network and the servlet uses the inputFile request parameter to locate files without reliably enforcing directory boundaries.

Exploit preconditions

  • Attack surface: Network-accessible Resin documentation web application
  • Required access: No authentication may be required when the affected servlet is publicly reachable
  • Trigger point: Processing of a user-supplied file path by the jndi-appconfig tutorial servlet
  • Why exploitation is possible: Relative path components are accepted without adequately constraining resolution to the intended tutorial directory

Why this happens

The underlying bug is improper neutralization of path elements used to construct filesystem locations. The servlet treats attacker-controlled path input as a trusted relative filename, allowing filesystem resolution to escape the intended directory. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal.

Potential impact

  • An attacker may read sensitive local files
  • Credentials, configuration data, or private keys could be exposed
  • Disclosure of application source code or operational information could occur
  • Exposed information could support further attacks against the host or related systems

General mitigation guidance

Mitigation generally focuses on eliminating direct use of untrusted path input and enforcing a strict file access boundary.

Common defensive patterns include:

  • Mapping approved logical names to fixed files instead of accepting filesystem paths
  • Canonicalizing paths and verifying that resolved locations remain within an allowed directory
  • Rejecting traversal syntax and unexpected path separators as defense-in-depth controls
  • Limiting the documentation application to trusted networks or disabling it where unnecessary
  • Running the service with least-privilege filesystem permissions and separating documentation content from sensitive data
  • Applying secure-by-default routing and access-control policies to administrative or sample applications

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis rules identifying filesystem APIs that consume request parameters
  • Code review checks for path canonicalization, directory-boundary validation, and allowlist enforcement
  • Web application firewall or gateway policies that monitor suspicious path components in requests
  • Access-log review for unusual requests targeting tutorial or documentation servlets and repeated file-read attempts
  • Automated security testing that verifies requests cannot resolve outside approved content directories

Sources

SourceLink
blkstone.github.ioblkstone.github.io/2017/10/30/resin-attack-vectors/
caucho.comcaucho.com/products/resin
raw.githubusercontent.comraw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/vulnerabilities/chanjet-tplus/chanjet-crm-sqli.yaml
vulncheck.comvulncheck.com/advisories/caucho-resin-resin-doc-unauthenticated-path-traversal-via-jndi-appconfig-servlet

Frequently asked

questions

Yes. It may be remotely exploitable without authentication when the affected documentation web application is network-accessible.

The attacker generally needs only network access to the vulnerable servlet. No valid account may be required, depending on deployment exposure and access controls.

Avoid using request parameters as filesystem paths. Prefer fixed resource mappings, strict allowlists, canonical path checks, and an enforced directory boundary.

Keep sample and documentation applications restricted or disabled when unnecessary, review file-handling code, enforce least-privilege filesystem access, and monitor requests for traversal indicators.

Find out what's already
exploitable in your codebase.