CVE-2018-7171
published 2018-03-30CVE-2018-7171: Directory traversal vulnerability in Twonky Server 7.0.11 through 8.5 allows remote attackers to share the contents of arbitrary directories via a .. (dot dot)…
PriorityP266high7.5CVSS 3.0
AVNACLPRNUINSUCHINAN
EXPLOIT
EPSS
28.73%
97.9th percentile
Directory traversal vulnerability in Twonky Server 7.0.11 through 8.5 allows remote attackers to share the contents of arbitrary directories via a .. (dot dot) in the contentbase parameter to rpc/set_all.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| lynxtechnology | twonky_server | 7.0.11 – 8.5 | — |
| westerndigital | my_cloud_firmware | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Detect POST requests to /rpc/set_all containing 'contentbase=/../' or 'contentdir=/../' in the body, indicating directory traversal exploitation attempt. ↗
- →Alert on HTTP responses from Twonky Server containing the 'Server: Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0, Twonky UPnP SDK/1.1' header, identifying vulnerable server instances. ↗
- →Detect access to /api/2.1/rest/ endpoints using PHPSESSID cookies harvested from /tmp/sess_* files on WDMyCloud devices, indicating post-exploitation REST API abuse. ↗
- →Flag unauthenticated POST requests to /rpc/set_all from external/untrusted IPs; approximately 98% of ~20800 publicly exposed Twonky servers lack password protection. ↗
- ·The traversal payload uses 'contentbase' in the PoC script but 'contentdir' in the narrative description; both parameter names should be monitored. ↗
- ·The /rpc/dir endpoint uses different URL formats depending on version: query-string (?path=) for version 8.x and path-style (/path=) for earlier versions. ↗
- ·The exploit also attempts HTTPS fallback if HTTP connection fails; detection rules should cover both http and https on port 9000. ↗
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
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.
GHSA
GHSA-w6p6-8rg5-jg22: Directory traversal vulnerability in Twonky Server 7
ghsa_unreviewed·2022-05-14
CVE-2018-7171 [HIGH] CWE-22 GHSA-w6p6-8rg5-jg22: Directory traversal vulnerability in Twonky Server 7
Directory traversal vulnerability in Twonky Server 7.0.11 through 8.5 allows remote attackers to share the contents of arbitrary directories via a .. (dot dot) in the contentbase parameter to rpc/set_all.
GHSA
GHSA-hrr3-c733-fj52: Western Digital WD My Cloud v04
ghsa_unreviewed·2022-05-14·CVSS 7.5
CVE-2018-9148 [HIGH] CWE-287 GHSA-hrr3-c733-fj52: Western Digital WD My Cloud v04
Western Digital WD My Cloud v04.05.00-320 devices embed the session token (aka PHPSESSID) in filenames, which makes it easier for attackers to bypass authentication by listing a directory. NOTE: this can be exploited in conjunction with CVE-2018-7171 for remote authentication bypass within a product that uses My Cloud.
No detection rules found.
No writeups or analysis indexed.
http://packetstormsecurity.com/files/146938/TwonkyMedia-Server-7.0.11-8.5-Directory-Traversal.htmlhttps://github.com/mechanico/sharingIsCaring/blob/master/twonky.pyhttps://www.exploit-db.com/exploits/44350/http://packetstormsecurity.com/files/146938/TwonkyMedia-Server-7.0.11-8.5-Directory-Traversal.htmlhttps://github.com/mechanico/sharingIsCaring/blob/master/twonky.pyhttps://www.exploit-db.com/exploits/44350/
2018-03-30
Published