Login Register


How to prevent backdoored files filter_list
Author
Message
How to prevent backdoored files #1
Introduction

In this guide I will show you how to prevent backdoored files so that you don't end up having your site fucked over and/or defaced. All website owners need to scan EVERY file they upload to the site before uploading because 1 file can ruin the site completely.



Backdoors in PHP files

The most common backdoor in php files is the
Code:
system
If you see that in your code with a GET or POST then you need to get rid of that file, because it is backdoored for sure.

system() is for executing a system command and immediately displaying the output - presumably text

You may also want to look for exec() and passthru()


Also, make sure to ALWAYS test your plugins before actually putting it on your real site. to do this just create a site on 000webhost and test everything on there.

Reply

RE: How to prevent backdoored files #2
Of all the people to write this guide.

OT: Thanks for the share! I'll be sure to read it before I put anything you send me on my sites.

Reply

RE: How to prevent backdoored files #3
(06-14-2013, 03:51 PM)Muzzy Wrote: Of all the people to write this guide.

OT: Thanks for the share! I'll be sure to read it before I put anything you send me on my sites.

That's the spirit. Anyways, you never know.

Also, make sure you don't use html headers to much.

Reply

RE: How to prevent backdoored files #4
Lol nice thread, thanks and good work.

Reply

RE: How to prevent backdoored files #5
"If you see that in your code with a GET or POST then you need to get rid of that file, because it is backdoored for sure."

That is not true.. GET and POST are not some sort of thing that you can not have useful in your code.

Reply

RE: How to prevent backdoored files #6
(07-09-2013, 04:26 AM)JeremyMcKinnon Wrote: "If you see that in your code with a GET or POST then you need to get rid of that file, because it is backdoored for sure."

That is not true.. GET and POST are not some sort of thing that you can not have useful in your code.

With system in it? GET and POST using the system command allows access to system commands that can lead to file exposure and such with a simple GET or POST data edit.

Reply

RE: How to prevent backdoored files #7
(07-09-2013, 04:45 AM)Sunlight Wrote: With system in it? GET and POST using the system command allows access to system commands that can lead to file exposure and such with a simple GET or POST data edit.

Not with system in it. You never specified that the code used for the GET and POST used system. Regardless, GET and POST are not some deadly choices..

Reply

RE: How to prevent backdoored files #8
(07-09-2013, 04:47 AM)JeremyMcKinnon Wrote: Not with system in it. You never specified that the code used for the GET and POST used system. Regardless, GET and POST are not some deadly choices..

Yeah, I probably made it unclear for some people. What I meant was if it used like system with the GET or Post response.

Reply







Users browsing this thread: