Skip to content
CVE-2026-94565 Elastic Security · Elastic

Detect CVE-2026-94565: NukeViet CMS Unauthenticated Stored XSS in Contact Module in Elastic Security

Detects exploitation of CVE-2026-94565, an unauthenticated stored cross-site scripting (XSS) vulnerability (CWE-79) in the Contact module of NukeViet CMS versions >= 3.0.0 and < 4.6.01. An unauthenticated attacker submits a contact form containing an unsanitized payload (e.g. in the name, subject, or message fields) that is stored and later rendered without encoding in the administrator's contact-management view, executing arbitrary JavaScript in the admin's session. CVSS 9.3. This detection surfaces POST requests to the contact submission endpoint carrying script/HTML-injection markers and subsequent admin-panel renders of stored contact entries. Fixed in NukeViet 4.6.01.

MITRE ATT&CK

Tactic
Initial Access

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-381915f24d · https://df00tech.com/detections/CVE-2026-94565 · licence: https://df00tech.com/detections/licence
any where http.request.method == "POST" and
  (stringContains(url.path, "contact") or stringContains(url.query, "contact")) and
  (
    stringContains(lower(url.query), "<script") or
    stringContains(lower(url.query), "javascript:") or
    stringContains(lower(url.query), "onerror=") or
    stringContains(lower(url.query), "onload=") or
    stringContains(lower(url.query), "<svg") or
    stringContains(lower(url.query), "document.cookie") or
    stringContains(lower(url.query), "%3cscript")
  )
high severity medium confidence

Elastic EQL rule matching POST requests to the NukeViet contact module with XSS markers in the query/body, indicating CVE-2026-94565 exploitation.

Data Sources

ElasticWeb Server LogsPacketbeat HTTP

Required Tables

logs-*packetbeat-*

False Positives & Tuning

  • Vulnerability scanners emitting XSS probe strings.
  • Legitimate HTML/code content pasted into contact fields.
  • Sanctioned security testing.

Other platforms for CVE-2026-94565


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.

  1. Test 1 Stored XSS submission via contact form (script tag)

    Expected signal: Web-server access log shows a POST to the contact endpoint with a URL-encoded <script> payload in the request body.

  2. Test 2 Stored XSS submission via img onerror handler

    Expected signal: Access log records a POST to the contact module containing an onerror= event-handler payload.

  3. Test 3 Stored XSS submission with SVG/entity-encoded payload (Windows)

    Expected signal: IIS W3C log shows a POST to the contact endpoint with <svg/onload and %3cscript entity-encoded markers.


Response Playbook

Triage

  1. Confirm the running NukeViet version from the admin footer or /install/version.php; if it is >= 3.0.0 and < 4.6.01 the instance is vulnerable to CVE-2026-94565.
  2. Extract the full submitted payload from the flagged POST request body (name, subject, email, message fields) and decode any URL/HTML entity encoding to reveal the injected script.
  3. Determine whether the stored submission has already been viewed in the admin Contact-management panel (check admin access logs for the contact listing URL after the submission timestamp), which indicates the payload may have executed in an admin session.
  4. Identify the source IP, user-agent and geolocation of the submitter and correlate against known scanner or threat-intel infrastructure.

Containment

  1. Deploy a WAF rule to block contact-form POST bodies containing HTML/script markers until the instance is patched.
  2. Purge the malicious stored entry from the nv4_contact (or equivalent nv*_contact) database table so it cannot render in the admin panel again.
  3. Force-invalidate active administrator sessions and rotate admin credentials if evidence shows an admin viewed the payload (possible session-cookie theft).

Evidence Collection

  1. Preserve the raw web-server access/error logs and WAF logs covering the submission and any subsequent admin views.
  2. Export the offending row(s) from the contact database table with timestamps before deletion.
  3. Capture the admin browser/session logs and any outbound requests to attacker-controlled domains referenced in the payload (document.cookie exfiltration endpoints).

Escalation Criteria

  • !Escalate to incident response if admin access logs confirm the stored payload was rendered in an authenticated admin session.
  • !Escalate if the payload contains credential/cookie exfiltration to an external domain or evidence of follow-on admin-account compromise.
  • !Escalate if multiple distinct malicious submissions or lateral movement from the web host are observed.

Investigation Guide

Forensic Artifacts

  • >Web-server access logs showing the POST to the contact endpoint with the injection payload.
  • >Rows in the NukeViet contact database table (nv*_contact) containing unsanitized HTML/script.
  • >Admin-panel access-log entries rendering the stored contact list after the malicious submission.
  • >Outbound HTTP requests from admin browsers to attacker-controlled exfiltration domains.

Tuning Guidance

Baseline legitimate contact-form traffic first; if users routinely paste code snippets, narrow the pattern set to active-execution markers (<script, onerror=, javascript:, document.cookie) and drop broad tags like <img. Whitelist known scanner source IPs used by your own security team. Correlate submission events with subsequent admin-panel renders to prioritize payloads that actually executed, and raise severity to critical when an admin view is observed.


Hunting Queries

Hunt for repeated XSS-marker POST submissions to the NukeViet contact module grouped by source IP to find campaign-style probing of CVE-2026-94565.

Hunting — KQL
kql
// df00tech DF00-381915f24d · https://df00tech.com/detections/CVE-2026-94565 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csMethod=="POST" and csUriStem has "contact" | extend d=tolower(url_decode(csUriQuery)) | where d has_any("<script","onerror=","document.cookie","%3cscript") | summarize count() by cIP, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-381915f24d · https://df00tech.com/detections/CVE-2026-94565 · licence: https://df00tech.com/detections/licence ```
index=web method=POST (uri_path="*contact*") | eval p=lower(urldecode(_raw)) | search p="*<script*" OR p="*onerror=*" OR p="*document.cookie*" | stats count by src_ip, uri_path

Atomic Red Team Tests

Test 1 Stored XSS submission via contact form (script tag)
linux

Submits a contact form POST with a classic script-tag payload to a lab NukeViet instance to validate detection of CVE-2026-94565.

Command

bash
curl -s -X POST 'http://nukeviet.lab/index.php?nv=contact' --data-urlencode 'fullname=<script>alert(document.cookie)</script>' --data-urlencode '[email protected]' --data-urlencode 'subject=hello' --data-urlencode 'content=test message'

Cleanup

bash
mysql -u root nukeviet -e "DELETE FROM nv4_contact WHERE email='[email protected]';"

Expected Telemetry

Web-server access log shows a POST to the contact endpoint with a URL-encoded <script> payload in the request body.

Expected Detection

KQL/SPL rules match on the <script and document.cookie markers in the decoded contact POST.

Test 2 Stored XSS submission via img onerror handler
linux

Submits an img-based onerror XSS payload to evade naive script-tag filters, testing CVE-2026-94565 detection coverage.

Command

bash
curl -s -X POST 'http://nukeviet.lab/index.php?nv=contact' --data-urlencode 'fullname=<img src=x onerror=alert(1)>' --data-urlencode '[email protected]' --data-urlencode 'subject=hi' --data-urlencode 'content=payload'

Cleanup

bash
mysql -u root nukeviet -e "DELETE FROM nv4_contact WHERE email='[email protected]';"

Expected Telemetry

Access log records a POST to the contact module containing an onerror= event-handler payload.

Expected Detection

Detection matches on the onerror= and <img markers in the contact submission.

Test 3 Stored XSS submission with SVG/entity-encoded payload (Windows)
windows

From a Windows host, submits an SVG and HTML-entity-encoded XSS payload to validate decoding and detection for CVE-2026-94565.

Command

powershell
powershell -c "Invoke-WebRequest -Uri 'http://nukeviet.lab/index.php?nv=contact' -Method POST -Body @{fullname='<svg/onload=alert(1)>';email='[email protected]';subject='%3cscript%3ealert(1)%3c/script%3e';content='x'}"

Cleanup

powershell
powershell -c "Invoke-WebRequest -Uri 'http://nukeviet.lab/admin/index.php?nv=contact&op=delete&[email protected]'"

Expected Telemetry

IIS W3C log shows a POST to the contact endpoint with <svg/onload and %3cscript entity-encoded markers.

Expected Detection

Detection matches after URL-decoding on the <svg, onload, and %3cscript markers.

Related Detections