cbcvebase.
CVE-2017-6361
published 2017-03-23

CVE-2017-6361: QNAP QTS before 4.2.4 Build 20170313 allows attackers to execute arbitrary commands via unspecified vectors.

PriorityP186critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
56.85%
98.9th percentile
QNAP QTS before 4.2.4 Build 20170313 allows attackers to execute arbitrary commands via unspecified vectors.

Affected

1 ranges
VendorProductVersion rangeFixed in
qnapqts<= 4.2.4

Detection & IOCsextracted from sources · hover to see the quote

path/cgi-bin/authLogin.cgi
path/cgi-bin/userConfig.cgi
path/cgi-bin/filemanager/utilRequest.cgi
commandcurl -ki "https://TARGET/cgi-bin/authLogin.cgi?reboot_notice_msg=$(printf 'QNAPVJBD%08d%16s 14`(echo;id)>&2`' $(expr $(date +%s) % 100000000) Disconnect|base64|tr -d '\r\n')"
otherreboot_notice_msg=QNAPVJBD<timestamp><Disconnect><length><payload>
  • Detect HTTP GET requests to /cgi-bin/authLogin.cgi containing the 'reboot_notice_msg' parameter; the value is a base64-encoded string beginning with 'QNAPVJBD' which can carry an injected shell command payload.
  • Detect HTTP GET requests to /cgi-bin/userConfig.cgi with func=cloudPersonalSmtp and a 'hash' parameter containing shell metacharacters (backticks, semicolons, pipe characters) indicative of command injection.
  • Detect HTTP GET requests to /cgi-bin/filemanager/utilRequest.cgi with func=cancel_trash_recovery and a 'pid' parameter containing shell metacharacters, as the value is passed unsanitized to /bin/kill -9 %s via system().
  • CVE-2017-6361 affects QNAP NAS devices; look for exploitation attempts against port 443 on NAS devices, consistent with top affected ports observed in IoT botnet scanning activity.
  • ·Vulnerabilities were confirmed on QNAP TVS-663 firmware 4.2.2 Build 20161214 and 4.2.3 Build 20170213, and CVE-2017-6361 was also confirmed on QNAP HS-251+ running QTS 4.2.2 Build 20161028. All devices running QTS prior to 4.2.4 Build 20170313 are believed to be affected.

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
vulncheck9.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.