mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- markus@cvs.openbsd.org 2002/06/08 05:07:09
[ssh-keysign.c] only accept 20 byte session ids
This commit is contained in:
parent
ece420413b
commit
a20715788d
@ -3,6 +3,9 @@
|
|||||||
- markus@cvs.openbsd.org 2002/06/08 05:07:56
|
- markus@cvs.openbsd.org 2002/06/08 05:07:56
|
||||||
[ssh.c]
|
[ssh.c]
|
||||||
nuke ptrace comment
|
nuke ptrace comment
|
||||||
|
- markus@cvs.openbsd.org 2002/06/08 05:07:09
|
||||||
|
[ssh-keysign.c]
|
||||||
|
only accept 20 byte session ids
|
||||||
|
|
||||||
20020607
|
20020607
|
||||||
- (bal) Removed --{enable/disable}-suid-ssh
|
- (bal) Removed --{enable/disable}-suid-ssh
|
||||||
@ -834,4 +837,4 @@
|
|||||||
- (stevesk) entropy.c: typo in debug message
|
- (stevesk) entropy.c: typo in debug message
|
||||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2189 2002/06/09 20:00:09 mouring Exp $
|
$Id: ChangeLog,v 1.2190 2002/06/09 20:01:48 mouring Exp $
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: ssh-keysign.c,v 1.2 2002/05/31 10:30:33 markus Exp $");
|
RCSID("$OpenBSD: ssh-keysign.c,v 1.3 2002/06/08 05:07:09 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
|
||||||
@ -60,8 +60,12 @@ valid_request(struct passwd *pw, char *host, Key **ret, u_char *data,
|
|||||||
buffer_init(&b);
|
buffer_init(&b);
|
||||||
buffer_append(&b, data, datalen);
|
buffer_append(&b, data, datalen);
|
||||||
|
|
||||||
/* session id */
|
/* session id, currently limited to SHA1 (20 bytes) */
|
||||||
buffer_skip_string(&b);
|
p = buffer_get_string(&b, &len);
|
||||||
|
if (len != 20)
|
||||||
|
fail++;
|
||||||
|
xfree(p);
|
||||||
|
|
||||||
if (buffer_get_char(&b) != SSH2_MSG_USERAUTH_REQUEST)
|
if (buffer_get_char(&b) != SSH2_MSG_USERAUTH_REQUEST)
|
||||||
fail++;
|
fail++;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user