von / PerProxy

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

Unrecognized document element: html #19

Closed von closed 13 years ago

von commented 13 years ago

Returned to client: PerProxy Server Error The PerProxy server encountered an error with the server: Unrecognized document element: html

From logs:

PerProxy:Thread-721:mytechencounters.wordpress.com: Checking certificate with Perspectives
PerProxy:Thread-721:mytechencounters.wordpress.com: Perspectives check failed: Policy check failed on 94:fc:2e:2b:0a:77:85:ab:a7:66:4d:c3:a7:0f:1e:ec for mytechencounters.wordpress.com:443,2: Quorum duration of 4 shorter than required 86400
PerProxy:Thread-721:mytechencounters.wordpress.com: Deferring handling error connecting to server: Policy check failed on 94:fc:2e:2b:0a:77:85:ab:a7:66:4d:c3:a7:0f:1e:ec for mytechencounters.wordpress.com:443,2: Quorum duration of 4 shorter than required 86400
PerProxy:Thread-721:mytechencounters.wordpress.com: Responding to client.
PerProxy:Thread-721:mytechencounters.wordpress.com: Cert = /var/folders/q7/q71vne3DHjGGpRIbI1PBWk+++TQ/-Tmp-/tmpdCx1Zr
PerProxy:Thread-721:mytechencounters.wordpress.com: Key = /var/folders/q7/q71vne3DHjGGpRIbI1PBWk+++TQ/-Tmp-/tmp8zkyiQ
PerProxy:Thread-721:mytechencounters.wordpress.com: Starting SSL with client...
PerProxy:Thread-721:mytechencounters.wordpress.com: SSL with client successful
PerProxy:Thread-721:mytechencounters.wordpress.com: Handling deferred server error: Policy check failed on 94:fc:2e:2b:0a:77:85:ab:a7:66:4d:c3:a7:0f:1e:ec for mytechencounters.wordpress.com:443,2: Quorum duration of 4 shorter than required 86400
PerProxy:Thread-721:mytechencounters.wordpress.com: Client request was: GET /favicon.ico HTTP/1.1
PerProxy:Thread-721:mytechencounters.wordpress.com: Error response sent.
PerProxy:Thread-721:mytechencounters.wordpress.com: Done.
von commented 13 years ago

I believe this is caused by an Notary returning a response that contains HTML. It's not clear to me that the logs in the original issue are related.

011-06-21 11:53:10,613:Thread-598:ERROR:Perspectives check failed: Unrecognized document element: html

von commented 13 years ago

Move to pyPerspectives: https://github.com/von/pyPerspectives/issues/7