PhotoPlog (
-   Announcements (
-   -   Bummer: PhotoPlog's first vulnerability (fix inside) (

Morgan 11-07-2010 12:15 AM

Bummer: PhotoPlog's first vulnerability (fix inside)
Special thanks to Harry S. for reporting the XSS vulnerability, which becomes exploitable if you allow custom user titles. All versions of PhotoPlog are affected. PhotoPlog Lite on has already been patched. PhotoPlog Pro (for vB3 and vB4) on this site has already been patched.

To apply the patch, download the ZIP package (here for Pro (for vB3 and vB4) or at for Lite) and FTP the /photoplog/index.php file into your main gallery directory, overwriting the index.php file that is there.

If you cannot download the Pro version, here is how to manually apply the patch. In the PhotoPlog Pro index.php file make the following three changes.
  1. Find:

                                            user.usertitle, user.joindate, user.posts,
    Replace with:

                                            user.usertitle, user.customtitle, user.joindate, user.posts,
  2. Find:

                                                            'photoplog_rate_usertitle' => $photoplog_vbuser_info['usertitle'],
    After add:

                                                            'photoplog_rate_customtitle' => $photoplog_vbuser_info['customtitle'],
  3. Find:

                                                    $photoplog_rate_usertitle = $photoplog_rates_array[$photoplog_rate_userid]['photoplog_rate_usertitle'];
    After add:

                                                    if ($photoplog_rates_array[$photoplog_rate_userid]['photoplog_rate_customtitle'] == 2)
                                                            $photoplog_rate_usertitle = htmlspecialchars_uni($photoplog_rate_usertitle);

Note that any user with "Yes, admin set (HTML allowed)" for Custom User Title will still show parsed HTML, as that setting does allow for HTML.

If you download PhotoPlog from here or after the date of this post, you will already have the patched version. All versions of PhotoPlog downloaded before the date of this post, will need to be patched as outlined above. Sorry for the troubles, and thanks again to Harry S. for submitting the report.

All times are GMT. The time now is 02:06 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.