HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

CRITICAL: Vanilla 2.1.8 released

LincLinc Detroit Admin
edited January 2015 in Releases

This is a critical and time-sensitive security upgrade for all forums. At least one of these issues is being actively exploited.

Download it now: http://vanillaforums.org/addon/vanilla-core-2.1.8p2

UPDATE: We have incremented to "2.1.8p2" to address upgrade issues.

Upgrade Steps

  • Backup your database, .htaccess and conf/config.php file somewhere safe.
  • Upload the new release's files so they overwrite the old ones.
  • Go to yourforum.com/index.php?p=/utility/update to force any updates needed.
  • If it fails, try it a second time by refreshing the page. More troubleshooting tips.

To upgrade to 2.1.8 directly from 2.0.x, add this step:

  • Delete the file /themes/mobile/views/discussions/helper_functions.php
  • Delete the file /applications/dashboard/views/default.master.php (note the PHP extension, not TPL)

Critical Security Patches in 2.1.8

  • Fixes a SQL injection vulnerability.
  • Fixes a user registration vulnerability.

Hat tip to ZeniMax Online Studios' security team for disclosing the SQL injection vector.

Changes in 2.1.8

  • Hardens the UserModel against potential abuse.
  • Stub content being re-created on utility/update on private communities.
  • Increase permissions required for massing banning (from Moderation.Manage to Settings.Manage).
  • Collect additional information about mass-banning changes.
  • Removes super-admin permissions from secondary accounts on utility update.
  • Fixes an issue changing primary keys during utility update

15 files changed. View the diff. We strongly recommend against doing partial upgrades. Never modify core files; put your changes in a plugin or theme.

If you have difficulty upgrading, please start a new discussion for assistance.

«13456

Comments

  • Options

    /utility/update fails:

    PHP Fatal error: Call to undefined function array_column() in xxx/htdocs/applications/dashboard/settings/structure.php on line 719

  • Options
    LincLinc Detroit Admin
    edited January 2015

    @Nyr Thank you, I will have it corrected shortly. The update as been amended.

    We accidentally included a call to array_column which was not added to PHP until 5.5. I substituted ConsolidateArrayValuesByKey, incremented to 2.1.8p1, and updated the first post in this discussion.

  • Options

    I can confirm it's working now :)

  • Options

    Hi i would like to update my forum but can't reason.
    set_time_limit() has been disabled for security reasons

    Is there a way arround?

  • Options

    @deex Yes, comment out this line:

    https://github.com/vanilla/vanilla/blob/2.1/applications/dashboard/controllers/class.utilitycontroller.php#L16

    As long as your server is fast enough to do it in the standard time limit, you should be fine.

  • Options

    How can i update from vanilla 2.1.6?

  • Options
    AaronWebsteyAaronWebstey Headband Afficionado Cole Harbour, NS ✭✭✭

    I just tried updating from 2.1.6. The utility/update says simply 'update failed'. Enabling debugging only gives me a couple of errors about my theme cache. Site seems to be working, but going to utility/structure says there are a couple of google-related updates required; clicking the 'run scripts' button reports success but when I re-scan, they're back.

  • Options
    LincLinc Detroit Admin

    @Chalipa said:
    How can i update from vanilla 2.1.6?

    The instructions are above.

    @AaronWebstey said:
    going to utility/structure says there are a couple of google-related updates required;

    Can you post the update it's requesting repeatedly? Did you try disabling third-party addons?

  • Options

    updating from 2.1.6 give error to me saying simply "update failed".

  • Options
    LincLinc Detroit Admin

    @Chalipa said:
    updating from 2.1.6 give error to me saying simply "update failed".

    More troubleshooting steps: http://docs.vanillaforums.com/developers/troubleshooting/

    I recommend starting a discussion with the full error message.

  • Options

    @Linc said:
    I recommend starting a discussion with the full error message.

    the first thing i followed

    Set $Configuration['Debug'] = TRUE; in your conf/config.php to reveal full error messages. Remember to remove it when you are done.

    the whole forum gives a blank page, without any errors

  • Options
    AdrianAdrian Wandering Spirit Montreal MVP
    edited January 2015

    @AaronWebstey‌

    I think you are talking about

    update GDN_UserAuthenticationProvider UserAuthenticationProvider set AuthenticationSchemeAlias = 'GooglePlus' where AuthenticationSchemeAlias = 'Google+';

    this is a known issue, if not in Github I will add it. It's okay though, your site is fine. you can ignore it.

  • Options
    AaronWebsteyAaronWebstey Headband Afficionado Cole Harbour, NS ✭✭✭

    Thanks @Linc‌ ; I'll try disabling plugins tomorrow. Here's the update it can't do. And now that I think of it, I may have fudged around with the google plugin code (I just made a post about that tonight).

  • Options
    AaronWebsteyAaronWebstey Headband Afficionado Cole Harbour, NS ✭✭✭

    Yes @Adrian‌; sorry, looks like I posted while you were posting :)

  • Options
    AdrianAdrian Wandering Spirit Montreal MVP
    edited January 2015

    No worries. I had noticed it before, my bad for not adding an issue in Github :)Doing it now.
    https://github.com/vanilla/vanilla/issues/2407

  • Options

    My version number says "Version 2.1.8p1"

    Is the p1 bit weird?

  • Options
    AdrianAdrian Wandering Spirit Montreal MVP

    @Simeon_Griggs‌ it's fine, linc had to make a small change :)

  • Options

    Failure

    The update was not successful. i have gone to the link to read on the troubleshooting techniques but still. but at the footer of the dashboard i see Version 2.1.8p1

  • Options
    LincLinc Detroit Admin

    @martin2008 Do you, also, have Google+ enabled?

  • Options
    edited January 2015

    Nm

Sign In or Register to comment.