/

CVE-2023-54402

Severity:

HIGH RISK

(7.5)

SSRF (CWE-918) in iDocView Document Upload Endpoint

CVE-2023-54402

Deferred

Vulnerability type

Category:

Server-Side Request Forgery

CWE:

CWE-918

Impact:

Unauthorized resource access and internal network reconnaissance

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

iDocView contains a server-side request forgery vulnerability in the /doc/upload endpoint. An unauthenticated remote attacker who can use the hardcoded default token may cause the server to request attacker-selected URLs, potentially reading local files or accessing internal network services.

Affected context

The vulnerability occurs in iDocView deployments where the /doc/upload endpoint accepts attacker-influenced URLs, authentication can be bypassed with a default token, and URL schemes are not restricted. Risk is increased when the service has access to sensitive local files, cloud metadata endpoints, internal hosts, or administrative services.

Exploit preconditions

  • Attack surface: The remotely reachable /doc/upload endpoint
  • Required access: No valid account may be required when the hardcoded default token is accepted
  • Trigger point: Server-side processing of a supplied URL during document upload handling
  • Why exploitation is possible: URL validation and scheme restrictions do not adequately constrain outbound requests, allowing the server to access local or internal resources on the attacker's behalf

Why this happens

The underlying bug is server-side request forgery, mapped to CWE-918. The application treats a client-controlled URL as a trusted resource location and uses the server's network and file-access privileges to retrieve it. Authentication weakness from a hardcoded default token and insufficient URL-scheme validation broaden the reachable attack surface.

Potential impact

  • Attackers may read sensitive local files, including operating-system or application configuration data.
  • Attackers could access internal network hosts and services that are not directly exposed to the internet.
  • Cloud or infrastructure metadata may be disclosed where reachable from the server.
  • Internal services could be scanned or abused through the vulnerable application.
  • Exposed credentials may enable further compromise or lateral movement.

General mitigation guidance

Mitigation generally focuses on removing default authentication bypasses and enforcing a strict outbound request trust boundary.

Common defensive patterns include:

  • Require strong, non-default authentication and authorization before URL retrieval.
  • Permit only required URL schemes, such as HTTPS, and reject local-file and other unsafe schemes.
  • Use allowlists for destination hosts, ports, and URL paths rather than accepting arbitrary destinations.
  • Resolve hostnames safely and block loopback, link-local, private, and other restricted address ranges, including redirect targets.
  • Route outbound requests through controlled egress proxies or network policies.
  • Run the service with minimal filesystem, network, and operating-system privileges.
  • Avoid exposing sensitive files and credentials to the service account.

How teams detect issues like this

High-level detection approaches include:

  • Static analysis for user-controlled URLs passed to HTTP clients, file readers, or generic resource-fetching functions.
  • Code review checks for default tokens, authentication bypass conditions, unrestricted URL schemes, and missing redirect validation.
  • Runtime monitoring for unexpected outbound requests to loopback, private, link-local, metadata, or unusual external destinations.
  • Web application firewall and gateway policies that restrict URL-fetching parameters and suspicious URI schemes.
  • Network egress logging and alerting correlated with requests to sensitive internal address ranges.
  • Automated security review tools can help identify SSRF sinks and hardcoded authentication values during development.

Sources

SourceLink
blog.csdn.netblog.csdn.net/qq_41904294/article/details/134995343
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/idoc/idocview-lfi.yaml
vulncheck.comvulncheck.com/advisories/idocview-ssrf-via-doc-upload-endpoint-hardcoded-token

Frequently asked

questions

Yes. The affected upload endpoint is remotely reachable, and exploitation may not require a valid account when the default token is accepted.

An attacker needs network access to the endpoint and the ability to provide a URL together with the accepted token value. No access to the target server's filesystem or internal network is required beforehand.

Remove default authentication bypasses, require robust authorization, and restrict server-side requests to an explicit allowlist of safe schemes, destinations, ports, and redirect targets.

Treat all client-supplied URLs as untrusted, enforce outbound network controls, block local and private address ranges, validate resolved destinations, and monitor egress traffic for unexpected internal-resource access.

Find out what's already
exploitable in your codebase.