Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 606101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:13:06+00:00 2026-05-13T17:13:06+00:00

When I came home today I found all my PHP files infected on Godaddy

  • 0

When I came home today I found all my PHP files infected on Godaddy linux hosting. The following code was inserted at the beginning of all files:

/**/ eval(base64_decode("aWYoZnVuY3....")

According to the logs the infected code failed to run:

eval()’d code line 1: gzinflate() [function.gzinflate]: data error

Nevertheless, I want to prevent this from happening again, but I have no idea how they came in the first place. I have an FTP access (no SFTP), so theoretically they were able to sniff out the password, but there is probably a simpler explanation.

They could also exploit an insecurity in Godaddy’s setup, but in that case I cant’t do anything to prevent it.

Could there be a typical error in my PHP code or configuration which makes it possible to hack the php files like this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:13:06+00:00Added an answer on May 13, 2026 at 5:13 pm

    Seems like the reason was I included a php file which name came from a url parameter and they supplied their own script in the parameter.

    I thought it was safe, because it was in the form

    require “data/$param”;

    so I assumed it can only be a local include which they can’t modify. Looks like they gave a URL as a value of $param which pointed to an external php file which contained the attack code. I’m not sure how the URL was resolved properly with the data/ part before it, but this seems the most likely explanation.

    Does anyone know how the URL is handled in the case?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Came across this code: <?php require_once 'HTTP/Session/Container/DB.php'; $s = new HTTP_Session_Container_DB('mysql://user:password@localhost/db'); ini_get('session.auto_start') or session_start();
I came to work today and i found my hudson with this problem! I've
I came across the following code with replaces one variable in a language file
I am experimenting with mmap and came with the following sample code: int main()
So basically I came up with a semi home grown solution to lazy loading
Hi i recently came across a site http://www.azavea.com/Products/Kaleidocade/Home.aspx , Is there a similar geographic
Came across something like this today, and was wondering if there was an equivalent
Came by a curious case today, that got me thinking about how the object
I came across this Linq to Sql code in an application I am maintaining:
I came across a piece of code which looks like this: jQuery(function($) { $('#saySomething').click(function()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.