-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and re-add commas in between fields. Which makes it harder for malicious actors to mangle multiple fields together. The real solution is to make md5() take varargs, and then do the MD5 separately for each argument. And to pass the values as raw value-boxes, instead of as printable strings
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# PRE: hex | ||
# | ||
# Test the acct_unique policy | ||
# | ||
# | ||
&Acct-Unique-Session-Id := %hex(%md5("%{User-Name},%{Acct-Multi-Session-ID},%{Acct-Session-ID},%{&NAS-IPv6-Address || &NAS-IP-Address},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}")) | ||
|
||
if &Acct-Unique-Session-Id != "159dccf021583d7413b0114a090529ca" { | ||
test_fail | ||
} | ||
|
||
success |