von / PerProxy

A python-based proxy that uses Perspectives to detect and thwart SSL MITM attacks.
7 stars 2 forks source link

Data or thread corruption issue: expecting wrong hostname in CN #24

Open von opened 13 years ago

von commented 13 years ago

The actual connection here should have been to google calendar, but for some reason PerProxy ended up expecting seesmic (running in another tab).

2011-06-07 09:43:58,133:Thread-50:ERROR:Error connecting to www.google.com:443: Peer certificate commonName does not match host, expected seesmic.com, got www.g oogle.com 2011-06-07 09:43:58,134:Thread-50:ERROR:Peer certificate commonName does not match host, expected seesmic.com, got www.google.com Traceback (most recent call last): File "./PerProxy.py", line 64, in handle server = self.connect_to_server(hostname, port) File "./PerProxy.py", line 119, in connect_to_server server = Server(hostname, port) File "/Users/vwelch/develop/PerProxy/Server.py", line 23, in __init__ self.sock.connect((hostname, port)) File "build/bdist.macosx-10.3-fat/egg/M2Crypto/SSL/Connection.py", line 182, in connect if not check(self.get_peer_cert(), self.addr[0]): File "build/bdist.macosx-10.3-fat/egg/M2Crypto/SSL/Checker.py", line 123, in __call__ fieldName='commonName')WrongHost: Peer certificate commonName does not match host, expected seesmic.com, got www.google.com2011-06-07 09:43:58,135:Thread-50:ERROR:Deferring handling error connecting to s erver: Peer certificate commonName does not match host, expected seesmic.com, got www.google.com