Version 0.8.3 ()
------------------------------------------------------------------------
- * XML_RPC: Eliminate path disclosure vulnerabilities by suppressing
- error messages when eval()'ing. Eliminate path disclosure
- vulnerability by catching bogus parameters submitted
- to XML_RPC_Value::serializeval(). (nohn)
-
+ * Fixed possible XSS in comment input validation, thanks to
+ Ilia Alshanetsky
Version 0.8.2 (June 29th, 2005)
------------------------------------------------------------------------
$comment['url'] = 'http://' . $comment['url'];
}
+ if (!empty($comment['url'])) {
+ if (!@parse_url($comment['url'])) {
+ $comment['url'] = '';
+ }
+ $comment['url'] = htmlspecialchars($comment['url'], ENT_QUOTES);
+ }
+
serendipity_plugin_api::hook_event('frontend_display', $comment);
if (isset($comment['no_email']) && $comment['no_email']) {