Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radius: fix the MPPE key decryption for the second-half of the key #463

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

jkroonza
Copy link
Contributor

block.

During he refactor in commit 4cb90c1 the key material used to decrypt the second-half of the encrypted block was accidentally updated from:

MD5(radius_secret + crypt[0..15]); to:

MD5(radius_secret + crypt[0..15] + salt)

Which would obviously mismatch.

This also refactors back into what I believe to be a more readable block with lower nesting and more comprehensive error reporting.

Closes: #453

block.

During he refactor in commit 4cb90c1 the key material used to decrypt
the second-half of the encrypted block was accidentally updated from:

MD5(radius_secret + crypt[0..15]); to:

MD5(radius_secret + crypt[0..15] + salt)

Which would obviously mismatch.

This also refactors back into what I believe to be a more readable block
with lower nesting and more comprehensive error reporting.

Closes: ppp-project#453
Signed-off-by: Jaco Kroon <[email protected]>
@jkroonza
Copy link
Contributor Author

Not failing as a result of anything I did.

@jkroonza
Copy link
Contributor Author

jkroonza commented Dec 4, 2023

@Neustradamus @paulusmack @enaess - I can't see that the solaris failure is anything that I've done, can this please be considered? I can confirm it fixes the referenced incompatibility issue.

@Neustradamus
Copy link
Member

@RICCIARDI-Adrien has worked on Solaris CI and he says that there is a probem in the current code:

@Neustradamus
Copy link
Member

@paulusmack, @enaess, @jkroonza, @chipitsine: What do you think?

@paulusmack paulusmack merged commit 04f8519 into ppp-project:master Dec 21, 2023
24 of 25 checks passed
@Neustradamus Neustradamus removed the request for review from paulusmack December 21, 2023 20:01
@jkroonza jkroonza deleted the mppe-radius-key-fix branch October 14, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2.5.0 and 2.4.9 interoperability issue (MPPE key miscalculation when using radius to authenticate)
3 participants