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

Decryption of salt encrypted attributes (encrypt=2) is incorrect #194

Open
Thrushbeard opened this issue Mar 9, 2024 · 0 comments
Open

Comments

@Thrushbeard
Copy link

A cleartext value is wrong for salt encrypted attributes in a RADIUS packet (e.g. MS-CHAP2 MPPE keys).

There are two points about a hash value:

  1. Decryption and encryption functions are not completely the same. The hash must use part of an encrypted value, not a decrypted one

last = result[-16:]

last = data[:16] for the decryption.

  1. The initial hash value must use a request packet authenticator, not a reply packet authenticator

last = self.authenticator + salt

@Thrushbeard Thrushbeard changed the title Decryption of salt encrypted attributes (encrypt=2) are incorrect Decryption of salt encrypted attributes (encrypt=2) is incorrect Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant