Page 14 of 26 FirstFirst ... 4121314151624 ... LastLast
Results 131 to 140 of 255

Thread: Webhosting Companies And Security Related Attacks

  1. #131
    Ipstenu's Avatar
    Ipstenu is offline Big Tipper
    Join Date
    Feb 2010
    Posts
    368

    Default

    Both and neither. I could rant, but Matt and Otto really said it right and best. It's not WordPress, it's how the net works. Look at what had to happen for this:

    1) Someone saved their wp-config.php file in a way that it was readable by the free world.
    2) Someone scanned for and found that file.
    3) The user was using their ID and Password, rather than creating a DB user just for the blog.
    4) That account had read access to other accounts on the same server
    5) Lather, rinse, repeat

    We're talking a perfect storm of stupid. If you pull out just one of those, the horribleness of this becomes a great deal less and we would all chastise the user for using insecure folder permissions. But. Instead, people are taking the easy way out and just pointing fingers.

    Maybe this will inspire people to find out how to make more secure connections from PHP to SQL.

  2. #132
    kgraeme's Avatar
    kgraeme is offline Hello World
    Join Date
    Jan 2010
    Posts
    22

    Default

    Quote Originally Posted by chipbennett View Post
    Well, not necessarily, in this case. It seems the the vulnerable WordPress installs were ones for which wp-config.php had file permissions set such that the file was publicly accessible. The hackers just scanned servers for publicly accessible wp-config.php files, and harvested the database credentials.

    So, they were harvesting database credentials from publicly accessible wp-config files, and then using those credentials to access the database directly.
    From what I understand they weren't scanning via the web but by the filesystem from a local server user account. So it doesn't matter where the wp-config file is located, if it was on the server with world read permissions then it was vulnerable because the host didn't properly sandbox user account space.

    So while your patch may allow for flexibility in locating the file, I doubt it would hinder this attack.

  3. #133
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,993

    Default

    Quote Originally Posted by kgraeme View Post
    From what I understand they weren't scanning via the web but by the filesystem from a local server user account. So it doesn't matter where the wp-config file is located, if it was on the server with world read permissions then it was vulnerable because the host didn't properly sandbox user account space.

    So while your patch may allow for flexibility in locating the file, I doubt it would hinder this attack.
    So, I'm not experienced with administrating shared server environments. Wouldn't setting wp-config to 0640 prevent this attack, even if all else were held equal? (Apparently, only WordPress installs for which wp-config.php was 755 were getting compromised.)
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  4. #134
    Otto's Avatar
    Otto is offline On The Rocks
    Join Date
    Apr 2009
    Location
    Memphis, TN
    Posts
    862

    Default

    Quote Originally Posted by chipbennett View Post
    So, I'm not experienced with administrating shared server environments. Wouldn't setting wp-config to 0640 prevent this attack, even if all else were held equal? (Apparently, only WordPress installs for which wp-config.php was 755 were getting compromised.)
    640 or 750 indeed prevents this.

    The reason WP doesn't check for that is two-fold:

    1. On a standard server with a basic and straightforward configuration, The site will fail with 640/750 on wp-config, because Apache won't have rights to read the file. For 640/750 servers, you must be running suPHP for it to work. suPHP lets Apache run with the user credentials. Many, many hosts don't run with suPHP.

    2. On a single-site box (dedicated), you don't need to worry about other users reading your files, since hopefully you have no other users. So requiring esoteric configurations makes that setup harder.

    Basically, shared hosts *NEED* to run suPHP in order to be secure. suPHP prevents webapp attacks from moving outside their personal sandbox, and it allows users to set xx0 file permissions to eliminate other users on the box from reading their files.

    But, suPHP is not the default configuration, so unless the host knows their stuff, they don't do that sort of thing.

  5. #135
    andrea_r's Avatar
    andrea_r is offline WordPress Rockstar
    Join Date
    Jan 2009
    Location
    Eastern Canada
    Posts
    1,325

    Default

    The reality is that there's a heck of a lot of web hosts out there that do not know thier stuff. They set up cheap boxes, slap on the default software and let 'er go.

    Toss in support staff reading canned responses.

    Now, I'm not saying this is the case in the recent attacks going around, as I have never dealt with their servers. But, I consider myself intermediate in web server things, with a couple-few short years of experience in digging around & breaking things and yes, even being hacked due to my own stupidity. The more I leanr the more I realize some of these people don't know a web server from a web browser.

    The take-away lesson here is, unsecured shared hosting is becoming more common. Even a good-looking respectable-sounding company who carefully manages users can do absolutely boneheaded things and think it is perfectly secure.

    I've run into them personally, and it was an uphill battle because well, for starters I'm a girl, and I'm not a "server expert" I'm just a wpmu expert. (their viewpoint). I should leave the server setup to them.

    ****

    Is anyone else tempted to google for "set wp-config.php to 755" and then follow up with reminders plastered everywhere to at LEAST make sure people switch it back???

  6. #136
    aldenml's Avatar
    aldenml is offline Hello World
    Join Date
    Jan 2010
    Location
    USA
    Posts
    62

    Default

    Quote Originally Posted by Jeffro View Post
    Ok, Matt is right about the fact that it isn't a WP problem, but if you want to attack in such a way, you need to have a perfect accuracy in your argument.

    "WordPress, like all other web applications, must store database connection info in clear text"

    This statement is wrong. This is the case in solutions that can only connect to database engines with the same security levels of MySQL.

  7. #137
    Jeffro's Avatar
    Jeffro is offline WPTavern Forum Admin
    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    2,358

    Default

    I don't know if that is right or wrong but it's very hard to make accurate blanket statements. Maybe he should have written like almost all other web application

  8. #138
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,993

    Default

    Quote Originally Posted by chipbennett View Post
    So, I tried patching wp-load.php with the above code, uploaded, moved wp-config.php to my root directory, and it worked!

    So, I submitted a Trac ticket with the proposed change.
    Well, so much for that. It got closed-wontfix within all of an hour.
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  9. #139
    kgraeme's Avatar
    kgraeme is offline Hello World
    Join Date
    Jan 2010
    Posts
    22

    Default

    Quote Originally Posted by chipbennett View Post
    So, I'm not experienced with administrating shared server environments. Wouldn't setting wp-config to 0640 prevent this attack, even if all else were held equal? (Apparently, only WordPress installs for which wp-config.php was 755 were getting compromised.)
    Yes. 640, 750, any xx0 should prevent other users on the local filesystem from reading the wp-config. But that's all dependent on how the server is configured. I've seen setups where all web user accounts share the "web" group or whatever and in that case 640 would still let users read each other's files.

    On a VPS or Dedicated host though there are a whole variety of possible configurations.

  10. #140
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,993

    Default

    Quote Originally Posted by Jeffro View Post
    I don't know if that is right or wrong but it's very hard to make accurate blanket statements. Maybe he should have written like almost all other web application
    Or, like any other PHP/MySQL application.
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

Page 14 of 26 FirstFirst ... 4121314151624 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •