Commit 7159bbe
committed
Reject unsigned LogoutRequest when signature validation is enabled
Previously, ValidateEncodedLogoutRequestPOST silently accepted unsigned
SAML LogoutRequest messages when SkipSignatureValidation was false.
When validateElementSignature returned ErrMissingSignature, the code
fell through and processed the unverified element. Unlike Response
handling, LogoutRequest has no secondary assertion signature check,
so this allowed completely unsigned requests to be accepted.
Return an error instead of falling through when the signature is missing.1 parent 4ddcc82 commit 7159bbe
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
0 commit comments