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
POC_CVE-2026-46716 | Kitploit
Tools/GitHubGitHub/haerin-l/poc_cve-2026-46716
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationLabs & Practice
GitHubhaerin-l/poc_cve-2026-46716

POC_CVE-2026-46716

View Repository
2 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-46716 — Nezha Monitoring Cross-Tenant RCE via Cron API Authorization Bypass

A lab environment for reproducing and detecting CVE-2026-46716, a critical vulnerability in Nezha Monitoring where the POST /api/v1/cron endpoint lacks admin privilege checks, allowing RoleMember users to achieve cross-tenant remote code execution.


Vulnerability Overview

FieldDetails
CVE IDCVE-2026-46716
GHSAGHSA-99gv-2m7h-3hh9
CVSS9.9 (Critical) — AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected versionsnezhahq/nezha >= 1.4.0, < 1.14.15-0.20260517022419-d7526351cf97
Patchedv1.14.15-0.20260517022419-d7526351cf97 (commit d7526351cf97, 2026-05-17)
CWECWE-862 (Missing Authorization), CWE-269 (Improper Privilege Management), CWE-78 (OS Command Injection)

Root Cause

root@kitploit:~
Vulnerable path:
POST /api/v1/cron  →  commonHandler (JWT auth only, no role check)
  → CheckPermission(servers=[])
    → iterates empty list → returns true unconditionally
      → CronTrigger dispatches command to ALL servers via ServerShared map
        ❌ No admin check, no ownership validation → cross-tenant RCE

Patched path:
POST /api/v1/cron  →  commonHandler (same — HTTP 200 still returned for members)
  → CheckPermission(servers=[]) → true (unchanged)
    → CronTrigger: cronCanSendToServer(cr, s) checks cr.UserID == s.UserID
      ✅ Commands only dispatched to servers owned by the cron creator

Attack Prerequisites

#ConditionDetails
1Affected Nezha version

Lab Architecture

root@kitploit:~
Host Machine
├── localhost:8008 ──→ Docker: nezha-vuln    (v1.14.14            ⚠ VULNERABLE)
└── localhost:8009 ──→ Docker: nezha-patched (commit d7526351cf97 ✓ PATCHED, built from source)

Prerequisites

ToolInstall
Docker Desktopdocker.com
nucleibrew install nuclei
curl, python3pre-installed on macOS

How to Run

Step 1 — Set up lab environment

root@kitploit:~
bash scripts/01-setup.sh

When done:

root@kitploit:~
══════════════════════════════════════════════════════
 Lab ready!
══════════════════════════════════════════════════════
 Vulnerable  (v1.14.14) : http://localhost:8008
 Patched     (latest) : http://localhost:8009
 Admin       : admin / admin
 Member      : member / Memberpass123!
══════════════════════════════════════════════════════

Note: If the member account creation API differs from expected, create it manually via the Nezha UI at http://localhost:8008 (Settings → Users).

Step 2 — Trigger the CVE

root@kitploit:~
bash scripts/03-trigger-cve.sh

Expected output — vulnerable (v1.14.14):

root@kitploit:~
HTTP 200 — Cron created (id: 1)
⚠  RESULT: ADMIN CHECK BYPASSED — VULNERABLE

Expected output — patched:

root@kitploit:~
HTTP 403 — Access denied
✓  RESULT: Admin check enforced — PATCHED

Step 3 — Nuclei detection

root@kitploit:~
# Vulnerable cluster → should produce a [critical] finding
nuclei -duc -t nuclei/CVE-2026-46716.yaml \
  -u http://localhost:8008 \
  -var username=admin \
  -var password=admin

# Patched cluster → should produce no findings
nuclei -duc -t nuclei/CVE-2026-46716.yaml \
  -u http://localhost:8009 \
  -var username=admin \
  -var password=admin

Step 4 — Teardown

root@kitploit:~
bash scripts/99-teardown.sh

Directory Structure

root@kitploit:~
nezha-cve-2026-46716-lab/
├── README.md
├── LAB_SETUP_GUIDE.md              # Lab setup guide (English)
├── VULNERABILITY_ANALYSIS.md       # Code-level vulnerability analysis (English)
├── NUCLEI_TEMPLATE_GUIDE.md        # Nuclei template design and test results (English)
├── docker-compose.yaml
│
├── REPORT/                         # Korean reports
│   ├── LAB_REPORT_KR.md
│   ├── Nuclei_Template_Report_KR.md
│   └── Vulnerability_Analysis_KR.md
│
├── nuclei/
│   └── CVE-2026-46716.yaml         # Nuclei detection template
│
└── scripts/
    ├── 01-setup.sh                 # Start containers, create member account
    ├── 03-trigger-cve.sh           # PoC: trigger auth bypass, verify result
    └── 99-teardown.sh              # Stop and remove all lab resources

Nuclei Template Detection Logic

root@kitploit:~
Step 1  POST /api/v1/login  (admin credentials)
        → authenticate and extract JWT token

Step 2  GET /api/v1/setting
        → version field matched against vulnerable range (1.4.x – 1.14.14)
        → match  →  FINDING: vulnerable version detected
        → no match (>= 1.14.15 or "debug")  →  no finding

Both vulnerable and patched versions return HTTP 200 for POST /api/v1/cron with servers:[], cover:1 — behavioral detection is not possible. The patch only adds ownership validation inside CronTrigger at execution time, not at the API level. Admin credentials are required because GET /api/v1/setting returns the version field only for RoleAdmin users.


References

  • GHSA-99gv-2m7h-3hh9
  • NVD — CVE-2026-46716

Warning: All credentials in this lab are fake test data for security research purposes only. Never use in production.

Download Tool
< 1.14.15-0.20260517022419
2Authenticated accountRoleMember (lowest privilege level)
3Empty server list"servers":[], "cover":1 bypasses CheckPermission