Skip to main content

CVE-2025-0188: Chuanhuchatgpt SSRF Vulnerability

CVE-2025-0188 is a Server-Side Request Forgery flaw in Gaizhenbiao Chuanhuchatgpt that enables attackers to access internal systems and steal data. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-0188 Overview

CVE-2025-0188 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] in gaizhenbiao/chuanhuchatgpt version 20240914. The application saves responses from attacker-controlled URLs into folders named using the SHA-1 hash of the target URL. An attacker with low privileges can craft a predictable response path and retrieve the content directly. This enables access to internal systems, cloud metadata endpoints, and other network-reachable services that the server trusts.

Critical Impact

Authenticated attackers can force the server to fetch arbitrary internal URLs and read the responses, exposing internal services, cloud metadata, and sensitive network resources.

Affected Products

  • gaizhenbiao chuanhuchatgpt version 20240914

Discovery Timeline

  • 2025-03-20 - CVE-2025-0188 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-0188

Vulnerability Analysis

The vulnerability resides in the response-handling logic of chuanhuchatgpt. When the application fetches a remote resource on behalf of a user, it stores the fetched response in a directory named after the SHA-1 hash of the requested URL. Because SHA-1 is deterministic, an attacker who supplies a URL can precompute the folder name and then request the stored response through the application. This design turns an outbound server request into an attacker-readable artifact. The result is a classic SSRF primitive that bypasses the trust boundary between the public application and internal network resources.

Root Cause

The root cause is missing validation and allow-listing of user-supplied URLs before the server dereferences them. The application accepts arbitrary schemes and hosts, performs an outbound HTTP request, and persists the response in a path derived from the input. No controls restrict requests to internal address space (127.0.0.0/8, 169.254.169.254, RFC1918 ranges), and no authorization check gates reading the resulting stored file.

Attack Vector

An authenticated low-privilege user supplies a URL pointing to an internal resource, such as a cloud instance metadata endpoint or an internal admin API. The server fetches the URL and writes the response under a folder named sha1(url). The attacker computes the same SHA-1 hash offline and requests the stored file through the application interface. This yields the response body, enabling data exfiltration from otherwise unreachable internal services. See the Huntr Bounty Overview for additional technical context.

Detection Methods for CVE-2025-0188

Indicators of Compromise

  • Outbound HTTP requests from the chuanhuchatgpt host to internal RFC1918 addresses, loopback, or cloud metadata endpoints such as 169.254.169.254.
  • Newly created directories on the application host whose names match 40-character hexadecimal SHA-1 patterns, containing unexpected response bodies.
  • Application access logs showing authenticated users retrieving stored response files shortly after submitting URL-fetching requests.

Detection Strategies

  • Inspect application logs for user-submitted URLs that target non-public hostnames, link-local addresses, or non-HTTP schemes.
  • Correlate outbound network connections from the application process with the user session that initiated them to surface SSRF behavior.
  • Alert on repeated 200-response fetches to internal IP ranges originating from the chuanhuchatgpt process.

Monitoring Recommendations

  • Enable egress logging on the host and forward DNS and connection telemetry to a central analytics platform for review.
  • Monitor the application's response storage directory for unexpected growth or hash-named folders tied to internal URLs.
  • Track authentication events alongside URL submissions to identify low-privilege accounts probing internal infrastructure.

How to Mitigate CVE-2025-0188

Immediate Actions Required

  • Restrict access to the chuanhuchatgpt instance to trusted users and remove anonymous or self-service registration where possible.
  • Place the application behind an egress proxy that blocks requests to RFC1918 ranges, loopback, and cloud metadata endpoints.
  • Audit the response storage directory for hash-named folders referencing internal targets and purge any attacker-created artifacts.

Patch Information

No vendor advisory or fixed version is listed in the enriched data for gaizhenbiao/chuanhuchatgpt version 20240914. Monitor the project repository and the Huntr Bounty Overview for remediation guidance and upgrade to a patched release when available.

Workarounds

  • Enforce a strict URL allow-list limiting outbound fetches to approved external domains.
  • Deploy IMDSv2 on AWS workloads to require session tokens for metadata access and reduce SSRF impact.
  • Run the application in a network segment that cannot route to internal management interfaces or sensitive services.
bash
# Example egress restriction using iptables to block cloud metadata access
iptables -A OUTPUT -m owner --uid-owner chuanhu -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner chuanhu -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner chuanhu -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner chuanhu -d 192.168.0.0/16 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.