Repository navigation
Conversation
|
This PR (HEAD: bc5bc54) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/crypto/+/861081. Important tips:
|
CL 798420 switched peer-controlled strings in error messages to %q,
but a few sites still print them unquoted:
- Waitmsg.String (and so ExitError.Error) prints the signal name
and message from the server's exit-signal request.
- parsePubKey prints the algorithm name read from the key blob.
- The PublicKey.Verify implementations print the signature format.
A malicious peer can use these to put control characters into a
client's terminal or logs. Quote them with %q like the other
messages. Signal, Msg and Lang still return the raw values.
Updates golang/go#80301
Change-Id: I9d8afa7853d7568a1974cf3a7e5aa16aa9a875e7
bc5bc54 to
7ecdf44
Compare
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Dean Ruina: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
This PR (HEAD: 7ecdf44) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/crypto/+/861081. Important tips:
|
|
Message from Dean Ruina: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
Quote the service name in the server's error for a service requested before authenticating, and remove the comment in Session.wait. Updates golang/go#80301 Change-Id: Ib90ee2ff4ffb31addaa3595acf7f9ee73614e6a6
|
Message from Nicola Murino: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Nicola Murino: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
This PR (HEAD: 1ca8daf) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/crypto/+/861081. Important tips:
|
|
Message from Dean Ruina: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Nicola Murino: Patch Set 3: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Nicola Murino: Patch Set 3: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from golang-scoped@luci-project-accounts.iam.gserviceaccount.com: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2026-11-09T18:47:53Z","revision":"1c6133caa6b58f4c42acc4016224a18af48edf01"} Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Nicola Murino: Patch Set 3: -Commit-Queue (Performed by <GERRIT_ACCOUNT_60063> on behalf of <GERRIT_ACCOUNT_35201>) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from golang-scoped@luci-project-accounts.iam.gserviceaccount.com: Patch Set 3: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from golang-scoped@luci-project-accounts.iam.gserviceaccount.com: Patch Set 3: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Michael Pratt: Patch Set 4: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Nicholas Husin: Patch Set 4: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
|
Message from Nicholas Husin: Patch Set 4: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/861081. |
CL 798420 switched peer-controlled strings in error messages to %q,
but a few sites still print them unquoted:
- Waitmsg.String (and so ExitError.Error) prints the signal name
and message from the server's exit-signal request.
- parsePubKey prints the algorithm name read from the key blob.
- The PublicKey.Verify implementations print the signature format.
- The server's error for a service requested before authentication
prints the service name sent by the client.
A malicious peer can use these to put control characters into a
client's terminal or logs. Quote them with %q like the other
messages. Signal, Msg and Lang still return the raw values.
Updates golang/go#80301
Change-Id: I1b0020bb6892d481b3b22129990043c3c805c5d5
GitHub-Last-Rev: 1ca8daf
GitHub-Pull-Request: #381
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/861081
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Nicholas Husin <nsh@golang.org>
Reviewed-by: Nicholas Husin <husin@google.com>
Reviewed-by: Nicola Murino <nicola.murino@gmail.com>
|
This PR is being closed because golang.org/cl/861081 has been merged. |
CL 798420 switched peer-controlled strings in error messages to %q,
but a few sites still print them unquoted:
and message from the server's exit-signal request.
prints the service name sent by the client.
A malicious peer can use these to put control characters into a
client's terminal or logs. Quote them with %q like the other
messages. Signal, Msg and Lang still return the raw values.
Updates golang/go#80301