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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2025-63307 PoC — Laravel File Manager 安全漏洞

来源
关联漏洞
标题: Laravel File Manager 安全漏洞 (CVE-2025-63307)
Description:Laravel File Manager是Aleksandr Manekin个人开发者的一个Laravel文件管理器。 Laravel File Manager 3.3.1版本存在安全漏洞,该漏洞源于允许用户上传创建和重命名HTML和SVG类型文件,且未进行充分的内容类型验证或输出清理,可能导致跨站脚本攻击。
Description
An authenticated Stored Cross-site Scripting (XSS) vulnerability in laravel-file-manager v3.3.1 and below allows attackers with access to the file manager interface to inject and persist arbitrary JavaScript code in uploaded or created files. 
介绍
# CVE-2025-63307 – Authenticated Stored Cross-site Scripting (XSS) in laravel-file-manager v3.3.1

## 🧭 Overview

An authenticated Stored Cross-site Scripting (XSS) vulnerability in laravel-file-manager v3.3.1 and below allows attackers with access to the file manager interface to inject and persist arbitrary JavaScript code in uploaded or created files.
By uploading a specially crafted .html or .svg file containing malicious JavaScript, or by directly creating and editing such a file within the file manager, attackers can achieve stored XSS that executes when any other authenticated user or administrator views the file through the web interface.

## 🧱 Affected Component
- **Project:** `laravel-file-manager`
- **Component:** File upload, create, and render functionality (e.g., FileManagerController.php)
- **Affected version:** **v3.3.1 and below**

## 🎯 Attack Vectors
1. Authenticate with an account that has permission to upload, create, or rename files via the file manager interface.
2. Upload or create a file with a .svg or .html extension containing malicious JavaScript
3. The application stores this file without validating its content or sanitizing embedded scripts.
4. When another user (such as an administrator or repository maintainer) views or previews the file in their browser, the malicious JavaScript executes in the context of the application’s domain.
5. The script can then perform actions such as session hijacking, CSRF, or stealing sensitive data from the victim’s browser.

## 💥 Impact
- Stored XSS: Persistent JavaScript execution within the application's origin.
- Session Hijacking & Account Takeover: Attackers can steal cookies or perform actions as the victim.
- Phishing / UI Redressing: Injected scripts can spoof UI elements or redirect users to malicious sites.
- Sensitive Data Exposure: Access to information within the application accessible to the victim’s session.

## CVSS v3
### Base Score: 8.1

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N

### Severity: High

## 🛡️ Recommended Remediation
- Implement strict server-side content-type validation and filtering for uploaded files.
- Disallow or sanitize uploads with .html, .svg, or other formats capable of containing active content.
- Serve user-uploaded files with the Content-Disposition: attachment header or from a separate, non-executable domain/subdomain.
- Apply output encoding and sanitization before rendering user-controlled content in the browser.

> ## 🙏 Credits
> Discovered and reported by: Chayawat Jeamprasertboon, Thanakorn Boontem, Sahapon Kanajanothai and Theethat Thamwasin

---
文件快照

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

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