projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a448fe
)
added additional check for max. ESSID length to prevent eventual crashes
author
philsmd
<philsmd@hashcat.net>
Wed, 9 Mar 2016 10:13:41 +0000
(11:13 +0100)
committer
philsmd
<philsmd@hashcat.net>
Wed, 9 Mar 2016 10:13:41 +0000
(11:13 +0100)
src/shared.c
patch
|
blob
|
history
diff --git
a/src/shared.c
b/src/shared.c
index
608dcf6
..
8c9f225
100644
(file)
--- a/
src/shared.c
+++ b/
src/shared.c
@@
-10023,6
+10023,13
@@
int wpa_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
uint salt_len = strlen (in.essid);
+ if (salt_len > 36)
+ {
+ log_info ("WARNING: the length of the ESSID is too long. The hccap file may be invalid or corrupted");
+
+ return (PARSER_SALT_LENGTH);
+ }
+
memcpy (salt->salt_buf, in.essid, salt_len);
salt->salt_len = salt_len;