Support

Admin Tools

#10230 Hack Example for the non believers or those who have not seen things 1st hand

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 17 January 2012 09:31 CST

slaes
Just sharing a quick example as the title says.

(Niko i know its not really the place, but i think users can definitely benefit from it in terms of what to be on the look out for and i think most would have NFI at what some look like, so im sure you dont mind)

See attached 2 files. What are they, well look at the url and file extension, they are meerly a script (sophisticated enough mind you, and for many reasons will go completely undetected by, clam scan, rkhunter, chkroot, mod sec, config server explot scanner, they are the ones we tested, im guessing many more, its operation is quiet clever) - If you setup properly SuPHP will stop it migrating to other accounts on your server, if you know what your doing that is. If you dont, reading Niko article "777: The number of the beast" would be of benefit, its a great read.

1. A new client came to us, on a dedicated box, with about 200 joomla sites and 300 odd WP sites. Problem was they were having trouble updating some. Decient Setup, all server side updates etc etc.

2. 10 mins later we came across that nasty little script, by chance. Unrelated to the WP issue, oddly enough.

3. For those who it aint obvious for, the script executed from the browser, publically, pulls the equilivant access to do anything you could do from cpanel's file manager. Edit, delete, upload, basically anything.

Moral to the Story: Make up your own mind on how serious you should take things and hosts in particular ;)



nicholas
Akeeba Staff
Manager
That's what I'm talking about for years. That's why I have included the rigorous "server protection" in my Master .htaccess and Admin Tools Professional's .htaccess Maker. C99 variants are so damn easy to find, upload to a site and hack away. Many people, among them a certain Joomla! co-founder and owner of a very profitable business (formerly Joomla!-centric, quite recently having expanded to WP, Drupal and other FOSS web software), think I am paranoid and overreacting when I say that allowing your server to execute arbitrary PHP files all over the place is security suicide. If only people would listen to me... *sigh*

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

slaes
whats most amazing to me is

1. how such so called seasonal pros can have such a lack of understanding on things. Freaks me the f^%$ out. Not only that but worse the impact they have on the unsuspecting newbies who try to follow someone who should know better, to say the least.

2. how sophisticated and intelligent some of the c99 are. This one for example is so dam good in the way it evades and runs undetected, its not funny. Some real smarts to it, i must admit. Looking at it, it would be some damn easy to find and study dozens of poorly coded extensions and templates, and sorry to say, hack with ease. And in most cases, bring a whole server to it knees.

nicholas
Akeeba Staff
Manager
Well, the problem is that users treat experts as all-knowing, all-seeing deities. And experts don't have the balls to say "sorry, no idea what you're talking about". For example, when the discussion comes down to setting up a Linux box, I can certainly give some pointers, but I am not an expert on the subject. I prefer to defer my Linux box' setup to a certified Linux engineer who specializes in securing web servers. Likewise, I know enough about JS to hack together something, but I am not an expert and if something is beyond me, I'll just say so. It's not embarrassing to admit that you don't know something. Only mediocrities are equally versed at everything. Some experts should get that firmly on their minds before giving harmful advice on a field they clearly don't understand deep enough to give any advice in the first place.

Regarding C99, yes those scripts are GOOD! They are hard to detect because their signatures can be easily altered. Even with some heuristics like Admin Tools' PHP file change scanner, you get a list of a few hundred files per site to analyze. Multiplied by 1000 sites, you have Mission:Impossible. Of course, this clearly shows why having 1000 sites on a single server, administered by a small team is as smart as flying a plane blindfolded and without pilot training, but I digress.

In the end of the day, hacked sites are caused by lack of common sense and good measure. The cases where someone went to great trouble to hack a site are rare and make the news. Everything else is script kiddies exploiting webmasters' lack of common sense and good measure.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!