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

Squid SNI Inspection results in errors in log #66

Closed
aneillans opened this issue Feb 12, 2019 · 5 comments
Closed

Squid SNI Inspection results in errors in log #66

aneillans opened this issue Feb 12, 2019 · 5 comments
Assignees
Labels
feature Adding new functionality

Comments

@aneillans
Copy link

When you enable SNI inspection only on Squid, you encounter a large number of errors in the log such as:

SECURITY ALERT: Host header forgery detected on local=[blah-ip]:443 remote=[my-ip]:52382 FD 12 flags=33 (local IP does not match any domain IP)

This is identifiable as something other vendors of Squid have encountered and had to disable, such as:
https://github.com/NethServer/squid/blob/c7/SOURCES/squid-3.5.20-ssl-forgery.patch

Forum Thread:
https://forum.opnsense.org/index.php?topic=10013.new;topicseen#new

@fichtner fichtner added the bug Production bug label Feb 13, 2019
@fichtner
Copy link
Member

Work still needs to be done for squid 4 migration, but I'd like to use this opportunity to look closer into the code as the current solution only skips the check unconditionally, but limitations should apply:

http://www.squid-cache.org/Doc/config/host_verify_strict/

	Regardless of this option setting, when dealing with intercepted
	traffic, Squid always verifies that the destination IP address matches
	the Host header domain or IP (called 'authority form URL').

@aneillans
Copy link
Author

aneillans commented Feb 13, 2019 via email

@fichtner fichtner reopened this Feb 13, 2019
@fichtner
Copy link
Member

@aneillans thanks, ideally we should see if we can inject the expected IP addresses into the verification check... Maybe we could build a subnet check in this case?!

@aneillans
Copy link
Author

aneillans commented Feb 13, 2019 via email

@fichtner fichtner added feature Adding new functionality and removed bug Production bug labels May 2, 2019
@fichtner
Copy link
Member

fichtner commented Jul 2, 2019

also in squid(4) now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality
Development

No branches or pull requests

2 participants