Commit c13bdd0
committed
xmpp_sasl_scram: Handle "y" CB flag correctly
RFC 5802 says:
| If the flag is set to "y" and the server supports channel binding, the
| server MUST fail authentication. This is because if the client sets the
| channel binding flag to "y", then the client must have believed that the
| server did not support channel binding -- if the server did in fact
| support channel binding, then this is an indication that there has been
| a downgrade attack (e.g., an attacker changed the server's mechanism
| list to exclude the -PLUS suffixed SCRAM mechanism name(s)).
Therefore, let authentication fail if we offered the client PLUS methods
and the client sets the "y" flag.
Thanks to Thilo Molitor for spotting the issue.1 parent f48eb94 commit c13bdd0
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
265 | 267 | | |
266 | 268 | | |
267 | 269 | | |
| |||
0 commit comments