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-70342 — CVE-2025-70342: Credential Interception via Named Pipe in erase-install | Kitploit
Tools/GitHubGitHub/malvector/cve-2025-70342
Privilege EscalationVulnerability AnalysisExploitation
GitHubmalvector/cve-2025-70342

CVE-2025-70342

CVE-2025-70342: Credential Interception via Named Pipe in erase-install

View Repository
298 months agoNot yet reviewed
Share

CVE-2025-70342: Credential Interception via Named Pipe in erase-install

Summary

erase-install prior to v40.4 (commit 2c31239) writes swiftDialog credential output to a hardcoded path /var/tmp/dialog.json. On Apple Silicon Macs, admin credentials entered during reinstall/erase operations are written to this predictable, world-writable location. A local unprivileged attacker can create a named pipe (FIFO) at this path to intercept admin credentials in real time.

Affected Versions

  • Vulnerable: erase-install <= 40.4
  • Fixed: commit 2c31239 (after PR #574)

CVSS 3.1

Score: 7.1 (High)

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

MetricValue
Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired (admin enters credentials)
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone

Vulnerability Details

Hardcoded Credential Output Path (CWE-732)

File: erase-install.sh

Line 72:

dialog_output="/var/tmp/dialog.json"

Line 124:

"$dialog_bin" "${dialog_args[@]}" ... 2>/dev/null > "$dialog_output"

On Apple Silicon Macs, erase-install prompts the admin for credentials via swiftDialog. The credentials (username + password) are written via shell redirect to /var/tmp/dialog.json - a hardcoded path in a world-writable directory. The script does not check whether this path has been tampered with before writing.

Attack Scenario

1. Unprivileged attacker creates a named pipe (FIFO): mkfifo /tmp/.fifo
2. Attacker creates symlink: ln -s /tmp/.fifo /var/tmp/dialog.json
3. Attacker reads from FIFO (blocks, waiting for data)
4. Admin runs: sudo erase-install.sh --erase
5. Admin enters credentials in swiftDialog prompt
6. Credentials flow through symlink → FIFO → attacker's terminal

This attack requires no special timing or race condition - the attacker simply plants the symlink and waits.

Proof of Concept

Prerequisites

  • Apple Silicon Mac (credential prompt only triggers on arm64)
  • Any unprivileged local user account

Usage

# Start the listener (as unprivileged user)
python3 poc.py

# Wait for admin to run erase-install with --erase or --reinstall
# Credentials will be printed to stdout when captured

# Cleanup
python3 poc.py --cleanup

See poc.py for full details.

Remediation

  • Upgrade erase-install to the version containing commit 2c31239 or later
  • The fix uses mktemp to generate a random filename, preventing path prediction:
- dialog_output="/var/tmp/dialog.json"
+ dialog_output=$(/usr/bin/mktemp /var/tmp/dialog.XXX.json)

Timeline

DateEvent
2025-12-23Vulnerability discovered
2025-12-23Issue reported to maintainer
2025-12-24Fix merged via PR #574
2026-02-20CVE-2025-70342 assigned

Credit

  • cooldadhacking (GitHub)

References

  • erase-install PR #574
  • Fix commit 2c31239

Disclaimer

This proof of concept is provided for educational and authorized security testing purposes only. Use responsibly and only on systems you own or have explicit permission to test.

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.

    977
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    564
  • 3

    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.

    352
  • 4

    redforge

    cybersecurity91/redforge

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

    344
  • 5

    ARTEX

    baarai/artex

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

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

    308

Explore all tools

Browse our collection of tools

View all tools →