CVE-2026-70558: CWE-434 Unrestricted upload of file with dangerous type in DataLinkDC Dinky
CVE-2026-70558 is a critical vulnerability in DataLinkDC's Dinky v1.2.5 that allows unrestricted file upload via the /download/uploadFromRsByLocal endpoint. The endpoint lacks path validation and relies on a hardcoded token for access control, enabling attackers to write arbitrary files as the Dinky service account. This can lead to overwriting application files and remote code execution upon JVM restart. The vulnerability affects the default Docker image running on port 8888 with permissive file permissions.
AI Analysis
Technical Summary
The vulnerability arises because Dinky's POST /download/uploadFromRsByLocal handler directly uses a caller-supplied path parameter to create and write files without validating the path. The route bypasses the Sa-Token interceptor and only checks a hardcoded header token, which is shipped with every deployment. An attacker with network access to the HTTP port and knowledge of the token can upload arbitrary files as the Dinky service account (uid 9999). The default Docker image runs with no proxy or authentication and has world-writable permissions on /opt/dinky, allowing overwriting of critical application files such as static assets and class files. This enables immediate JavaScript injection in admin browsers and remote code execution on JVM restart via classpath shadowing.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write arbitrary files as the Dinky service account, leading to full compromise of the application. This includes overwriting static web assets to serve malicious JavaScript to administrators and placing malicious class files that execute code with the service account privileges on JVM restart. The attack surface includes the default Docker deployment with no authentication and permissive file permissions. The attacker cannot write to system directories owned by root but can fully control the application environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict network access to the Dinky HTTP port (default 8888) to trusted users only. Change or remove the default hardcoded dinkyToken value if possible. Avoid running the default Docker image in production environments without additional access controls or file permission hardening. Monitor for unusual file changes in the /opt/dinky directory and consider disabling or restricting the vulnerable upload endpoint if feasible.
CVE-2026-70558: CWE-434 Unrestricted upload of file with dangerous type in DataLinkDC Dinky
Description
CVE-2026-70558 is a critical vulnerability in DataLinkDC's Dinky v1.2.5 that allows unrestricted file upload via the /download/uploadFromRsByLocal endpoint. The endpoint lacks path validation and relies on a hardcoded token for access control, enabling attackers to write arbitrary files as the Dinky service account. This can lead to overwriting application files and remote code execution upon JVM restart. The vulnerability affects the default Docker image running on port 8888 with permissive file permissions.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because Dinky's POST /download/uploadFromRsByLocal handler directly uses a caller-supplied path parameter to create and write files without validating the path. The route bypasses the Sa-Token interceptor and only checks a hardcoded header token, which is shipped with every deployment. An attacker with network access to the HTTP port and knowledge of the token can upload arbitrary files as the Dinky service account (uid 9999). The default Docker image runs with no proxy or authentication and has world-writable permissions on /opt/dinky, allowing overwriting of critical application files such as static assets and class files. This enables immediate JavaScript injection in admin browsers and remote code execution on JVM restart via classpath shadowing.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write arbitrary files as the Dinky service account, leading to full compromise of the application. This includes overwriting static web assets to serve malicious JavaScript to administrators and placing malicious class files that execute code with the service account privileges on JVM restart. The attack surface includes the default Docker deployment with no authentication and permissive file permissions. The attacker cannot write to system directories owned by root but can fully control the application environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict network access to the Dinky HTTP port (default 8888) to trusted users only. Change or remove the default hardcoded dinkyToken value if possible. Avoid running the default Docker image in production environments without additional access controls or file permission hardening. Monitor for unusual file changes in the /opt/dinky directory and consider disabling or restricting the vulnerable upload endpoint if feasible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-04T19:19:05.906Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a75070bbf8831d5395f5c49
Added to database: 08/06/2026, 22:13:31 UTC
Last enriched: 08/06/2026, 22:42:06 UTC
Last updated: 08/06/2026, 22:42:06 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.