漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Stack Buffer Overflow in rxi/microtar raw_to_header() via non-null-terminated TAR name field
Vulnerability Description
A stack-based buffer overflow exists in the raw_to_header() function in src/microtar.c in rxi microtar 0.1.0. The function copies the 100-byte name and linkname fields of a TAR header with strcpy() without guaranteeing null termination of the source. The POSIX ustar format permits these fixed-width fields to be fully populated with non-null bytes, so a crafted archive whose linkname field (followed by the trailing padding of the 512-byte raw header) contains no null terminator causes strcpy() to read past the end of the 512-byte raw header stack buffer and to write past the destination header buffer. A remote attacker who supplies a crafted TAR archive that the victim opens or parses (via mtar_open(), mtar_read_header(), or mtar_find()) can cause an out-of-bounds read and a stack buffer overflow, resulting in denial of service (crash) and potentially arbitrary code execution. Confirmed with AddressSanitizer: stack-buffer-overflow READ of size 356 in raw_to_header at src/microtar.c:112.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vulnerability Type
栈缓冲区溢出
Vulnerability Title
rxi microtar 缓冲区错误漏洞
Vulnerability Description
rxi microtar是rxi的嵌入式Web服务器。 rxi microtar 0.1.0版本存在缓冲区错误漏洞,该漏洞源于raw_to_header()函数未使用空终止符,可能导致错误处理TAR标头的name和linkname字段时,通过strcpy()越过512字节原始标头的堆栈缓冲区读取和写入,从而导致越界读取和栈缓冲区溢出,远程攻击者通过提供特制的TAR存档,可能导致拒绝服务或任意代码执行。
CVSS Information
N/A
Vulnerability Type
N/A