I got the following email this morning from Reed Loden, who suggested a patch to make Vanilla cookies more secure:
Mark,
I'm contacting you personally to submit a security patch for Vanilla that will make it use secure cookies for storing the userid and auth key of the user. There doesn't seem to be a way for normal users to file bugs via lussamo.com, nor do I see a security contact address anywhere, so I figured I'd just e-mail you directly.
The attached patch adds support for both the 'secure' and 'httponly' parameters of PHP's setcookie(). Note that it has not been tested on an actual Vanilla instance, so it may contain bugs. However, a similar patch to what I've attached has been deployed to my internal Vanilla-based forums, and it works just fine. I generalized this patch more to meet the minimum PHP version specified on getvanilla.com.
Recent talks at DEFCON and BlackHat have shown how important using secure cookies are when using an SSL environment to keep your data secure. I hope your team will take a look at this patch and hopefully incorporate it or something similar to it in the next release of Vanilla.
Let me know if you have any questions/comments/etc. concerning the patch.
There should probably be an option to turn HTTPOnly on/off. It can could break extension that need to read the user id cookie on the client side for example.