WordPress.org

Ready to get started?Download WordPress

Forums

security: .htaccess exploit? php script inside? how? (5 posts)

  1. cocotu
    Member
    Posted 6 years ago #

    I didn't know where to post this. I'm surprised with what happen at my host server! Yesterday I couldn't open my wordpress site:

    500 Internal Server Error

    As I was investigating the logs I noticed something very strange at a line saying some type of error at the .htaccess. Then when I go and open the .htaccess file there is a 3000 line php script. These are the top lines:

    <?php
    //FaTaLisTiCz_Fx c99Shell v1 03.2008
    //Re-coded and modified By FaTaLisTiCz_Fx #CyBeRz@irc.Allnetwork.org

    $sh_id = "RmFUYUxpc1RpQ3pfRnggYzk5U2hlbGwgdg==";
    $sh_ver = "1.1 03.2008";
    $sh_name = base64_decode($sh_id).$sh_ver;
    $html_start = ''.
    '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    <meta http-equiv="Content-Language"
    content="en-us"><title>'.getenv("HTTP_HOST").' - '.$sh_name.'</title>

    My security skills are limited, has anyone seen this before? In google I found this guy from romania because at some of the lines there is his/her website which downloads some file to my server. So, should I delete wordpress and re-install it again? I have a backup. thanks

  2. whooami
    Member
    Posted 6 years ago #

    thats a root shell. What are the permissions of your .htaccess? Ill bet they are NOT 644. I'll bet that you chmod'd your .htaccess to something looser to allow WP to write to it (permalinks) and then you never chmod'd it back.

    To answer some of your questions re: what to do now..

    If I were you, I would be combing over my files and my database with a fine toothed comb, after, and only after, I changed all of my passwords. And I do mean all.

  3. cocotu
    Member
    Posted 6 years ago #

    yes that was my mistake I had .htaccess 777! I'm going to remove everything!

  4. Joni
    Member
    Posted 6 years ago #

    And do please notify your web host, especially if you are in a shared hosting environment. It may be that they got in through your account, but it could be they got in through someone else's hosting account. The shared server is only as secure as the most lax person using it unfortunately.

    Look at the date and time stamps on the files and make note of them. Download them to your computer and zip them up and send them to your web host. (I know my web host likes to get the involved files when there's been a breach.)

    Hope you sort it all out.

  5. cocotu
    Member
    Posted 6 years ago #

    I working on it! thanks

Topic Closed

This topic has been closed to new replies.

About this Topic