Skip to content
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

Handle https to http override in TLS MitM websocket connection #505

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

dlski
Copy link

@dlski dlski commented Jul 6, 2023

In a typical MitM over CONNECT scenario there is possibility to override request schema from secure to insecure. Example: when using TLS MitM we can substitute https service using a local http server by manipulating request URL schema in OnRequest handler.
But when there is a try to open websocket connection, there is an error - always secure TLS connection is enforced regardless to request URL schema. This PR fixes that.
Resolves #506

@dlski dlski changed the title Handle https:// to http:// override when connecting remote Handle https:// to http:// override in TLS MitM websocket connection Jul 6, 2023
@dlski dlski changed the title Handle https:// to http:// override in TLS MitM websocket connection Handle https to http override in TLS MitM websocket connection Jul 6, 2023
@LukaSikic
Copy link

@elazarl can you please review and hopefully merge? I face same issue as described in #506 and this PR fixes it

@elazarl elazarl merged commit 6741dbf into elazarl:master Sep 9, 2024
@elazarl
Copy link
Owner

elazarl commented Sep 9, 2024

Apologies, missed that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot connect to HTTP websocket when performing TLS MitM
3 participants