Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-25732-NiceGUI-3.6.1 — Exploit for CVE-2026-25732, a path traversal in NiceGUI's FileUpload that allows unauthenticated arbitrary file write. Includes usage examples for overwriting application files or dropping webshells. | Kitploit
Tools/GitHubGitHub/mbanyamer/cve-2026-25732-nicegui-3.6.1
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubmbanyamer/cve-2026-25732-nicegui-3.6.1

CVE-2026-25732-NiceGUI-3.6.1

Exploit for CVE-2026-25732, a path traversal in NiceGUI's FileUpload that allows unauthenticated arbitrary file write. Includes usage examples for overwriting application files or dropping webshells.

View Repository
6 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Author: Mohammed Idrees Banyamer
Contact:

  • Instagram: @banyamer_security
  • GitHub: https://github.com/mbanyamer

CVE-2026-25732 — NiceGUI Path Traversal in FileUpload → Arbitrary File Write

Exploit Title: NiceGUI Path Traversal in FileUpload Leading to Arbitrary File Write
Date: 2025-06-06
Tested on: NiceGUI ≤ 3.6.1 (Python 3.8 – 3.12 on Linux / Windows)
Fixed in: NiceGUI 3.7.0
CVE: CVE-2026-25732
Weakness: CWE-22 — Improper Limitation of a Pathname to a Restricted Directory
Attack Vector: Network
Privileges Required: None
User Interaction: None
Platform: Web Application (NiceGUI / Python)

Vulnerability Summary

NiceGUI versions ≤ 3.6.1 do not properly sanitize the name field of uploaded files in ui.upload() / FileUpload handler when the application developer uses the original filename in the save path without additional sanitization.

This allows an unauthenticated attacker to write arbitrary files anywhere the NiceGUI process has write permissions via path traversal sequences (../, absolute paths, etc.).

Common impact examples:

  • Overwrite app.py / main.py → code execution on application reload/restart
  • Write files to /etc/, home directories, .ssh/, configuration folders, etc.
  • Drop webshells in web-accessible locations (when running behind nginx/Apache)

Exploit Code

root@kitploit:~
#!/usr/bin/env python3
"""
CVE-2026-25732 — NiceGUI arbitrary file write (path traversal)
Exploits unsanitized FileUpload.name when app uses it in save path.

Usage:
    python exploit_cve_2026_25732.py http://target:8080 "../etc/passwd" payload.txt
    python exploit_cve_2026_25732.py http://target:8080 "../app.py" malicious_app.py
    python exploit_cve_2026_25732.py http://target:8080 "nicegui/../../../etc/crontab" revshell-cron
"""
Download Tool