View Issue Details

IDProjectCategoryView StatusLast Update
0004403unrealircdpublic2015-08-30 09:55
ReporterEmanAssigned Tosyzop 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSScientific LinuxOS Version6.7
Product Version3.4-beta3 
Target VersionFixed in Version3.4-beta4 
Summary0004403: command line mkpasswd segfault
Descriptionsegfault when choosing type of encryption without specifying the password on the commandline:

works:
[ircd@buildhost ~/unrealircd]$ ./unrealircd mkpasswd bcrypt test
Encrypted password is: $2y$09$HNckyNL9v53yFggt20Wof.sfXOaG9.64o7kkbaWMTKedZ6uCL6Phi

segfault:
[ircd@buildhost ~/unrealircd]$ ./unrealircd mkpasswd bcrypt
./unrealircd: line 186: 32726 Segmentation fault (core dumped) /home/ircd/unrealircd/bin/unrealircd -P $2 $3

works:
[ircd@buildhost ~/unrealircd]$ ./unrealircd mkpasswd
Enter password to hash: (test typed in)
Encrypted password is: $2y$09$QtGczCHkIccpg2BrPSxZPuMc12u7pbOqpcohhvCXw1K6fNIL3NvIa
[ircd@buildhost ~/unrealircd]$

appears to be the same result for all methods (md5/sha1 etc)
TagsNo tags attached.
3rd party modules

Activities

syzop

2015-08-30 09:55

administrator   ~0018660

Fixed, thanks!

https://github.com/unrealircd/unrealircd/commit/42cec683df3a0a92627f83eb3399d2b2e9a73996

commit 42cec683df3a0a92627f83eb3399d2b2e9a73996
Author: Bram Matthys <syzop@vulnscan.org>
Date: Sun Aug 30 09:53:40 2015 +0200

    Fix crash when you run './unrealircd mkpasswd bcrypt' on the command line. Reported by Eman (0004403).

Issue History

Date Modified Username Field Change
2015-08-30 04:29 Eman New Issue
2015-08-30 09:22 syzop Assigned To => syzop
2015-08-30 09:22 syzop Status new => confirmed
2015-08-30 09:55 syzop Note Added: 0018660
2015-08-30 09:55 syzop Status confirmed => resolved
2015-08-30 09:55 syzop Fixed in Version => 3.4-beta4
2015-08-30 09:55 syzop Resolution open => fixed