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-34910-unifi-poc — Proof-of-concept exploit for UniFi OS CVE-2026-34910 auth bypass enabling command injection/RCE, and CVE-2026-34909 path traversal for arbitrary file reads. | Kitploit
Tools/GitHubGitHub/gagaltotal/cve-2026-34910-unifi-poc
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubgagaltotal/cve-2026-34910-unifi-poc

CVE-2026-34910-unifi-poc

Proof-of-concept exploit for UniFi OS CVE-2026-34910 auth bypass enabling command injection/RCE, and CVE-2026-34909 path traversal for arbitrary file reads.

View Repository
2 days 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

UniFi OS CVE Proof of Concept

Proof of concept for authorized testing of two vectors identified as:

  • CVE-2026-34910: auth bypass that can lead to command injection and remote code execution via the package update handler.
  • CVE-2026-34909: path traversal that can lead to arbitrary file read via the app-assets alias.

This script is intended for security validation on devices and networks that you own or are explicitly authorized to test. Do not use it against third-party systems.

Status

  • Script version: 1.0.0
  • Language: Python 3
  • Third-party dependencies: none
  • Protocol: HTTP or HTTPS
  • TLS certificate verification: disabled by the script to support devices with self-signed certificates

CVSS scores and vulnerability status must be verified against vendor advisories and relevant firmware versions before being used in reports.

Security Warning

This script can send commands to the target and read file contents from the target. The impact may include system changes, disclosure of sensitive information, service disruption, or data corruption.

Before conducting testing:

  1. Obtain written permission and define the scope of testing.
  2. Use lab devices or an approved maintenance window.
Download Tool
  • Avoid commands that change configuration, delete data, or disrupt services.
  • Do not read sensitive files unless they are explicitly included in scope.
  • Store test results securely and remove proof artifacts when finished.
  • Apply appropriate vendor firmware or mitigations after testing.
  • Requirements

    • Python 3.10 or newer
    • Network access to the target UniFi OS endpoint
    • Authorization to perform testing

    The script only uses the Python standard library, so there are no additional package installation steps.

    Installation

    Clone the repository or copy the script to the test machine, then enter the project directory:

    root@kitploit:~
    git clone <URL-REPOSITORI>
    cd CVE-2026-34910
    

    No pip install is required. Ensure the interpreter you are using is suitable:

    root@kitploit:~
    python3 --version
    

    Usage

    General format:

    root@kitploit:~
    python3 CVE-2026-34910.py <target> [command] [options]
    

    target must be a URL with an http:// or https:// scheme, for example https://192.0.2.10:11443.

    Bypass probe

    Runs the probe without sending any additional commands:

    root@kitploit:~
    python3 CVE-2026-34910.py https://192.0.2.10:11443 --check
    

    RCE testing

    The second positional argument is treated as a command sent to the target. Use only approved, non-destructive commands:

    root@kitploit:~
    python3 CVE-2026-34910.py https://192.0.2.10:11443 "id"
    

    The --proof option asks the target to create a proof file at /tmp/PWNED_34910:

    root@kitploit:~
    python3 CVE-2026-34910.py https://192.0.2.10:11443 --proof
    

    Verify and remove the proof file through approved access procedures. Do not treat an HTTP 200 response as the sole evidence that the command succeeded.

    File read testing

    root@kitploit:~
    python3 CVE-2026-34910.py https://192.0.2.10:11443 --read /etc/hostname
    

    The script prints at most 800 characters from the file response.

    Verbose mode

    Add --verbose or -v to view request and response details:

    root@kitploit:~
    python3 CVE-2026-34910.py https://192.0.2.10:11443 --check --verbose
    

    Note that verbose output may contain sensitive URLs, parameters, or response data.

    Command-Line Options

    OptionDescription
    targetTarget URL with an HTTP or HTTPS scheme
    commandCommand to be tested through the CVE-2026-34910 vector
    --checkRuns the auth bypass probe only
    --proofRequests creation of a proof file on the target
    --read PATHTests file read via path traversal
    -v, --verboseDisplays additional debug information
    -h, --helpDisplays usage help

    Use only one operation mode per execution. The program returns exit code 0 if the operation is considered successful, 1 if the target is not indicated as vulnerable or arguments are incomplete, and 2 if an unexpected error occurs. User interruption returns 130.

    How It Works at a High Level

    1. The script validates that the target has a scheme and hostname.
    2. The script sends a request to the encoded auth traversal path.
    3. The --check mode inspects the response for a marker indicating the handler was reached.
    4. Command mode constructs the pkg_name value and sends it to the package update endpoint.
    5. The --read mode constructs a path traversal to the app-assets alias and displays the response in a limited manner.

    The implementation is entirely in CVE-2026-34910.py.

    Limitations and Interpreting Results

    • Marker-based probes are not a comprehensive verification and can produce false positives or false negatives.
    • HTTP responses are influenced by firmware, reverse proxies, network configuration, and endpoint implementation.
    • HTTP status 200 in RCE mode indicates the request was accepted by the handler, not a guarantee that the command completed as expected.
    • The script disables TLS certificate verification. Run it only on test networks and do not consider the connection to provide server authentication.
    • The HTTP timeout is fixed at 15 seconds and cannot be changed via the CLI.
    • The script does not provide automated remediation.

    Remediation

    For devices within the testing scope:

    1. Identify the UniFi OS version and device model.
    2. Check official Ubiquiti security advisories for remediation status and recommended firmware versions.
    3. Update the device through approved change management procedures.
    4. Restrict network access to the administrative interface and monitor logs for suspicious requests.
    5. Repeat validation only after obtaining authorization and a post-remediation testing plan.

    Reporting

    Test reports should record:

    • Device model, UniFi OS version, and testing time.
    • Target address masked if the report is shared outside the team.
    • Modes and arguments used.
    • Response codes and a summary of results without exposing sensitive data.
    • Minimum evidence required for reproduction.
    • Impact, confidence level, and remediation recommendations.

    For responsible vulnerability reporting, use the vendor's official security channels and coordinate disclosure according to applicable policies.

    License

    No license has been specified for this project. Add a license file before distributing or using this code in other projects.

    Authors

    Gagaltotal666 - GhostGTR666

    Related repository: github.com/gagaltotal