mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 01:50:10 +00:00
fixed base64_decode () input length validation for -m 8900
This commit is contained in:
parent
c4e6ffc346
commit
9b75b245d5
@ -175,6 +175,10 @@ Type.: Bug
|
|||||||
File.: Host
|
File.: Host
|
||||||
Desc.: Fixed some checks in the parser of -m 5600 = NetNTLMv2
|
Desc.: Fixed some checks in the parser of -m 5600 = NetNTLMv2
|
||||||
|
|
||||||
|
Type.: Bug
|
||||||
|
File.: Host
|
||||||
|
Desc.: Fixed some checks in the parser of -m 8900 = scrypt
|
||||||
|
|
||||||
* changes v2.00 -> v2.01:
|
* changes v2.00 -> v2.01:
|
||||||
|
|
||||||
Type.: Bug
|
Type.: Bug
|
||||||
|
@ -14688,9 +14688,13 @@ int scrypt_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
|
|||||||
|
|
||||||
// base64 decode
|
// base64 decode
|
||||||
|
|
||||||
|
int salt_len_base64 = hash_pos - saltbuf_pos;
|
||||||
|
|
||||||
|
if (salt_len_base64 > 45) return (PARSER_SALT_LENGTH);
|
||||||
|
|
||||||
u8 tmp_buf[33] = { 0 };
|
u8 tmp_buf[33] = { 0 };
|
||||||
|
|
||||||
int tmp_len = base64_decode (base64_to_int, (const u8 *) saltbuf_pos, hash_pos - saltbuf_pos, tmp_buf);
|
int tmp_len = base64_decode (base64_to_int, (const u8 *) saltbuf_pos, salt_len_base64, tmp_buf);
|
||||||
|
|
||||||
char *salt_buf_ptr = (char *) salt->salt_buf;
|
char *salt_buf_ptr = (char *) salt->salt_buf;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user