Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    15

    Default phpBB Upgrade - Server Wide - WHM Global Upgrade Needed!

    phpBB Upgrade - Server Wide - WHM Global Upgrade Needed!

    Ok, we have hundred accounts on a server, they ALL use phpBB...

    The OLD version that they are ALL using is NOT SECURE...

    If each client logs into their Control Panel, they will be prompted to CLICK A BUTTON to upgrade...

    WHAT we need is a function in WHM to UPGRADE ALL of them with one touch of button PLEASE

    Otherwise, my server is NOT SECURE until every single client goes and upgrades each board.

    HELP!!!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    But there is such a thing.

    It's called "addon script manager"
    Last link in the left frame of WHM

    But you have to have a new version of cpanel/WHM
    Latest STABLE has it

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    658

    Default

    Quote Originally Posted by jester.ro
    But there is such a thing.

    It's called "addon script manager"
    Last link in the left frame of WHM

    But you have to have a new version of cpanel/WHM
    Latest STABLE has it
    Still 404 on FREEBSD users??

  4. #4
    Member
    Join Date
    Apr 2002
    Posts
    15

    Default i dont see it :)

    Here is what i am using, and i dont see that link ?

    WHM 9.9.8 cPanel 9.9.8-E142
    RedHat 9 i686 - WHM X v3.1.

  5. #5
    Member
    Join Date
    Apr 2002
    Posts
    15

    Default sorry, ignore :)

    Sorry, ignore me

    Thanks for the heads up on that function... i really appreciate it.

  6. #6
    Member
    Join Date
    Sep 2003
    Posts
    658

    Default

    Quote Originally Posted by peterquast
    Here is what i am using, and i dont see that link ?

    WHM 9.9.8 cPanel 9.9.8-E142
    RedHat 9 i686 - WHM X v3.1.

    Did you install the script in addon moduels?

    Name: addonupdates
    Author: cPanel Inc.
    Installed Version: 0.2
    Version: 0.2
    Description: Addon Script Manager/Updater !!BETA!!
    Price: free

  7. #7
    Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    149

    Default

    Quote Originally Posted by easyhoster1
    Still 404 on FREEBSD users??
    As it seems here we can't get this to work on FreeBSD (page not found)

  8. #8
    Member
    Join Date
    Sep 2003
    Posts
    7

    Default

    I've got the latest version of Cpanel installed, and I used the addon update script. But it only found 2 installations of phpbb (which I know is way off) when I click on f"Find Installations".

    Any ideas why?

    When I log into cpanel on a domain that has a phpbb installed, it will only allow me to "Click here to update to 2.0.8"

    ??

    Thanks,
    Stobe

  9. #9
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Not sure why its not showing any more users if they've installed it via cpanel. But what worries me more is that it says "Click here to upgrade to 2.0.8" when that version is vulnerable. Are you using a 3rd party installer ? Or do you have the option to install and keep updated phpBB via "addon scripts" under the cpanel menu heading in WHM ? If not, you will need to rely on whatever 3rd party you are using to get the updated scripts and perhaps provide you with a means for mass updating.

    Perhaps you might just need a good old /scripts/upcp ?
    Beau Henderson

  10. #10
    Member
    Join Date
    Sep 2004
    Location
    U.K.
    Posts
    265

    Default

    if your planning on fixing the recent worm exploit just do the following commands

    mkdir phpbb
    cd phpbb
    pico wormfix.pl
    ---------------- paste this code --------------------------------
    #!/bin/sh
    for i in `locate viewtopic.php`
    do
    if grep "htmlspecialchars(urldecode" $i > /dev/null; then
    echo $i >> vulnerable_phpbbs
    /usr/bin/replace 'trim(htmlspecialchars(urldecode($HTTP_GET_VARS['highlight']))));' 'trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));' -- $i
    fi
    done
    ----------------------------------------------------------------------
    then do perl wormfix.pl

    and it will fix the exploit that makes the worm work
    also if you upgrade to php 4.3.10 and have wget chmod'ed to 750 and run mod security
    then you will have a extra layer of security

    btw i've ran this script on 5 servers and another host has used the script to fix 15 servers +
    but use it at your own risk

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge cyon's Avatar
    Join Date
    Jan 2003
    Posts
    323

    Default

    Thank you very much!!
    I run it and it seems to work fine.
    But if there is a foldername with a whitespace in it this error occurs:

    grep: /home/username/public_html/folderwith: No such file or directory
    grep: whitespace/board/viewtopic.php: No such file or directory
    Last edited by cyon; 12-22-2004 at 05:49 PM.

  12. #12
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Hrm.. im not much of a programmer ( not at all actually )

    But, and i can't guarantee this won't do something evil or if it will work at all, however the $i in:
    Code:
    /usr/bin/replace 'trim(htmlspecialchars(urldecode($HTTP_GET_VARS['highlight']))));' 'trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));' -- $i
    You might be able to rap it in ""'s so it looks like:
    Code:
    /usr/bin/replace 'trim(htmlspecialchars(urldecode($HTTP_GET_VARS['highlight']))));' 'trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));' -- "$i"
    Darn those windows ppl and their white spaces!!
    Beau Henderson

  13. #13
    Member
    Join Date
    Sep 2004
    Posts
    529

    Default

    FYI, That wasn't the only vulnerability fixed in phpbb 2.0.11, so while your fix might fix this worm going around now... your phpbb installs will still be vulnerable to several other possible exploits. Phpbb says it's highly recommended to just update completely to 2.0.11.

  14. #14
    Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    149

    Default

    Quote Originally Posted by dezignguy
    FYI, That wasn't the only vulnerability fixed in phpbb 2.0.11, so while your fix might fix this worm going around now... your phpbb installs will still be vulnerable to several other possible exploits. Phpbb says it's highly recommended to just update completely to 2.0.11.
    We know, but since the update script doesn't work and I have tens of installations on some servers this is a nice shortcut to disable the worm.

    BTW. For FreeBSD I modified the script to this:

    Code:
    schubert# cat wormfix.pl
    #!/bin/sh
    for i in `find /home -name viewtopic.php`
    do
    if grep "htmlspecialchars(urldecode" $i > /dev/null; then
    echo $i >> vulnerable_phpbbs
    /usr/local/bin/replace 'trim(htmlspecialchars(urldecode($HTTP_GET_VARS['highlight']))));' 'trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));' -- $i
    fi
    done

  15. #15
    Member
    Join Date
    Oct 2003
    Location
    india
    Posts
    12

    Default

    Hi fusioncroc, thank you for the script .. but it seems to have some issues with escape characters. I have made neccessory modifications.

    U may try this..
    ++++++++++++
    #!/bin/sh
    for i in `locate viewtopic.php`
    do
    if grep "htmlspecialchars(urldecode" $i > /dev/null; then
    echo $i >> vulnerable_phpbbs
    /bin/cp -p $i $i.bak.dec-`date +%d`
    replace "trim(htmlspecialchars(urldecode(\$HTTP_GET_VARS\['highlight'\]))));" "trim(htmlspecialchars(\$HTTP_GET_VARS['highlight'])));" -- $i
    fi
    rm -f /tmp/*bot* /tmp/*ssh* /tmp/*wow* /tmp/*.txt*

    ##Changing the permissions of /usr/bin/wget. This may block fantastico upgrades.
    chmod 700 /usr/bin/wget
    done
    ++++++++++++
    N'joy
    Regards,
    Sai

Similar Threads & Tags
Similar threads

  1. Urgent help needed - MySql upgrade failed during WHM Update
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-08-2007, 07:01 AM
  2. How to REALLY upgrade phpBB
    By derekg in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-22-2006, 12:36 AM
  3. phpBB upgrade
    By pi_is_good in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-22-2003, 06:24 PM
  4. Upgrade phpBB to 2.4
    By royisher in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-19-2003, 11:49 PM
  5. MySQL 3.23.53a Upgrade in latest WHM upgrade?
    By jsteel in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-19-2002, 04:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube