vendor:
fcrackzip
by:
0x6264
7,5
CVSS
HIGH
Buffer Overflow
120
CWE
Product Name: fcrackzip
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: YES
Related CWE: None
CPE: fcrackzip
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Ubuntu 10.04
2010
FCrackZip Local Buffer Overflow PoC
FCrackZip does not check the length of the input provided to it when using the '-p' flag to supply an initial password or file used for a dictionary attack. Passing it a string exceding its buffer size (40) results in an overwrite.
Mitigation:
Replace the function 'strcpy (pw, optarg);' with 'strncpy (pw, optarg, 40);' Unlike strcpy(), strncpy() will copy no more than the specified string size(40 in our case).