cbcvebase.
CVE-2018-10660
published 2018-06-26

CVE-2018-10660: An issue was discovered in multiple models of Axis IP Cameras. There is Shell Command Injection.

PriorityP183critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
82.15%
99.6th percentile
An issue was discovered in multiple models of Axis IP Cameras. There is Shell Command Injection.

Affected

390 ranges· showing 25
VendorProductVersion rangeFixed in
axisa1001_firmware< 1.65.11.65.1
axisa8004-v_firmware< 1.65.21.65.2
axisa8105-e_firmware< 1.65.21.65.2
axisa9161_firmware< 1.65.01.65.0
axisa9188-v_firmware< 1.65.01.65.0
axisa9188_firmware< 1.65.01.65.0
axisc1004-e_firmware< 1.81.040.11.81.040.1
axisc2005_firmware< 1.81.040.11.81.040.1
axisc3003-e_firmware< 1.81.040.11.81.040.1
axisc8033_firmware< 1.81.040.11.81.040.1
axiscompanion_bullet_le_firmware< 8.20.18.20.1
axiscompanion_c360_firmware< 7.15.2.37.15.2.3
axiscompanion_cube_l_firmware< 8.20.18.20.1
axiscompanion_cube_lw_firmware< 8.20.18.20.1
axiscompanion_dome_v_firmware< 8.20.18.20.1
axiscompanion_dome_wv_firmware< 8.20.18.20.1
axiscompanion_eye_l_firmware< 8.20.18.20.1
axiscompanion_eye_lve_firmware< 8.20.18.20.1
axiscompanion_recorder_4ch_firmware< 1.20.11.20.1
axiscompanion_recorder_8ch_firmware< 1.20.11.20.1
axisd201-s_xpt_q6055_firmware< 6.50.2.36.50.2.3
axisd2050-ve_firmware< 7.35.4.27.35.4.2
axisf34_main_unit_firmware< 6.50.2.36.50.2.3
axisf41_main_unit_firmware< 6.50.2.36.50.2.3
axisf44_dual_audio_input_firmware< 6.50.2.36.50.2.3

Detection & IOCsextracted from sources · hover to see the quote

url/index.html/<random>.srv
path/axis-cgi/
path.srv
othercom.axis.PolicyKitParhand
command--system --dest=com.axis.PolicyKitParhand --type=method_call /com/axis/PolicyKitParhand com.axis.PolicyKitParhand.SetParameter
commandcom.axis.PolicyKitParhand.SynchParameters
snort
alert http any any -> $HOME_NET any (msg:"ET WEB_SPECIFIC_APPS Axis Communications Security Camera Command Injection Attempt (CVE-2018-10660) M1"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/axis-cgi/"; fast_pattern; startswith; content:".cgi|3f|"; distance:0; pcre:"/^.+(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R"; reference:url,www.vdoo.com/blog/vdoo-discovers-significant-vulnerabilities-in-axis-cameras/; reference:cve,2018-10660; classtype:attempted-admin; sid:2059463; rev:1;)
snort
alert http any any -> $HOME_NET any (msg:"ET WEB_SPECIFIC_APPS Axis Communications Security Camera Command Injection Attempt (CVE-2018-10660, CVE-2018-10661, CVE-2018-10662) M2"; flow:established,to_server; http.method; content:"POST"; http.uri; content:".srv"; endswith; http.request_body; content:"com.axis.PolicyKitParhand"; fast_pattern; content:"string:"; distance:0; pcre:"/^[^\x26]*?(?:(?:\x3b|%3[Bb])|(?:\x0a|%0[Aa])|(?:\x60|%60)|(?:\x7c|%7[Cc])|(?:\x24|%24))+/R"; reference:cve,2018-10660; classtype:attempted-admin; sid:2059464; rev:1;)
  • Exploit uses HTTP POST to a URI ending in a random alphanumeric string with a .srv extension (e.g., /index.html/<8-42 char random>.srv) — detect POST requests with URIs ending in .srv
  • Injection payload is embedded in the 'args' POST body field targeting the D-Bus parameter 'string:root.Time.DST.Enabled' with shell metacharacters (;, newline, backtick, pipe, $) appended after the value
  • M1 rule: detect GET requests to /axis-cgi/*.cgi? URIs containing shell injection characters (;, %3B, newline %0A, backtick %60, pipe %7C, dollar %24) in the URI
  • M2 rule: detect POST requests to URIs ending in .srv with request body containing 'com.axis.PolicyKitParhand' and 'string:' followed by shell injection metacharacters
  • Exploit chains two POST requests: first to set a parameter with injected command via SetParameter, then a second to trigger execution via SynchParameters — look for sequential .srv POSTs from the same source
  • Default Metasploit payload used is cmd/unix/reverse_netcat_gaping — monitor for outbound netcat reverse shell connections from camera devices
  • ·The exploit requires no authentication due to an auth bypass in the .srv functionality chained with the command injection in parhand — authentication controls alone are insufficient to block this attack
  • ·The Metasploit module's BadChars for the payload include spaces, and the encoder 'cmd/ifs' is used to bypass this — detection rules should account for IFS-encoded payloads in addition to plain shell metacharacters
  • ·Snort/Suricata rules are scoped to plaintext HTTP (tls_state plaintext) — encrypted HTTPS traffic to cameras will not be detected by these signatures

CVSS provenance

nvdv3.09.8CRITICALCVSS:3.0/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
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.