Skip to content

[defect]: version 3.2.7 crashes when password ends with % #5525

@yehavi-git

Description

@yehavi-git

What type of defect/bug is this?

Crash or memory corruption (segv, abort, etc...)

How can the issue be reproduced?

Hello,
After upgrading from 3.2.6 to 3.2.7 the server crashes when a password ends with %. The clear text password is retrieved from a database using an "exec" plugin, and is returned in the format:

Cleartext-Password := "M1&2@3%"

When removing the % it works ok.

Attached is radiusd.log with GDB backtrace.

Thanks!

Log output from the FreeRADIUS daemon

(2036)       [mschap] = noop
(2036) pap: WARNING: Auth-Type already set.  Not setting to PAP
(2036)       [pap] = noop
(2036)     } # authorize = updated
(2036)   Found Auth-Type = eap
(2036)   # Executing group from file /home/yehavi/freeradius-server-3.2.7/etc/raddb/sites-enabled/eduroam
(2036)     authenticate {
(2036) eap: Removing EAP session with state 0xf885ea1bf83ff057
(2036) eap: Previous EAP request found for state 0xf885ea1bf83ff057, released from the list
(2036) eap: Peer sent packet with method EAP MSCHAPv2 (26)
(2036) eap: Calling submodule eap_mschapv2 to process data
(2036) eap_mschapv2: # Executing group from file /home/yehavi/freeradius-server-3.2.7/etc/raddb/sites-enabled/eduroam
(2036) eap_mschapv2:   Auth-Type MS-CHAP {
(2036) mschap: Found Cleartext-Password, hashing to create NT-Password
Segmentation fault (core dumped)

Relevant log output from client utilities

radiusd.log

Backtrace from LLDB or GDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectcategory: a defect or misbehaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions