Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Laravel Excel writes exports outside the configured filesystem disk when given a caller-controlled path
Vulnerability Description
Laravel Excel provides supercharged Excel exports and imports in Laravel. From 3.1.8 until 3.1.70, in src/Files/Disk.php the Maatwebsite\Excel\Files\Disk::copy() method resolves the caller-controlled $destination supplied through Excel::store(), $export->store(), or storeExcel() against the process working directory with realpath() instead of the configured filesystem disk. If the path names an existing writable file, Disk::copy() opens it with fopen() in rb+ mode and uses stream_copy_to_stream(), bypassing Flysystem path confinement and allowing an attacker whose application input controls the export path to overwrite arbitrary existing files with export content. The rb+ behavior creates a non-truncating overwrite and trailing bytes when the new export is shorter, and overwriting an executable PHP file can lead to remote code execution. This issue is fixed in version 3.1.70.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
Spartner Laravel Excel 路径遍历漏洞
Vulnerability Description
Spartner Laravel Excel是Spartner组织的一款Excel导入导出组件。 Spartner Laravel Excel 3.1.8版本至3.1.70之前版本存在安全漏洞,该漏洞源于Disk::copy()方法在解析目标路径时使用realpath()基于进程工作目录解析,而非配置的文件系统磁盘,导致绕过Flysystem路径限制,攻击者可覆盖任意现有文件,若覆盖可执行PHP文件可导致远程代码执行。
CVSS Information
N/A
Vulnerability Type
N/A