As far as I can tell, ikiwiki is not checking the SSL certificate of the remote host when using openid authentication. If so, this would allow for man-in-the-middle type attacks. Alternatively, maybe I am getting myself confused.
Test #1: Enter URL as openid server that cannot be verified (either because the certificate is self signed or signed by an unknown CA). I get no SSL errors.
Test #2: Download net_ssl_test from dodgy source (it uses the same SSL perl library, and test again. It seems to complain (on same site ikiwiki worked with) when it can't verify the signature. Although there is other breakage with the version I managed to download (eg. argument parsing is broken; also if I try to connect to a proxy server, it instructs the proxy server to connect to itself for some weird reason).
For now, I want to try and resolve the issues with net_ssl_test, and run more tests. However, in the meantime, I thought I would document the issue here.
-- Brian May
Openid's security model does not rely on the openid consumer (ie,
ikiwiki) performing any sanity checking of the openid server. All the
security authentication goes on between your web browser and the openid
server. This may involve ssl, or not.
For example, my openid is "http://joey.kitenet.net/". If I log in with
this openid, ikiwiki connects to that http url to determine what openid
server it uses, and then redirects my browser to the server
(https://www.myopenid.com/server), which validates the user and redirects
the browser back to ikiwiki with a flag set indicating that the openid
was validated. At no point does ikiwiki need to verify that the https url
is good.
--[[Joey]]
[[!tag done]]