Arbitrary file write via unfiltered upload path
Published Apr 2, 2023 · Updated Nov 22, 2024
Path traversal in go-fastdfs 1.4.0 through 1.4.3 allows remote attackers to write files outside the upload directory via a crafted path. The upload handler copies the multipart path field into fileInfo.Path without neutralizing dot segments, so ../../ sequences escape intended storage. No authentication is required; successful requests place attacker-controlled content at server-writable paths, while code execution requires a writable executable location.
Summary
What happened
Path traversal in go-fastdfs 1.4.0 through 1.4.3 allows remote attackers to write files outside the upload directory via a crafted path. The upload handler copies the multipart path field into fileInfo.Path without neutralizing dot segments, so ../../ sequences escape intended storage. No authentication is required; successful requests place attacker-controlled content at server-writable paths, while code execution requires a writable executable location.
The record
- CVE
- CVE-2023-1800
- Published
- Apr 2, 2023
- Updated
- Nov 22, 2024
- Vendor
- sjqzhang
- Product
- go-fastdfs
- Classifications
- CWE-434, CWE-24, CWE-22, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 2, 2023CVE publishedPublication date reported by the CVE source.
- Nov 22, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1.4.0
- Affected versionversion=1.4.1
- Affected versionversion=1.4.2
- Affected versionversion=1.4.3
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- go-fastdfs arbitrary file upload proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo