目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1310

100%

CVE-2024-46483 PoC — Xlight FTP 安全漏洞

来源
关联漏洞
标题:Xlight FTP 安全漏洞 (CVE-2024-46483)
Description:Xlight FTP是Xlight FTP公司的一款高性能且易于使用的 FTP 服务器软件。使文件传输安全且易于使用。 Xlight FTP 3.9.4.3之前版本存在安全漏洞,该漏洞源于SFTP服务器包解析逻辑中的整数溢出,可能导致使用攻击者控制的内容进行堆溢出。
Description
Pre-Authentication Heap Overflow in Xlight SFTP server <= 3.9.4.2
介绍
# CVE-2024-46483 - Pre-Authentication Heap Overflow in Xlight SFTP server

### Affected versions
Xlight 32 and 64-bit versions <= 3.9.4.2

### Impact
An unauthenticated attacker with access to Xlight SFTP could gain code execution or cause a denial or service.

### Root Cause
Strings sent across the wire in the SFTP protocol are prefixed with a four byte length. The function which Xlight uses to read these strings from the network packet has an integer overflow when validating the length and when allocating the required amount of memory. By crafting the four byte length for a string we can trigger a large memmove (~4GB) from an attacker-controlled buffer out-of-bounds onto the heap.

The vulnerable function is used for receiving strings throughout the SSH handshake, including pre-authentication when receiving supported algorithms, cipher suites, and a username and password from the client. We can target any of these strings with a crafted length to trigger the exploit.

### Exploitability
This is easy to trigger but the ease of exploitation depends on the bitness of the Xlight binary.

On 32-bit the copy will run off the end of the heap, clobbering everything in the process, before causing a crash. It is likely possible to corrupt an adjacent structure on the heap and exploit the multi-threaded nature of this server to access the corrupted data, before the wild copy crashes the process.

On 64-bit we can't get an OOB write, because the size argument to the memory allocation call is a size_t (i.e. 64-bits wide when compiled for 64-bit), which means we can't overflow this value with the addition of two 32-bit integers, and instead we just allocate a large ~4GB buffer. This bug results in an OOB read instead, which crashes the process.
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →