Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-44998 PoC — TinyFileManager 安全漏洞

Source
Associated Vulnerability
Title:TinyFileManager 安全漏洞 (CVE-2025-44998)
Description:TinyFileManager是一个基于 Web 的文件管理器。用于通过 Web 浏览器在线存储、上传、编辑和管理文件和文件夹。 TinyFileManager v2.4.7版本存在安全漏洞,该漏洞源于存储型跨站脚本漏洞,可能导致执行任意JavaScript或HTML。
Description
TinyFileManger XSS Vulnerability
Readme
## CVE-2025-44998

### Summary
A stored cross-site scripting (XSS) vulnerability in the component `/tinyfilemanager.php` of TinyFileManager v2.4.7 allows attackers to execute arbitrary JavaScript or HTML via injecting a crafted payload into the `js-theme-3` parameter.

### PoC
- To check for vulnerabilities, go to the Settings page (url: http://localhost/index.php?p=&settings=1).
![alt text](./assets/1.png)

- While sending the request, modify the value of the `js-theme-3` parameter to the following payload: `light“></nav><img+src=x+onerror=alert(document.cookie)><nav+a=” `
![alt text](./assets/2.png)

- The injected script will then execute and can run throughout the page, including the login screen.
![alt text](./assets/3.png)

### Impact
- The `filemanager` cookie, which is used as the session ID, does not have the httpOnly flag set, making it vulnerable to HTTP session cookie hijacking.
![alt text](./assets/4.png)

- Combined with the previously reported session fixation vulnerability(CVE-2022-40916), this could allow an attacker to log in as any user by using a fixed 'filemanager' cookie value every time they log in.
![alt text](./assets/5.png)
File Snapshot

[4.0K] /data/pocs/9e37a6408780e810b2fdfc2a60d2c8248c7be9e5 ├── [4.0K] assets │   ├── [ 35K] 1.png │   ├── [ 55K] 2.png │   ├── [ 55K] 3.png │   ├── [ 17K] 4.png │   └── [ 70K] 5.png └── [1.1K] README.md 1 directory, 6 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.