-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/tools/cmd/present: bad websocket origin when origin=localhost and config.Origin=127.0.0.1 #8096
Labels
Comments
CL https://golang.org/cl/98570044 mentions this issue. |
Another workaround is that the present tool could issue an HTTP redirect to point the browser at the address given on the command line. This does break -http=:3999, but maybe it should be broken? Ie, maybe you should have to explicitly name the host on which you want to expose an arbitrary code execuction vector? |
CL https://golang.org/cl/102770046 mentions this issue. |
Dan, I want to make this usable, but it also needs to be secure. I think specifying the IP of the public interface on the command line is not such an onerous task. However if it is indeed too hard, we could add a -public bool flag that just listens on the first available public IP address and prints that address to the console. Would that solve your problem? Owner changed to @adg. |
This issue was closed by revision golang/tools@96cece0. Status changed to Fixed. |
tmc
pushed a commit
to tmc/presentx
that referenced
this issue
Jun 19, 2024
… the web origin more flexible Also fixes the following nits; - literal IPv6 address handling - URL host component handling in the case of a wildcard listen - URL port component handling in the case of no port component in origin Fixes golang/go#8096. LGTM=dan.kortschak, adg R=adg, golang-codereviews, dan.kortschak CC=golang-codereviews https://golang.org/cl/102770046
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: