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-0073-Android-ADBD-bypass-POC β€” CVE-2026-0073 β€” Android ADB daemon (adbd) TLS authentication bypass via EVP_PKEY_cmp type confusion. Gain unauthorized shell access over WiFi using EC/Ed25519 key mismatch. PoC exploit for Android 14+. | Kitploit
Tools/GitHubGitHub/martinpsdev/cve-2026-0073-android-adbd-bypass-poc
Android SecurityVulnerability AnalysisExploitationPenetration TestingMobile SecurityRed Teaming
GitHubmartinpsdev/cve-2026-0073-android-adbd-bypass-poc

CVE-2026-0073-Android-ADBD-bypass-POC

Share

CVE-2026-0073 β€” Android ADB daemon (adbd) TLS authentication bypass via EVP_PKEY_cmp type confusion. Gain unauthorized shell access over WiFi using EC/Ed25519 key mismatch. PoC exploit for Android 14+.

View Repository
256606 months agoReviewed by Kitploit

CVE-2026-0073 β€” Android ADBD TLS Auth Bypass

EVP_PKEY_cmp() type confusion β†’ unauthorized ADB shell

Python 3.10+ CVE-2026-0073 Android License


πŸ”₯ Overview

A critical authentication bypass in Android's ADB daemon (adbd) allows any attacker on the local network to obtain a full shell on a target device without user authorization.

The vulnerability exists in adbd_tls_verify_cert() within daemon/auth.cpp, where EVP_PKEY_cmp() is used as a boolean. When the stored key is RSA and the presented TLS client certificate carries a non-RSA key (EC P-256 or Ed25519), EVP_PKEY_cmp() returns -1 (type mismatch), which is truthy in C/C++, so authorized = true.

// Vulnerable code pattern in daemon/auth.cpp
if (EVP_PKEY_cmp(peer_key, stored_key)) {  // ← BUG: -1 is truthy!
    authorized = true;
}
EVP_PKEY_cmp() returnMeaningTruthy in C?Result
1Keys matchβœ…Authorized (correct)
0Keys differ❌Rejected (correct)
-1Type mismatchβœ…Authorized (BUG)

⚑ Quick Start

Install dependencies

pip install cryptography

Run the exploit

# Interactive shell
python adb_tls_auth_bypass.py <TARGET_IP> <PORT>

# Single command execution
python adb_tls_auth_bypass.py 192.168.1.42 37521 --cmd "id"

# Verbose mode (see full protocol trace)
python adb_tls_auth_bypass.py 192.168.1.42 37521 -v --cmd "id"

Force a specific key type

python adb_tls_auth_bypass.py 192.168.1.42 5555 --key-type ec
python adb_tls_auth_bypass.py 192.168.1.42 5555 --key-type ed25519

By default, the script auto-tries EC P-256 β†’ Ed25519 β†’ EC/TLS 1.2 until one succeeds.


🎯 Exploit Flow

   Attacker                          Target (adbd)
      β”‚                                    β”‚
      │──── TCP connect ──────────────────►│
      │──── CNXN (cleartext) ────────────►│
      │◄─── STLS (TLS upgrade request) ──│
      │──── STLS reply ──────────────────►│
      β”‚                                    β”‚
      │════ TLS 1.3 Handshake ════════════│
      β”‚  (EC P-256 client cert presented)  β”‚
      β”‚  EVP_PKEY_cmp(EC, RSA) β†’ -1       β”‚
      β”‚  -1 is truthy β†’ authorized=true   β”‚
      │════════════════════════════════════│
      β”‚                                    β”‚
      │◄─── CNXN (device info) ──────────│
      │──── OPEN "shell:" ───────────────►│
      │◄─── OKAY ────────────────────────│
      │◄──► WRTE/OKAY (shell I/O) ──────►│
      β”‚                                    β”‚
    [FULL SHELL ACCESS]                    β”‚

πŸ“‹ Prerequisites

RequirementDetails
Developer OptionsEnabled on target device
Wireless DebuggingEnabled (or ADB over TCP on port 5555)
Stored RSA keyDevice must have been USB-paired at least once (/data/misc/adb/adb_keys)
Network accessAttacker must reach the adbd TCP port

⚠️ Important: The RSA key must be in /data/misc/adb/adb_keys, which is populated via USB debugging pairing (accepting the "Allow USB debugging?" dialog). Wireless debugging pairing (adb pair) stores keys in a different location (adb_known_hosts.pb) and does NOT satisfy this requirement.


πŸ›‘οΈ Affected Versions

  • Android 14 (AOSP) β€” βœ… Confirmed vulnerable
  • Android 15 (AOSP) β€” Likely vulnerable (unpatched builds)
  • Vendor-specific builds may vary (Samsung One UI, Pixel, etc.)

How to check the patch level

adb shell getprop ro.build.version.security_patch

πŸ§ͺ Testing Environment

Tested and confirmed working on:

Kernel:   6.1.23-android14-4-00257-g7e35917775b8-ab9964412
Platform: Android 14 (Android Studio Emulator)

πŸ”§ Improvements Over Original

This fork includes several enhancements:

  • βœ… Multi-key fallback β€” Auto-tries EC P-256 β†’ Ed25519 β†’ EC/TLS 1.2
  • βœ… Ed25519 support β€” Alternative key type for broader compatibility
  • βœ… TLS 1.2 fallback β€” Different client cert flow (sent during handshake vs post-handshake)
  • βœ… Enhanced certificate β€” Proper X.509 extensions (BasicConstraints, KeyUsage)
  • βœ… Windows compatible β€” Uses threaded I/O instead of select() for cross-platform support
  • βœ… Increased timeouts β€” Better reliability on slower networks
  • βœ… Verbose diagnostics β€” Detailed protocol trace with -v flag

πŸ“ Project Structure

CVE-2026-0073-Android-ADBD-bypass-POC/
β”œβ”€β”€ adb_tls_auth_bypass.py    # Main exploit script
└── README.md                 # This file

⚠️ Disclaimer

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


πŸ“š References

  • CVE-2026-0073 β€” MITRE
  • Android Security Bulletin
  • OpenSSL EVP_PKEY_cmp documentation
  • ADB Protocol Reference

If this helped your research, drop a ⭐

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.

    806
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    523
  • 3

    ARTEX

    baarai/artex

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

    441
  • 4

    redforge

    cybersecurity91/redforge

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

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

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

    264

Explore all tools

Browse our collection of tools

View all tools β†’